/* ============================================
   Alaganu Enterprise — Agent Registration
   Design: Refined Editorial / Luxury Minimal
   ============================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim: #c9a84c30;
  --ink: #0e0e12;
  --ink-soft: #1c1c24;
  --slate: #2e2e3a;
  --muted: #7b7b92;
  --line: #2a2a36;
  --paper: #f7f5f0;
  --white: #ffffff;
  --danger: #e05a5a;
  --success: #4caf82;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background ─────────────────────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(201, 168, 76, 0.12),
    transparent 70%
  );
  top: -200px;
  right: -200px;
}
.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(80, 60, 180, 0.08), transparent 70%);
  bottom: 200px;
  left: -200px;
}

/* ── Layout ─────────────────────────────────── */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Header ─────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.logo-text em {
  font-style: italic;
  color: var(--gold);
}

.header-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(201, 168, 76, 0.06);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  margin-bottom: 72px;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-sub strong {
  color: var(--gold);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--line);
}

/* ── Form Card ───────────────────────────────── */
.form-section {
  margin-bottom: 80px;
}

.form-card {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 56px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--gold-light),
    var(--gold)
  );
}

.form-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.form-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.form-header p {
  color: var(--muted);
  font-size: 14px;
}

/* ── Form Groups ─────────────────────────────── */
.form-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 36px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.group-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.optional-tag {
  font-size: 10px;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
  font-style: italic;
}

/* ── Form Rows / Fields ──────────────────────── */
.form-row {
  margin-bottom: 20px;
}

.form-row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row.three-col {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 16px;
}

.field-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 12px;
  font-weight: 500;
  color: #a0a0b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req {
  color: var(--gold);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 16px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237B7B92' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select option {
  background: var(--slate);
  color: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: #4a4a5e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.12);
}

textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Checkboxes ──────────────────────────────── */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #c0c0d8;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.check-label:hover {
  background: rgba(201, 168, 76, 0.06);
  border-color: var(--gold-dim);
}

.check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.consent-label {
  font-size: 13px;
  color: var(--muted);
  border: none;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  align-items: flex-start;
  padding-top: 4px;
}
.consent-label input {
  margin-top: 2px;
}
.consent-label:hover {
  background: none;
  border-color: transparent;
}

.link {
  color: var(--gold);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

/* ── Error Messages ──────────────────────────── */
.err-msg {
  font-size: 11px;
  color: var(--danger);
  min-height: 16px;
  display: block;
}

/* ── Submit Button ───────────────────────────── */
.submit-row {
  margin-top: 36px;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 40px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.35);
}
.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.45);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
}

/* ── Success Panel ───────────────────────────── */
.success-panel {
  display: none;
  text-align: center;
  padding: 64px 32px;
  animation: fadeUp 0.5s ease forwards;
}

.success-panel.visible {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(76, 175, 130, 0.15);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--success);
  margin: 0 auto 24px;
}

.success-panel h3 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--white);
  margin-bottom: 16px;
}
.success-panel p {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 12px;
  line-height: 1.7;
}
.success-note {
  font-size: 13px;
  color: var(--gold);
  margin-top: 12px !important;
}

/* ── How It Works ────────────────────────────── */
.how-section {
  margin-bottom: 80px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 160px;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  color: var(--line);
  font-size: 24px;
  padding-top: 52px;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 8px;
}
.site-footer a {
  color: var(--gold);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-wrap > * {
  animation: fadeUp 0.6s ease both;
}
.site-header {
  animation-delay: 0.05s;
}
.hero {
  animation-delay: 0.15s;
}
.form-section {
  animation-delay: 0.25s;
}
.how-section {
  animation-delay: 0.35s;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 700px) {
  .form-card {
    padding: 32px 20px;
  }
  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
  .stat-divider {
    display: none;
  }
  .steps {
    flex-direction: column;
  }
  .step-arrow {
    display: none;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .site-header {
    flex-direction: column;
    gap: 16px;
  }
}
