/* ============================================================
   get-started.html — therapist-matching quiz. Self-contained
   (loaded with fonts.css only) to avoid cascade conflicts.
   Self-hosted fonts, CSP-safe (no inline styles/scripts).
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
     --sage-deep:#4A6D5C; --sage:#7A9E8E; --sage-light:#A8C5B5; --sage-pale:#D4E4DB;
     --sage-ghost:#F0F6F3; --warm-900:#1C2320; --warm-700:#3D4A45; --warm-500:#6B7B74;
     --warm-300:#B5C0BB; --warm-100:#EDE9E2; --warm-50:#F7F4EF; --white:#FFFFFF;
     --field-fill:#F1EEE9;
     --shadow-card:0 1px 2px rgba(28,35,32,0.04), 0 14px 34px -22px rgba(28,35,32,0.20);
     --ease-out:cubic-bezier(0.16,1,0.3,1);
}
html { scroll-behavior:smooth; -webkit-font-smoothing:antialiased; }
body { font-family:'Outfit',-apple-system,sans-serif; background:var(--warm-50); color:var(--warm-900); min-height:100vh; display:flex; flex-direction:column; }
a:focus-visible, button:focus-visible, select:focus-visible { outline:3px solid var(--sage); outline-offset:3px; border-radius:6px; }
.opt:focus-visible { outline:3px solid var(--sage); outline-offset:2px; transform:none; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link { position:absolute; left:1rem; top:-120%; z-index:2000; padding:12px 20px; min-height:44px; display:inline-flex; align-items:center; background:var(--sage-deep); color:#fff; border-radius:10px; font-weight:600; text-decoration:none; }
.skip-link:focus { top:1rem; }

nav { display:flex; align-items:center; justify-content:space-between; padding:1.2rem 2rem; background:var(--white); box-shadow:0 6px 24px -22px rgba(28,35,32,0.5); position:sticky; top:0; z-index:50; }
.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo-dot { width:32px; height:32px; background:var(--sage-deep); border-radius:50%; display:flex; align-items:center; justify-content:center; }
.nav-logo-dot svg { width:16px; height:16px; fill:var(--white); }
.nav-logo-text { line-height:1.15; }
.nav-logo-text small { display:block; font-size:9px; font-weight:400; color:var(--warm-500); letter-spacing:.1em; text-transform:uppercase; }
.nav-logo-text strong { display:block; font-family:'Fraunces',serif; font-size:16px; color:var(--warm-900); font-weight:700; }
.back-btn { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--warm-500); background:none; border:none; cursor:pointer; padding:6px 12px; border-radius:50px; transition:color .2s,background .2s; text-decoration:none; min-height:36px; }
.back-btn:hover { color:var(--sage-deep); background:var(--sage-ghost); }
.back-btn svg { width:16px; height:16px; }

.progress-wrap { width:100%; padding:.75rem 2rem 1rem; background:var(--white); }
.progress-track { max-width:640px; margin:0 auto; display:flex; gap:6px; }
.progress-seg { flex:1; height:4px; background:var(--warm-100); border-radius:4px; transition:background .3s; }
.progress-seg.done { background:var(--sage-deep); }
.progress-seg.active { background:var(--sage-light); }

.quiz-wrap { position:relative; flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:3rem 1.5rem 4rem; overflow:hidden; }
.quiz-scene { position:absolute; inset:0; z-index:0; pointer-events:none; }
.quiz-scene .orb { position:absolute; border-radius:50%; filter:blur(4px); opacity:0.3; animation:floatY 16s var(--ease-out) infinite alternate; }
.quiz-scene .orb-a { width:240px; height:240px; top:-40px; right:-50px; background:radial-gradient(circle at 35% 30%, var(--sage-light), var(--sage)); }
.quiz-scene .orb-b { width:170px; height:170px; bottom:6%; left:-40px; background:radial-gradient(circle at 35% 30%, var(--sage-pale), var(--sage-light)); animation-delay:-6s; }
@keyframes floatY { from { transform:translateY(0); } to { transform:translateY(-22px); } }
.quiz-wrap > .card { position:relative; z-index:2; }
@media (prefers-reduced-motion: reduce) { .quiz-scene .orb { animation:none; } }
.card { background:var(--white); border-radius:28px; padding:2.8rem 2.5rem; max-width:600px; width:100%; box-shadow:0 2px 8px rgba(28,35,32,.04), 0 30px 60px -30px rgba(28,35,32,.18); animation:slideUp .45s var(--ease-out) both; }
@keyframes slideUp { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:translateY(0); } }
.step-label { font-size:11px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--sage); margin-bottom:1.2rem; }
.card h2 { font-family:'Fraunces',serif; font-size:clamp(1.5rem,4vw,2rem); font-weight:700; line-height:1.25; color:var(--warm-900); margin-bottom:.6rem; }
.card-sub { font-size:14px; color:var(--warm-500); margin-bottom:2rem; line-height:1.6; }
.options { display:flex; flex-direction:column; gap:.75rem; }
.opt { display:flex; align-items:center; gap:1rem; padding:1rem 1.25rem; border:0; border-radius:16px; cursor:pointer; background:var(--field-fill); font-size:15px; font-weight:500; color:var(--warm-700); text-align:left; transition:background .2s,transform .15s,box-shadow .2s; position:relative; overflow:hidden; min-height:44px; width:100%; }
.opt:hover { background:var(--sage-ghost); transform:translateX(4px); }
.opt.selected { background:var(--sage-ghost); color:var(--sage-deep); font-weight:600; box-shadow:inset 0 0 0 2px var(--sage-deep); }
.opt.selected::after { content:'✓'; position:absolute; right:1.2rem; font-size:16px; color:var(--sage-deep); }
.opt-icon { width:40px; height:40px; flex-shrink:0; background:var(--sage-pale); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; transition:background .2s; }
.opt.selected .opt-icon { background:var(--sage-light); }
.opt-sub { font-size:12px; color:var(--warm-500); font-weight:400; margin-top:1px; }
.next-btn { margin-top:1.75rem; width:100%; padding:1rem; background:var(--sage-deep); color:var(--white); border:none; border-radius:50px; font-family:'Outfit',sans-serif; font-size:16px; font-weight:600; cursor:pointer; transition:background .2s,transform .15s,box-shadow .2s; display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; }
.next-btn:hover:not(:disabled) { background:#3D5E4E; transform:translateY(-2px); box-shadow:0 8px 28px rgba(74,109,92,.25); }
.next-btn:disabled { opacity:.45; cursor:not-allowed; }
.next-btn svg { width:18px; height:18px; flex-shrink:0; }
.text-input { width:100%; padding:1rem 1.25rem; border:0; border-radius:16px; font-family:'Outfit',sans-serif; font-size:15px; color:var(--warm-900); background:var(--field-fill); outline:none; transition:box-shadow .2s; margin-top:.5rem; min-height:48px; }
.text-input:focus { box-shadow:inset 0 0 0 2px var(--sage-deep); }
select.text-input { appearance:none; background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7B74' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 1.2rem center; padding-right:3rem; cursor:pointer; }
.results-header { text-align:center; margin-bottom:2rem; }
.results-header .checkmark { width:64px; height:64px; background:var(--sage-pale); border-radius:50%; margin:0 auto 1.2rem; display:flex; align-items:center; justify-content:center; font-size:28px; }
.results-header h2 { font-family:'Fraunces',serif; font-size:1.8rem; font-weight:700; margin-bottom:.5rem; }
.results-header p { font-size:14px; color:var(--warm-500); }
.summary-pill { display:inline-flex; align-items:center; gap:6px; background:var(--sage-ghost); border:0; color:var(--sage-deep); font-size:12px; font-weight:600; padding:5px 13px; border-radius:50px; margin:3px; }
.results-grid { display:flex; flex-direction:column; gap:1rem; margin-top:1.5rem; }
.result-card { border:0; border-radius:18px; padding:1.4rem 1.5rem; display:flex; flex-direction:column; gap:.5rem; text-decoration:none; transition:box-shadow .2s,transform .2s; background:var(--white); box-shadow:var(--shadow-card); }
.result-card:hover { box-shadow:0 2px 6px rgba(28,35,32,.05), 0 24px 44px -24px rgba(74,109,92,.4); transform:translateY(-3px); }
.result-card-top { display:flex; align-items:center; gap:12px; }
.result-icon { width:44px; height:44px; flex-shrink:0; border-radius:12px; background:var(--sage-pale); display:flex; align-items:center; justify-content:center; font-size:22px; }
.result-card h3 { font-family:'Fraunces',serif; font-size:1rem; font-weight:700; color:var(--warm-900); }
.result-tag { font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--sage); margin-bottom:2px; }
.result-card p { font-size:13px; color:var(--warm-500); line-height:1.6; }
.result-link { font-size:13px; font-weight:600; color:var(--sage-deep); display:flex; align-items:center; gap:5px; margin-top:.25rem; }
.crisis-box { margin-top:1.5rem; padding:1.1rem 1.4rem; background:var(--sage-ghost); border-radius:16px; border:0; }
.crisis-box p { font-size:13px; color:var(--warm-500); line-height:1.7; }
.crisis-box strong.lead { color:var(--sage-deep); }
.footer-note { text-align:center; font-size:13px; color:var(--warm-500); padding:1.5rem; }
.footer-note a { color:var(--warm-500); text-decoration:none; }
.footer-note a:hover { color:var(--sage-deep); }
@media (max-width:480px) { .card { padding:2rem 1.5rem; border-radius:20px; } .quiz-wrap { padding:1.5rem 1rem 3rem; } }
@media (prefers-reduced-motion: reduce) {
     *, *::before, *::after { animation-duration:.001ms !important; transition-duration:.001ms !important; }
     .card, .quiz-scene .orb { animation:none !important; }
     .card { opacity:1; }
}

/* ---- Location step: field labels + optional ZIP ---- */
.field-label { display:block; font-size:.85rem; font-weight:600; color:var(--warm-700,#5a4f46); margin-top:1.25rem; }
.field-label:first-of-type { margin-top:0; }
.field-opt { font-weight:400; color:var(--warm-500,#8c8178); }

/* ---- Live local providers (NPI registry) — the results ---- */
.providers { margin-top:.5rem; margin-bottom:1.75rem; text-align:left; }
.providers-h { font-family:'Fraunces',serif; font-size:1.15rem; font-weight:700; color:var(--warm-900,#2c2520); margin-bottom:.3rem; }
.providers-note { font-size:13px; color:var(--warm-500,#8c8178); line-height:1.6; margin-bottom:1rem; }
.providers-list { display:grid; gap:.7rem; }
.prov-card { padding:1rem 1.15rem; border-radius:16px; background:var(--white,#fff); box-shadow:var(--shadow-card, 0 1px 2px rgba(28,35,32,.05), 0 14px 34px -24px rgba(74,109,92,.4)); }
.prov-name { font-family:'Fraunces',serif; font-weight:700; font-size:1rem; color:var(--warm-900,#2c2520); }
.prov-type { font-size:12px; font-weight:600; letter-spacing:.02em; color:var(--sage-deep,#4a6d5c); margin-top:1px; }
.prov-addr { font-size:13px; color:var(--warm-500,#8c8178); margin-top:.4rem; line-height:1.5; }
.prov-actions { margin-top:.6rem; display:flex; gap:1.1rem; flex-wrap:wrap; }
.prov-link { font-size:13px; font-weight:600; color:var(--sage-deep,#4a6d5c); text-decoration:none; }
.prov-link:hover { text-decoration:underline; }
.prov-empty { font-size:13px; color:var(--warm-500,#8c8178); line-height:1.6; }
.prov-skeleton { height:80px; border-radius:16px; background:linear-gradient(100deg,#f1ede9 30%,#f7f4f1 50%,#f1ede9 70%); background-size:200% 100%; animation:provsh 1.2s linear infinite; }
@keyframes provsh { from { background-position:200% 0; } to { background-position:-200% 0; } }
@media (prefers-reduced-motion: reduce) { .prov-skeleton { animation:none; } }

/* ============================================================
   Brand depth on EVERY quiz step — multi-color floating orb scene,
   soft aurora canvas, glassy card. Carries the homepage's depth
   language into the questionnaire (scene + card are constant across
   all 6 steps, so one pass polishes every layer).
   ============================================================ */
:root {
     --blue-light:#7BADD4; --blue-pale:#B5D4E8; --blue-whisper:#E6F1F9;
     --peach:#E09B7D; --peach-light:#EDBE9E; --peach-whisper:#FBF0E8;
     --yellow-light:#ECC872; --yellow-pale:#F5DFA0;
}
/* warm aurora wash behind the whole questionnaire */
.quiz-wrap {
     background:
            radial-gradient(120% 80% at 82% 8%, var(--blue-whisper) 0%, transparent 55%),
            radial-gradient(120% 80% at 12% 92%, var(--peach-whisper) 0%, transparent 55%),
            linear-gradient(180deg, var(--sage-ghost) 0%, var(--warm-50) 72%);
}
/* each orb reads as a soft 3D sphere (inner highlight) */
.quiz-scene .orb { box-shadow: inset 14px 16px 32px rgba(255,255,255,0.45); }
.quiz-scene .orb-a { opacity:.34; }
.quiz-scene .orb-b { opacity:.30; }
/* two extra brand-color orbs as HTML spans (.orb-c/.orb-d) — add more spans for more orbs */
.quiz-scene .orb-c { width:200px; height:200px; top:43%; right:7%; opacity:.26; filter:blur(3px); background:radial-gradient(circle at 35% 30%, var(--blue-pale), var(--blue-light)); animation-delay:-3s; }
.quiz-scene .orb-d { width:128px; height:128px; bottom:13%; right:22%; opacity:.30; background:radial-gradient(circle at 35% 30%, var(--peach-light), var(--peach)); animation-delay:-9s; }
/* glassy card lifts off the depth field */
.card { background:rgba(255,255,255,0.82); -webkit-backdrop-filter:saturate(180%) blur(16px); backdrop-filter:saturate(180%) blur(16px); }
/* warmer brand accents */
.step-label { background:linear-gradient(90deg,var(--sage-deep),var(--blue-light)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.progress-seg.active { background:linear-gradient(90deg,var(--sage),var(--blue-light)); }
@media (max-width:600px) { .quiz-scene .orb-c { width:140px; height:140px; } .quiz-scene .orb-d { display:none; } }

/* small layout utilities used by the quiz JS */
.next-btn--gap { margin-top:1.5rem; }
.summary-pills { margin-top:.75rem; }
.next-btn--ghost { margin-top:1.5rem; background:transparent; color:var(--sage-deep); box-shadow:inset 0 0 0 1.5px var(--sage-deep); }
.next-btn--ghost:hover { background:var(--sage-ghost); }
