*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --teal-50:#E1F5EE;--teal-100:#9FE1CB;--teal-500:#1D9E75;--teal-700:#0F6E56;--teal-900:#04342C;
  --amber-50:#FAEEDA;--amber-100:#FAC775;--amber-400:#BA7517;
  --blue-50:#E6F1FB;--blue-100:#B5D4F4;--blue-600:#185FA5;--blue-800:#0C447C;
  --red-50:#FCEBEB;--red-600:#A32D2D;
  --gray-50:#F8F9FA;--gray-100:#F1EFE8;--gray-200:#D3D1C7;--gray-400:#888780;--gray-600:#5c5c5a;--gray-700:#444441;--gray-900:#2C2C2A;
  --green-50:#EAF3DE;--green-700:#3B6D11;
  --purple-50:#EEEDFE;--purple-100:#CECBF6;--purple-600:#534AB7;
}
body { font-family:'DM Sans',sans-serif; background:#F7F9F8; color:var(--gray-900); min-height:100vh; }

/* ── Header ── */
header { background:var(--teal-900); padding:0 2rem; display:flex; align-items:center; justify-content:space-between; height:60px; width:100%; box-sizing:border-box; }
.logo { font-family:'DM Serif Display',serif; color:#fff; font-size:3.15rem; letter-spacing:-0.3px; }
.logo span { color:var(--teal-100); }
.header-right { display:flex; align-items:center; gap:12px; }
.badge { font-size:12px; background:none; color:var(--teal-100); padding:0; border-radius:0; letter-spacing:0.3px; font-weight:500; text-align:right; }
.hdr-note { font-size:11px; color:var(--teal-100); opacity:.8; }

/* ── Hero ── */
.hero { background:linear-gradient(135deg,var(--teal-900) 0%,#0a4a38 100%); padding:3rem 2rem 4rem; text-align:center; position:relative; overflow:hidden; }
.hero::before { content:''; position:absolute; top:-60px; right:-60px; width:280px; height:280px; background:rgba(29,158,117,.15); border-radius:50%; }
.hero::after  { content:''; position:absolute; bottom:-80px; left:-40px; width:200px; height:200px; background:rgba(159,225,203,.08); border-radius:50%; }
.hero h1 { font-family:'DM Serif Display',serif; font-size:2.2rem; color:#fff; margin-bottom:.5rem; position:relative; z-index:1; }
.hero p  { color:var(--teal-100); font-size:.95rem; font-weight:300; margin-bottom:2rem; position:relative; z-index:1; }

/* ── Search card ── */
.search-card { background:#fff; border-radius:16px; padding:1.6rem; max-width:780px; margin:0 auto; position:relative; z-index:2; box-shadow:0 8px 40px rgba(4,52,44,.2); }
.search-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:12px; }
.search-row-3 { display:grid; grid-template-columns:1fr 1fr auto; gap:12px; margin-bottom:12px; }

.field label { display:block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.8px; color:var(--gray-400); margin-bottom:6px; }
.field input, .field select { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:10px 14px; font-family:'DM Sans',sans-serif; font-size:.9rem; color:var(--gray-900); outline:none; transition:border-color .2s; background:var(--gray-50); appearance:none; }
.field input:focus, .field select:focus { border-color:var(--teal-500); background:#fff; }
.field input::placeholder { color:var(--gray-400); }
.select-wrap { position:relative; }
.select-wrap::after { content:'▾'; position:absolute; right:12px; top:50%; transform:translateY(-50%); color:var(--gray-400); font-size:12px; pointer-events:none; }

/* ── Custom carrier dropdown ── */
.carrier-field { position:relative; }
.carrier-trigger {
  display:flex; align-items:center; gap:10px;
  width:100%; border:1.5px solid var(--gray-200); border-radius:8px;
  padding:8px 14px; background:var(--gray-50); cursor:pointer;
  transition:border-color .2s; user-select:none;
}
.carrier-trigger:hover, .carrier-trigger.open { border-color:var(--teal-500); background:#fff; }
.carrier-trigger-logo { width:28px; height:28px; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.carrier-trigger-logo svg { width:22px; height:22px; }
.carrier-trigger-text { flex:1; }
.carrier-trigger-name { font-size:.9rem; font-weight:500; color:var(--gray-900); line-height:1.2; }
.carrier-trigger-sub  { font-size:11px; color:var(--gray-400); line-height:1.2; }
.carrier-trigger-arrow { color:var(--gray-400); font-size:12px; transition:transform .2s; flex-shrink:0; }
.carrier-trigger.open .carrier-trigger-arrow { transform:rotate(180deg); }

.carrier-dropdown {
  display:none; position:absolute; top:calc(100% + 6px); left:0; right:0;
  background:#fff; border:1.5px solid var(--gray-200); border-radius:12px;
  box-shadow:0 8px 32px rgba(4,52,44,.12); z-index:100; overflow:hidden;
  max-height:340px; overflow-y:auto;
}
.carrier-dropdown.open { display:block; }
.carrier-option {
  display:flex; align-items:center; gap:10px;
  padding:10px 14px; cursor:pointer; transition:background .12s;
  border-bottom:.5px solid var(--gray-100);
}
.carrier-option:last-child { border-bottom:none; }
.carrier-option:hover { background:var(--gray-50); }
.carrier-option.selected { background:var(--teal-50); }
.carrier-option-logo { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; overflow:hidden; }
.carrier-option-logo svg { width:24px; height:24px; }
.carrier-option-name { font-size:.9rem; font-weight:500; color:var(--gray-900); }
.carrier-option-type { font-size:11px; color:var(--gray-400); }
.carrier-option-check { margin-left:auto; color:var(--teal-500); font-size:14px; opacity:0; }
.carrier-option.selected .carrier-option-check { opacity:1; }

.btn-search { background:var(--teal-500); color:#fff; border:none; border-radius:8px; padding:10px 26px; font-family:'DM Sans',sans-serif; font-size:.95rem; font-weight:600; cursor:pointer; white-space:nowrap; transition:background .2s,transform .1s; align-self:flex-end; }
.btn-search:hover { background:var(--teal-700); }
.btn-search:active { transform:scale(.98); }
.btn-search:disabled { background:var(--gray-200); cursor:not-allowed; }

.cpt-row { display:flex; gap:12px; align-items:flex-end; padding-top:12px; border-top:1px solid var(--gray-100); }

/* CPT search autocomplete */
.cpt-search-results {
  display:none; position:absolute; top:calc(100% + 4px); left:0; right:0;
  background:#fff; border:1.5px solid var(--gray-200); border-radius:10px;
  box-shadow:0 8px 28px rgba(4,52,44,.13); z-index:200;
  max-height:280px; overflow-y:auto;
}
.cpt-search-results.open { display:block; }
.cpt-result-item {
  display:flex; align-items:center; gap:10px;
  padding:9px 14px; cursor:pointer; border-bottom:.5px solid var(--gray-100);
  transition:background .1s;
}
.cpt-result-item:last-child { border-bottom:none; }
.cpt-result-item:hover, .cpt-result-item.focused { background:var(--teal-50); }
.cpt-result-code { font-size:12px; font-weight:600; color:var(--teal-700); background:var(--teal-50); padding:2px 8px; border-radius:6px; white-space:nowrap; flex-shrink:0; }
.cpt-result-name { font-size:13px; color:var(--gray-900); }
.cpt-result-cat  { font-size:11px; color:var(--gray-400); }
.cpt-ai-row { display:flex; align-items:center; gap:10px; padding:10px 14px; cursor:pointer; background:var(--purple-50); border-top:.5px solid var(--purple-100); }
.cpt-ai-row:hover { background:var(--purple-100); }
.cpt-ai-icon { font-size:14px; flex-shrink:0; }
.cpt-ai-text { font-size:13px; color:var(--purple-600); font-weight:500; }
.cpt-ai-sub  { font-size:11px; color:var(--purple-600); opacity:.8; }
.cpt-searching { padding:12px 16px; font-size:13px; color:var(--gray-400); display:flex; align-items:center; gap:8px; }
.cpt-mini-spinner { width:14px; height:14px; border:2px solid var(--gray-200); border-top-color:var(--purple-600); border-radius:50%; animation:spin .7s linear infinite; flex-shrink:0; }

/* ── Main ── */
.main { max-width:1000px; margin:0 auto; padding:2rem 1.5rem; }

.ins-hero { display:flex; align-items:center; gap:14px; border:1.5px solid; border-radius:12px; padding:14px 20px; margin-bottom:1.4rem; }
.ins-hero-logo { width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.ins-hero-logo svg { width:36px; height:36px; }
.ins-hero-name { font-weight:600; font-size:1rem; }
.ins-hero-sub  { font-size:12px; margin-top:2px; }
.ins-hero-right { margin-left:auto; text-align:right; }
.ins-hero-label { font-size:11px; text-transform:uppercase; letter-spacing:.5px; font-weight:600; }
.ins-hero-avg   { font-size:1.5rem; font-weight:700; }

.cache-bar { display:flex; align-items:center; justify-content:space-between; background:#fff; border:1px solid var(--gray-200); border-radius:10px; padding:9px 16px; margin-bottom:1.2rem; font-size:13px; flex-wrap:wrap; gap:8px; }
.cache-bar-left { display:flex; align-items:center; gap:8px; }
.cache-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.cache-dot.fresh { background:var(--teal-500); }
.cache-dot.stale { background:var(--amber-400); animation:pulse 1.5s infinite; }
.cache-dot.live  { background:var(--blue-600); animation:pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.cache-text { color:var(--gray-700); }
.cache-time { color:var(--gray-400); }
.btn-refresh { background:none; border:1px solid var(--gray-200); border-radius:6px; padding:4px 12px; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; color:var(--gray-700); cursor:pointer; transition:all .15s; }
.btn-refresh:hover { border-color:var(--teal-500); color:var(--teal-700); }

.disclaimer { background:var(--blue-50); border-left:3px solid var(--blue-600); border-radius:6px; padding:10px 16px; font-size:13px; color:var(--blue-600); margin-bottom:1.8rem; display:flex; gap:8px; align-items:flex-start; }
.results-header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:1.2rem; flex-wrap:wrap; gap:8px; }
.results-title { font-size:1.1rem; font-weight:600; }
.results-meta  { font-size:13px; color:var(--gray-400); }

.summary-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:1.8rem; }
.stat-card { background:#fff; border:1px solid var(--gray-200); border-radius:10px; padding:1rem 1.1rem; }
.stat-card.highlighted { border-width:1.5px; }
.stat-label { font-size:11px; color:var(--gray-400); font-weight:500; text-transform:uppercase; letter-spacing:.5px; margin-bottom:4px; }
.stat-value { font-size:1.5rem; font-weight:600; }
.stat-value.green { color:var(--green-700); }
.stat-value.red   { color:var(--red-600); }
.stat-sub { font-size:11px; color:var(--gray-400); margin-top:2px; }

.section-title { font-size:12px; font-weight:600; text-transform:uppercase; letter-spacing:.8px; color:var(--gray-400); margin-bottom:10px; margin-top:1.6rem; display:flex; align-items:center; gap:8px; }
.section-title::after { content:''; flex:1; height:1px; background:var(--gray-200); }
.provider-list { display:flex; flex-direction:column; gap:12px; }

.provider-card { background:#fff; border:1px solid var(--gray-200); border-radius:14px; overflow:hidden; transition:box-shadow .2s; position:relative; }
.provider-card:hover { box-shadow:0 4px 20px rgba(29,158,117,.1); border-color:var(--teal-100); }
.provider-card.best-value   { border-color:var(--teal-500); border-width:1.5px; }
.provider-card.ins-highlight { border-width:1.5px; }
.best-badge { display:inline-block; color:#fff; font-size:11px; font-weight:600; padding:2px 10px; border-radius:20px; margin-bottom:6px; }
.best-badge.value { background:var(--teal-500); }

.card-top { padding:14px 18px 12px; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:start; }
.card-name { font-weight:600; font-size:.95rem; margin-bottom:4px; }
.card-type-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.card-type { font-size:12px; color:var(--gray-400); }
.network-tag { font-size:10px; padding:2px 8px; border-radius:10px; font-weight:600; white-space:nowrap; }
.network-tag.in  { background:var(--teal-50); color:var(--teal-700); }
.network-tag.out { background:var(--gray-100); color:var(--gray-400); }
.card-contact { display:flex; flex-direction:column; gap:5px; }
.contact-line { display:flex; align-items:flex-start; gap:6px; font-size:12px; color:var(--gray-700); }
.contact-line a { color:var(--blue-600); text-decoration:none; font-weight:500; }
.contact-line a:hover { text-decoration:underline; }
.card-right { text-align:right; }
.dist-tag { font-size:12px; color:var(--gray-400); }

.card-prices { border-top:1px solid var(--gray-100); padding:12px 18px; display:grid; grid-template-columns:1fr 1fr 1fr 120px; gap:10px; align-items:center; background:var(--gray-50); }
.price-col { }
.price-col.ins-col { border-radius:6px; padding:4px 8px; }
.price-label { font-size:10px; color:var(--gray-400); margin-bottom:2px; text-transform:uppercase; letter-spacing:.3px; font-weight:500; }
.price-val { font-size:.95rem; font-weight:600; }
.price-val.cash      { color:var(--green-700); }
.price-val.ins-active { font-size:1.05rem; }
.price-val.na        { color:var(--gray-400); font-size:13px; font-weight:400; }
.savings-pill { border-radius:6px; padding:5px 10px; font-size:12px; font-weight:600; text-align:center; }
.savings-pill.none { background:var(--gray-100); color:var(--gray-400); font-weight:400; }

.ins-table-wrap { overflow-x:auto; }
.ins-table { width:100%; border-collapse:collapse; font-size:13px; background:#fff; border-radius:12px; overflow:hidden; border:1px solid var(--gray-200); }
.ins-table th { background:var(--gray-50); font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.5px; color:var(--gray-400); padding:10px 12px; text-align:right; border-bottom:1px solid var(--gray-200); white-space:nowrap; }
.ins-table th:first-child { text-align:left; min-width:200px; }
.ins-table th.active-col { }
.ins-table td { padding:10px 12px; text-align:right; border-bottom:.5px solid var(--gray-100); color:var(--gray-900); font-weight:500; white-space:nowrap; }
.ins-table td:first-child { text-align:left; font-weight:600; }
.ins-table tr:last-child td { border-bottom:none; }
.ins-table tr:hover td { background:var(--gray-50); }
.ins-table td.active-col { font-weight:700; }
.ins-table td.na-cell { color:var(--gray-400); font-weight:400; }

.next-update-bar { display:flex; align-items:center; gap:10px; background:var(--purple-50); border-radius:8px; padding:10px 16px; font-size:13px; color:var(--purple-600); margin-top:1.5rem; }
.progress-wrap { flex:1; height:5px; background:var(--purple-100); border-radius:4px; overflow:hidden; }
.progress-fill { height:100%; background:var(--purple-600); border-radius:4px; }
.key-modal-overlay { display:none; position:fixed; inset:0; background:rgba(4,52,44,0.6); z-index:1000; align-items:center; justify-content:center; }
.key-modal-overlay.open { display:flex; }
.key-modal { background:#fff; border-radius:16px; padding:2rem; max-width:480px; width:90%; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.key-modal-logo { font-family:'DM Serif Display',serif; font-size:1.3rem; color:var(--teal-900); margin-bottom:1rem; }
.key-modal-logo span { color:var(--teal-500); }
.key-modal h2 { font-size:1.1rem; font-weight:600; margin-bottom:0.4rem; color:var(--gray-900); }
.key-modal p { font-size:13px; color:var(--gray-400); margin-bottom:1.2rem; line-height:1.6; }
.key-modal-input { width:100%; border:1.5px solid var(--gray-200); border-radius:8px; padding:11px 14px; font-family:'DM Sans',sans-serif; font-size:.9rem; color:var(--gray-900); outline:none; margin-bottom:10px; background:var(--gray-50); }
.key-modal-input:focus { border-color:var(--teal-500); background:#fff; }
.key-modal-btn { width:100%; background:var(--teal-500); color:#fff; border:none; border-radius:8px; padding:12px; font-family:'DM Sans',sans-serif; font-size:.95rem; font-weight:600; cursor:pointer; }
.key-modal-btn:hover { background:var(--teal-700); }
.key-modal-note { font-size:11px; color:var(--gray-400); margin-top:10px; text-align:center; }
.key-modal-note a { color:var(--blue-600); }
.key-settings-btn { background:none; border:none; font-size:11px; color:var(--teal-100); opacity:0.7; cursor:pointer; font-family:'DM Sans',sans-serif; text-decoration:underline; }
.key-settings-btn:hover { opacity:1; }
.plans-toggle { display:flex; align-items:center; justify-content:space-between; padding:9px 18px; border-top:1px solid var(--gray-100); cursor:pointer; background:var(--gray-50); transition:background .15s; user-select:none; }
.plans-toggle:hover { background:var(--teal-50); }
.plans-toggle-label { font-size:12px; font-weight:600; color:var(--teal-700); display:flex; align-items:center; gap:6px; }
.plans-toggle-count { font-size:11px; background:var(--teal-50); color:var(--teal-700); border-radius:10px; padding:1px 7px; font-weight:600; }
.plans-toggle-arrow { font-size:11px; color:var(--gray-400); transition:transform .2s; }
.plans-toggle.open .plans-toggle-arrow { transform:rotate(180deg); }
.plans-panel { display:none; padding:12px 18px 14px; border-top:1px solid var(--gray-100); background:#fff; }
.plans-panel.open { display:block; }
.plans-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px; }
.plan-item { border:1px solid var(--gray-200); border-radius:8px; padding:9px 12px; }
.plan-carrier { font-size:12px; font-weight:600; color:var(--gray-900); margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.plan-carrier-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.plan-names { display:flex; flex-direction:column; gap:2px; }
.plan-name { font-size:11px; color:var(--gray-700); padding:1px 0; }
.plan-name::before { content:'· '; color:var(--gray-400); }
.plans-updated { font-size:11px; color:var(--gray-400); margin-top:10px; text-align:right; }

.insurance-note { background:var(--amber-50); border-radius:8px; padding:12px 16px; font-size:13px; color:var(--amber-400); margin-top:1.2rem; display:flex; gap:8px; }

.loading { display:flex; flex-direction:column; align-items:center; gap:16px; padding:4rem 2rem; }
.spinner { width:36px; height:36px; border:3px solid var(--gray-200); border-top-color:var(--teal-500); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-msg { font-size:14px; font-weight:500; color:var(--gray-700); }
.loading-sub { font-size:13px; color:var(--gray-400); }
/* Mobile card hint + disclaimer */
.card-hint-mobile { display:none; }
.card-disclaimer-mobile { display:none; }

.empty-state { text-align:center; padding:4rem 2rem; color:var(--gray-400); }
.empty-icon  { font-size:2.5rem; margin-bottom:1rem; }
.empty-title { font-size:1rem; font-weight:500; color:var(--gray-700); margin-bottom:6px; }
.error-box { background:var(--red-50); border:1px solid #F09595; border-radius:10px; padding:1rem 1.4rem; color:var(--red-600); font-size:14px; margin-top:1rem; }

footer { text-align:center; padding:1rem; font-size:12px; color:var(--gray-400); border-top:none; margin-top:1rem; }

.bottom-disclaimer {
  flex:1; text-align:center; pointer-events:none; padding:0 16px;
}
.bottom-disclaimer p {
  font-size:10px; color:var(--gray-400);
  line-height:1.5; font-weight:400; margin:0;
}

/* ── Fixed action bar ── */
.fab-bar {
  position:fixed; bottom:24px; left:24px; right:24px; z-index:1000;
  display:flex; justify-content:space-between; align-items:center;
  pointer-events:none;
}
.fab {
  pointer-events:auto;
  background:var(--teal-500); color:#fff;
  border:none; border-radius:50px;
  padding:12px 22px; font-size:14px; font-weight:600;
  font-family:'DM Sans',sans-serif;
  box-shadow:0 4px 16px rgba(0,0,0,0.18);
  cursor:pointer; display:flex; align-items:center; gap:8px;
  transition:background .2s, transform .1s;
  white-space:nowrap;
}

@media(max-width:540px){
  .fab-bar { bottom:16px; left:16px; right:16px; }
  .fab { padding:10px 14px; font-size:12px; }
  .bottom-disclaimer { display:none; }
}

/* ── Feedback tags ── */
.fb-tag {
  padding:6px 14px; border-radius:20px; border:1.5px solid var(--gray-200);
  background:#fff; font-size:12px; font-weight:500; color:var(--gray-600);
  cursor:pointer; font-family:'DM Sans',sans-serif; transition:all .15s;
}
.fb-tag:hover { border-color:var(--teal-400); color:var(--teal-700); }
.fb-tag.active { background:var(--teal-50); border-color:var(--teal-500); color:var(--teal-700); font-weight:600; }

/* ════ QUIZ OVERLAY STYLES ════ */
#quizOverlay { display:none; }
#quizOverlay.open { display:flex !important; }

/* ── Quiz top bar ── */
.topbar {
  width:100%; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
.exit-btn {
  font-size:13px; color:rgba(255,255,255,.5); background:none;
  border:1px solid rgba(255,255,255,.15); border-radius:20px;
  padding:6px 16px; cursor:pointer; font-family:'DM Sans',sans-serif; transition:all .2s;
}
.exit-btn:hover { color:#fff; border-color:rgba(255,255,255,.4); }

/* ── Quiz progress (scoped to avoid conflict with main app .progress-wrap) ── */
#quizOverlay .progress-wrap { width:100%; max-width:560px; padding:0 32px; margin-bottom:8px; flex:unset; height:unset; background:none; overflow:visible; }
.progress-track { height:4px; background:rgba(255,255,255,.12); border-radius:4px; overflow:hidden; }
#quizOverlay .progress-fill { background:var(--teal-100); }
.progress-label { font-size:11px; color:rgba(255,255,255,.4); text-align:right; margin-top:6px; }

/* ── Quiz card wrapper ── */
.card-wrap { width:100%; max-width:560px; padding:0 24px 40px; flex:1; display:flex; flex-direction:column; }

/* ── Steps ── */
.step { display:none; flex-direction:column; animation:stepIn .35s ease forwards; }
.step.active { display:flex; }
@keyframes stepIn {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
.step-icon { font-size:38px; margin-bottom:16px; margin-top:8px; }
.step-q {
  font-family:'DM Serif Display',serif; font-size:1.65rem;
  color:#fff; line-height:1.25; margin-bottom:8px;
}
.step-sub { font-size:14px; color:rgba(255,255,255,.5); margin-bottom:24px; line-height:1.5; }

/* ── Quiz options ── */
.options { display:flex; flex-direction:column; gap:10px; }
.options.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.opt {
  background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.1);
  border-radius:14px; padding:16px 20px; cursor:pointer;
  display:flex; align-items:center; gap:14px; transition:all .18s ease;
  color:#fff; font-size:15px; font-weight:500;
  -webkit-tap-highlight-color:transparent;
}
.opt:hover { background:rgba(255,255,255,.11); border-color:var(--teal-100); transform:translateY(-1px); }
.opt.selected { background:var(--teal-500); border-color:var(--teal-500); }
.opt-icon { font-size:22px; flex-shrink:0; width:32px; text-align:center; }
.opt-label { flex:1; }
.opt-sub { font-size:12px; color:rgba(255,255,255,.6); margin-top:2px; font-weight:400; }
.opt-check {
  width:20px; height:20px; border-radius:50%;
  border:2px solid rgba(255,255,255,.25);
  flex-shrink:0; display:flex; align-items:center; justify-content:center;
  font-size:11px; transition:all .15s; color:transparent;
}
.opt.selected .opt-check { background:#fff; border-color:#fff; color:var(--teal-700); }

/* ── Quiz text input ── */
.text-input {
  background:rgba(255,255,255,.08); border:1.5px solid rgba(255,255,255,.15);
  border-radius:12px; padding:16px 18px; font-size:16px;
  font-family:'DM Sans',sans-serif; color:#fff; width:100%;
  outline:none; transition:border-color .2s, background .2s;
}
.text-input::placeholder { color:rgba(255,255,255,.3); }
.text-input:focus { border-color:var(--teal-100); background:rgba(255,255,255,.11); }

/* ── Quiz buttons ── */
.btn-continue {
  margin-top:20px; width:100%; background:var(--teal-500); color:#fff;
  border:none; border-radius:12px; padding:16px; font-size:15px; font-weight:600;
  font-family:'DM Sans',sans-serif; cursor:pointer;
  transition:background .2s, transform .1s;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.btn-continue:hover { background:var(--teal-700); }
.btn-continue:active { transform:scale(.98); }
.btn-continue:disabled { opacity:.4; cursor:not-allowed; }
.btn-skip {
  margin-top:12px; width:100%; background:none; border:none;
  color:rgba(255,255,255,.35); font-size:13px;
  font-family:'DM Sans',sans-serif; cursor:pointer; padding:8px; transition:color .2s;
}
.btn-skip:hover { color:rgba(255,255,255,.6); }

/* ── Nudge overlay ── */
#nudgeOverlay {
  display:none;
  position:fixed; inset:0; z-index:200;
  background:var(--teal-900);
  flex-direction:column; align-items:center; justify-content:center;
  padding:32px; text-align:center;
  animation:nudgeIn .3s ease forwards;
}
#nudgeOverlay.visible { display:flex; }
@keyframes nudgeIn {
  from { opacity:0; transform:scale(.96); }
  to   { opacity:1; transform:scale(1); }
}
.nudge-emoji { font-size:64px; margin-bottom:20px; animation:bounce .6s ease; }
@keyframes bounce {
  0%   { transform:scale(.5);  opacity:0; }
  60%  { transform:scale(1.15); }
  100% { transform:scale(1);   opacity:1; }
}
.nudge-headline {
  font-family:'DM Serif Display',serif; font-size:2rem;
  color:#fff; margin-bottom:12px; line-height:1.2;
}
.nudge-body {
  font-size:15px; color:rgba(255,255,255,.6);
  max-width:400px; line-height:1.6; margin-bottom:32px;
}
.nudge-body strong { color:var(--teal-100); font-weight:600; }

/* Auto-progress ring */
.nudge-ring-wrap { position:relative; width:56px; height:56px; cursor:pointer; margin:0 auto; }
.nudge-ring-wrap svg { transform:rotate(-90deg); }
.nudge-ring-bg { fill:none; stroke:rgba(255,255,255,.12); stroke-width:3; }
.nudge-ring-fill {
  fill:none; stroke:var(--teal-100); stroke-width:3;
  stroke-linecap:round;
  stroke-dasharray:138; stroke-dashoffset:138;
  transition:stroke-dashoffset linear;
}
.nudge-ring-label {
  position:absolute; inset:0; display:flex; align-items:center;
  justify-content:center; font-size:12px; color:rgba(255,255,255,.5);
}
.nudge-tap { font-size:11px; color:rgba(255,255,255,.3); margin-top:10px; letter-spacing:.3px; }

/* ── Quiz result screen ── */
.result-card {
  background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.1);
  border-radius:18px; padding:28px 24px; margin-bottom:12px; text-align:center;
}
.result-emoji { font-size:48px; margin-bottom:12px; }
.result-title { font-family:'DM Serif Display',serif; font-size:1.7rem; color:#fff; margin-bottom:8px; }
.result-sub { font-size:14px; color:rgba(255,255,255,.55); line-height:1.6; }
.result-summary { background:rgba(255,255,255,.05); border-radius:12px; padding:16px 18px; margin-top:18px; text-align:left; }
.result-row {
  display:flex; justify-content:space-between; align-items:center;
  padding:6px 0; border-bottom:1px solid rgba(255,255,255,.07); font-size:13px;
}
.result-row:last-child { border-bottom:none; }
.result-row-label { color:rgba(255,255,255,.45); }
.result-row-val { color:#fff; font-weight:600; }
.btn-search-now {
  margin-top:20px; width:100%; background:#fff; color:var(--teal-900);
  border:none; border-radius:12px; padding:16px; font-size:15px; font-weight:700;
  font-family:'DM Sans',sans-serif; cursor:pointer; transition:all .2s;
}
.btn-search-now:hover { background:var(--teal-100); }

/* ── Quiz spinner ── */
.spin {
  width:36px; height:36px; border:3px solid rgba(255,255,255,.1);
  border-top-color:var(--teal-100); border-radius:50%;
  animation:spin .8s linear infinite; margin:0 auto;
}

/* ── Responsive: tablet ── */
@media(max-width:720px){
  .search-row { grid-template-columns:1fr; }
  .search-row-3 { grid-template-columns:1fr 1fr; }
  .btn-search { grid-column:1/-1; }
  .summary-grid { grid-template-columns:1fr 1fr; }
  .card-top { grid-template-columns:1fr; }
  .card-prices { grid-template-columns:1fr 1fr; }
  .hero h1 { font-size:1.7rem; }
}

/* ── Responsive: mobile ── */
@media(max-width:540px){
  .search-btn-wrap { flex:none; width:100%; }

  /* Darker labels, lighter input fields on mobile */
  .search-card .field label { color:var(--gray-700); }
  .search-card .field input,
  .search-card .field select,
  .search-card .carrier-trigger { background:#fff; border-color:var(--gray-100); }
  .search-card .field input,
  .search-card .field select { color:var(--gray-400); }
  #zipInput, #cptInput { font-size:11px; padding:8px 6px; }

  .card-hint-mobile {
    display:block; margin-bottom:14px;
    padding-bottom:14px; border-bottom:1px solid var(--gray-100);
  }
  .card-hint-title {
    font-size:14px; font-weight:600; color:var(--gray-900); margin-bottom:4px;
  }
  .card-hint-sub {
    font-size:12px; color:var(--gray-400); line-height:1.5;
  }

  .hero { padding-bottom:1.5rem; }

  .card-disclaimer-mobile {
    display:block; padding:1.5rem 8px;
    text-align:center; font-size:11px; color:rgba(255,255,255,0.55);
    line-height:1.6;
  }

  .empty-state p { display:none; }
}

@media(max-width:480px){
  /* Quiz */
  .topbar { padding:14px 20px; }
  .card-wrap { padding:0 16px 32px; }
  .step-q { font-size:1.4rem; }
  .nudge-headline { font-size:1.6rem; }
  .options.grid-2 { grid-template-columns:1fr 1fr; gap:8px; }
  .opt { padding:13px 14px; font-size:14px; }

  /* Main app */
  header { padding:0 1rem; justify-content:center; }
  .logo { font-size:2.2rem; }
  .badge { display:none; }
  .hdr-note { display:none; }
  .hero { padding:2rem 1rem 3rem; }
  .hero h1 { font-size:1.4rem; }
  .search-card { padding:1.2rem; border-radius:12px; }
  .main { padding:1.2rem 1rem; }
  .summary-grid { grid-template-columns:1fr 1fr; gap:8px; }
  .stat-value { font-size:1.2rem; }
  .card-prices { grid-template-columns:1fr 1fr; gap:8px; padding:10px 14px; }
  .card-top { padding:12px 14px 10px; }
  .ins-table th, .ins-table td { padding:8px 10px; font-size:12px; }
  .ins-hero { flex-wrap:wrap; }
  .ins-hero-right { margin-left:0; text-align:left; width:100%; }

  /* Bigger tap targets */
  .btn-search { padding:13px 20px; font-size:1rem; }
  .carrier-trigger { padding:10px 14px; min-height:48px; }
  .field input, .field select { padding:12px 14px; font-size:1rem; min-height:48px; }
}

/* ── Responsive: small mobile ── */
@media(max-width:375px){
  .options.grid-2 { grid-template-columns:1fr; }
  .summary-grid { grid-template-columns:1fr; }
  .card-prices { grid-template-columns:1fr; }
}
