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

:root {
  --navy:    #1a1a1a;
  --navy-lt: #2e2e2e;
  --gold:    #B8943F;
  --gold-lt: #D4AA58;
  --white:   #ffffff;
  --off-white: #F7F8FC;
  --border:  #DDE3EF;
  --text:    #1a1f36;
  --muted:   #64748b;
  --error:   #c0392b;
  --success: #276749;
  --radius:  10px;
  --shadow:  0 2px 16px rgba(27,42,74,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--navy);
  padding: 18px 0;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: #0e0e0e;
  margin: 0 -20px;
  padding: 0 20px;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 72px 0 64px;
}

.hero-badge {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 7px 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.btn-hero {
  background: #ffffff;
  color: #0e0e0e;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 64px;
}

.btn-hero:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

/* Hero Steps */
.hero-steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
}

.hero-step-icon {
  position: relative;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.step-num {
  position: absolute;
  top: -6px;
  right: -4px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-emoji {
  font-size: 1.6rem;
  line-height: 1;
}

.hero-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
}

.hero-step-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 500px) {
  .hero-steps { gap: 24px; }
  .hero-step { width: 100px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-lt); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--navy); }

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.form-section { padding-bottom: 80px; }

.progress-wrap {
  padding: 32px 0 24px;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.step-label {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s;
}

.progress-step.active .step-circle {
  background: var(--navy);
  color: var(--white);
}

.progress-step.active .step-label { color: var(--navy); font-weight: 600; }

.progress-step.done .step-circle {
  background: var(--gold);
  color: var(--white);
}

.step-line {
  height: 2px;
  width: 40px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 22px;
}

@media (max-width: 500px) {
  .step-line { width: 20px; }
  .step-label { font-size: 0.62rem; }
}

/* ============================================================
   FORM CARD
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .form-card { padding: 24px 20px; }
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.form-intro {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 24px;
}

.form-group label:first-child {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.req { color: var(--gold); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.82rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s;
  outline: none;
  -webkit-appearance: none;
}

input:focus, textarea:focus {
  border-color: var(--navy);
}

input.error, textarea.error {
  border-color: var(--error);
}

textarea { resize: vertical; }

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row.four-col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
  .form-row.four-col { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RADIO CARDS
   ============================================================ */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-group.vertical {
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
  background: var(--white);
  user-select: none;
}

.radio-card:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.radio-card input[type="radio"] {
  width: auto;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.radio-card.wide {
  padding: 14px 18px;
}

.radio-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.radio-card-content strong {
  font-size: 0.92rem;
  color: var(--text);
}

.radio-card-content span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.radio-card:has(input:checked) {
  border-color: var(--navy);
  background: #eef1f8;
}

/* ============================================================
   CHECKBOX CARDS
   ============================================================ */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 8px;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.15s ease;
  background: var(--white);
  user-select: none;
}

.check-card:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

.check-card input[type="checkbox"] {
  width: auto;
  accent-color: var(--navy);
  flex-shrink: 0;
}

.check-card:has(input:checked) {
  border-color: var(--navy);
  background: #eef1f8;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.consent-check input { margin-top: 2px; }

/* ============================================================
   FORM NAVIGATION
   ============================================================ */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   LEAD CAPTURE STEP
   ============================================================ */
.lead-header {
  text-align: center;
  margin-bottom: 32px;
}

.lead-lock {
  font-size: 2rem;
  margin-bottom: 12px;
}

.lead-header h2 { margin-bottom: 8px; }
.lead-header p { color: var(--muted); font-size: 0.95rem; }

.privacy-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 16px;
}

.form-error {
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius);
  color: var(--error);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-card {
  text-align: center;
  padding: 80px 40px;
}

.loading-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-inner h3 {
  font-size: 1.15rem;
  color: var(--navy);
  font-weight: 600;
}

.loading-inner p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-section { padding-bottom: 80px; }

.results-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 600px) {
  .results-card { padding: 24px 20px; }
}

.results-badge {
  display: inline-block;
  background: #e6f4ec;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.description-output {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  white-space: pre-wrap;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 20px 0 12px;
}

.word-count {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: right;
  margin-bottom: 24px;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.results-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
}

.start-over-btn { padding: 0; font-size: 0.88rem; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .form-row.four-col { grid-template-columns: 1fr 1fr; }

  .progress-steps { gap: 0; }
  .step-line { width: 12px; }
  .step-label { display: none; }
  .step-circle { width: 30px; height: 30px; font-size: 0.8rem; }

  .form-nav { flex-direction: column-reverse; gap: 12px; }
  .form-nav .btn { width: 100%; justify-content: center; }

  .results-actions { flex-direction: column; }
  .results-actions .btn { width: 100%; justify-content: center; }

  .hero-steps { gap: 16px; }
  .hero-step { width: 85px; }
  .hero-step-icon { width: 56px; height: 56px; }
  .step-emoji { font-size: 1.3rem; }

  .btn-hero { width: 100%; }

  .checkbox-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}
