:root {
  --bg: #f7f4ec;
  --paper: #fffefb;
  --surface-soft: #faf7ef;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.18);
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #6b7280;
  --text-faint: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff4ff;
  --gold: #d4a017;
  --leaf: #15803d;
  --rose: #b91c1c;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, .14);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
.qf-body {
  font: 16px/1.55 var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  background-image:
    radial-gradient(900px 500px at 12% -5%, rgba(37,99,235,.06), transparent 60%),
    radial-gradient(700px 400px at 95% 10%, rgba(212,160,23,.08), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

.qf-header { background: var(--paper); border-bottom: 1px solid var(--border); }
.qf-header-inner { max-width: 760px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qf-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.qf-brand img { width: 26px; height: 26px; border-radius: 6px; }
.qf-header-call { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #0f172a; color: #fff; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; transition: background 160ms var(--ease); }
.qf-header-call:hover { background: #1e293b; }
.qf-header-call svg { width: 14px; height: 14px; }
.qf-call-num { font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .qf-call-num { display: none; } .qf-header-call { padding: 8px; } .qf-header-call svg { width: 16px; height: 16px; } }

.qf-progress-track { background: rgba(15,23,42,.06); height: 6px; }
.qf-progress-fill { background: linear-gradient(90deg, var(--primary), var(--gold)); height: 100%; width: 9%; transition: width 400ms cubic-bezier(.22, 1, .36, 1); }
.qf-progress-text { max-width: 760px; margin: 0 auto; padding: 8px 24px 0; font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.qf-main { flex: 1; max-width: 640px; margin: 0 auto; padding: 32px 24px 64px; width: 100%; }
#qualifyForm { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow); }
@media (max-width: 560px) { #qualifyForm { padding: 28px 22px; border-radius: 16px; } }

.qf-step { display: none; animation: qfFade 280ms var(--ease); }
.qf-step.is-active { display: block; }
@keyframes qfFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.qf-q { font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--text); }
.qf-q em { font-style: italic; font-weight: 500; color: var(--primary); }
.qf-help { color: var(--text-muted); font-size: 15px; line-height: 1.55; margin: 0 0 24px; }

.qf-input-wrap { display: block; }
#qualifyForm input[type="text"], #qualifyForm input[type="tel"], #qualifyForm input[type="email"], #qualifyForm select {
  width: 100%; height: 56px; padding: 0 18px; font: 500 17px var(--font-sans); color: var(--text);
  background: #fff; border: 2px solid var(--border-strong); border-radius: 12px; outline: none;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
  -webkit-appearance: none; appearance: none;
}
#qualifyForm input::placeholder { color: var(--text-faint); font-weight: 400; }
#qualifyForm input:focus, #qualifyForm select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
#qualifyForm select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }

.qf-error { display: none; margin: 8px 0 0; color: var(--rose); font-size: 13.5px; font-weight: 600; }
.qf-error.is-shown { display: block; }

.qf-cards { display: grid; gap: 12px; margin: 8px 0 0; }
.qf-cards-2 { grid-template-columns: 1fr 1fr; }
.qf-cards-1 { grid-template-columns: 1fr; }
@media (max-width: 480px) { .qf-cards-2 { grid-template-columns: 1fr; } }
.qf-card {
  appearance: none; background: #fff; border: 2px solid var(--border-strong); border-radius: 12px;
  padding: 20px 22px; min-height: 64px; font: 600 17px var(--font-sans); color: var(--text);
  text-align: left; cursor: pointer; transition: all 160ms var(--ease);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.qf-card::after { content: ""; width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--border-strong); flex-shrink: 0; transition: all 160ms var(--ease); }
.qf-card:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.qf-card:hover::after { border-color: var(--primary); }
.qf-card.is-selected { border-color: var(--primary); background: var(--primary-soft); }
.qf-card.is-selected::after { background: var(--primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat; border-color: var(--primary); }
.qf-card:active { transform: translateY(0); }

.qf-dob { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 12px; }
.qf-dob label { display: flex; flex-direction: column; gap: 6px; }
.qf-dob span, .qf-grid-2 span, .qf-field span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.qf-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf-grid-2 label { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 480px) { .qf-grid-2 { grid-template-columns: 1fr; } }
.qf-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }

.qf-actions { margin-top: 28px; }
.qf-continue, .qf-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 56px; padding: 0 28px;
  background: var(--primary); color: #fff; font: 700 17px var(--font-sans); letter-spacing: -.005em;
  border: none; border-radius: 12px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 6px 18px rgba(37,99,235,.28);
  transition: all 160ms var(--ease);
}
.qf-continue:hover, .qf-submit:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15,23,42,.12), 0 10px 24px rgba(37,99,235,.36); }
.qf-continue:active, .qf-submit:active { transform: translateY(0); }
.qf-continue svg, .qf-submit svg { width: 18px; height: 18px; }
.qf-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.qf-tcpa { margin: 24px 0 0; padding: 16px 18px; background: var(--surface-soft); border: 1px dashed var(--border-strong); border-radius: 10px; }
.qf-tcpa p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.qf-tcpa a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.qf-tcpa strong { color: var(--text); }

.qf-or { text-align: center; color: var(--text-faint); font-size: 13px; margin: 18px 0 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.qf-call-inline { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; background: #0f172a; color: #fff; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; transition: background 160ms var(--ease); }
.qf-call-inline:hover { background: #1e293b; }
.qf-call-inline svg { width: 18px; height: 18px; color: var(--gold); }

.qf-success { text-align: center; padding: 24px 0; }
.qf-success-icon { width: 72px; height: 72px; margin: 0 auto 20px; background: color-mix(in srgb, var(--leaf) 12%, transparent); color: var(--leaf); border-radius: 999px; display: grid; place-items: center; }
.qf-success-icon svg { width: 36px; height: 36px; }
.qf-success-sub { color: var(--text-muted); font-size: 16px; line-height: 1.55; margin: 0 0 24px; max-width: 440px; margin-left: auto; margin-right: auto; }
.qf-call-big { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; background: var(--gold); color: #0f172a; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 18px; box-shadow: 0 6px 22px rgba(212,160,23,.4); transition: all 160ms var(--ease); }
.qf-call-big:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212,160,23,.5); color: #0f172a; }
.qf-call-big svg { width: 20px; height: 20px; }
.qf-meta { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

.qf-footer { background: #0f172a; color: rgba(255,255,255,.6); padding: 32px 24px; font-size: 12.5px; line-height: 1.55; }
.qf-footer-inner { max-width: 760px; margin: 0 auto; }
.qf-footer p { margin: 0 0 10px; }
.qf-footer strong { color: rgba(255,255,255,.85); }
.qf-footer a { color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 2px; }
