/* ============================================================================
 * quiz.css — Gold-standard lead-capture quiz styling (Lead-Capture v2)
 * Warm-editorial / trustworthy-financial. Inherits each site's --clay accent.
 * ==========================================================================*/
/* Force hidden legacy capture forms to actually hide — the [hidden] attribute loses to
   the site's `.form { display: grid }` rule, so the old form leaks in below the quiz. */
[hidden] { display: none !important; }

.lq {
  --lq-navy: #002e5e;
  --lq-accent: var(--clay, #8a3324);
  --lq-cream: #f7f3ec;
  --lq-sand: #efe7d8;
  --lq-line: #d8dde6;
  --lq-ink: #1a2333;
  --lq-mut: #5b6472;
  --lq-good: #2f7d4f;
  max-width: 560px;
  margin: 0 auto;
  background: #fffdf9;
  border: 1px solid var(--lq-line);
  border-radius: 16px;
  box-shadow: 0 6px 26px rgba(0, 46, 94, 0.10);
  overflow: hidden;
  font-family: "Libre Franklin", -apple-system, Helvetica, Arial, sans-serif;
  color: var(--lq-ink);
}
.lq__head { background: var(--lq-navy); color: #fff; padding: 18px 22px 16px; }
.lq__title { font-family: "Newsreader", Georgia, serif; font-size: 21px; font-weight: 600; line-height: 1.2; }
.lq__sub { font-size: 13px; opacity: 0.85; margin-top: 3px; }

.lq__bar { height: 5px; background: var(--lq-sand); }
.lq__bar-fill {
  height: 100%; width: 12%;
  background: linear-gradient(90deg, var(--lq-accent), #c9a24a);
  border-radius: 0 3px 3px 0; transition: width 0.45s cubic-bezier(.4,0,.2,1);
}
.lq__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.lq__stage { padding: 24px 22px 8px; }
.lq__step { animation: lq-in 0.34s cubic-bezier(.4,0,.2,1); }
@keyframes lq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lq__q { font-family: "Newsreader", Georgia, serif; font-size: 22px; line-height: 1.25; color: var(--lq-navy); margin: 0 0 4px; font-weight: 600; }
.lq__help { font-size: 13.5px; color: var(--lq-mut); margin: 0 0 14px; }

/* option tiles */
.lq__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.lq__opts--wide { grid-template-columns: 1fr; }
.lq__opts--stack { grid-template-columns: 1fr; }
.lq__opt {
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left; gap: 2px;
  background: var(--lq-cream); border: 1.5px solid var(--lq-line); border-radius: 11px;
  padding: 14px 16px; font-size: 15px; font-weight: 600; color: var(--lq-ink);
  cursor: pointer; transition: border-color .15s, background .15s, transform .05s;
  font-family: inherit;
}
.lq__opt:hover { border-color: var(--lq-accent); background: #fff; }
.lq__opt:active { transform: translateY(1px); }
.lq__opt--range { flex-direction: row; justify-content: space-between; align-items: center; }
.lq__opt-hint { font-size: 12px; font-weight: 400; color: var(--lq-mut); }

/* fields */
.lq__fields { display: grid; gap: 12px; margin: 4px 0 6px; }
.lq__contact { grid-template-columns: 1fr 1fr; }
.lq__contact .lq__field:nth-child(3), .lq__contact .lq__field:nth-child(4) { grid-column: 1 / -1; }
.lq__field { display: flex; flex-direction: column; gap: 4px; }
.lq__label { font-size: 12.5px; font-weight: 600; color: var(--lq-navy); }
.lq__opt-tag { font-weight: 400; color: var(--lq-mut); font-size: 11px; }
.lq__input {
  font-family: inherit; font-size: 16px; padding: 11px 13px;
  border: 1.5px solid var(--lq-line); border-radius: 9px; background: #fff; color: var(--lq-ink);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.lq__input:focus { outline: none; border-color: var(--lq-accent); box-shadow: 0 0 0 3px rgba(138, 51, 36, 0.13); }
.lq__suffix { font-size: 12px; color: var(--lq-mut); }

/* calculator readout */
.lq__calc {
  display: none; margin: 12px 0 2px; padding: 12px 15px; border-radius: 10px;
  background: #eef6f0; border-left: 4px solid var(--lq-good); font-size: 14px; color: #1e4732;
}
.lq__calc b { font-size: 20px; color: var(--lq-good); }

/* result teaser (value-first): Arizona + national programs */
.lq__rintro { font-size: 14.5px; color: var(--lq-ink); margin: 2px 0 12px; }
.lq__rcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lq__rcol { background: var(--lq-cream); border: 1px solid var(--lq-line); border-radius: 11px; padding: 12px 14px; }
.lq__rcol:first-child { background: #eef6f0; border-color: #cfe6d7; }
.lq__rcol-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lq-navy); margin-bottom: 8px; }
.lq__rcol:first-child .lq__rcol-h { color: var(--lq-good); }
.lq__rlist { list-style: none; margin: 0; padding: 0; }
.lq__ritem { display: flex; flex-direction: column; gap: 1px; padding: 6px 0; border-top: 1px solid rgba(0,0,0,.06); }
.lq__ritem:first-child { border-top: 0; }
.lq__rname { font-size: 13.5px; font-weight: 600; color: var(--lq-ink); }
.lq__rname::before { content: "✓ "; color: var(--lq-good); font-weight: 700; }
.lq__rnote { font-size: 11.5px; color: var(--lq-mut); }
.lq__rmuted { color: var(--lq-mut); font-size: 12.5px; }
.lq__rmuted .lq__rname::before { content: ""; }
.lq__rfoot { font-size: 12px; color: var(--lq-mut); margin: 12px 0 2px; line-height: 1.45; }

/* consent */
.lq__consent { display: flex; gap: 9px; align-items: flex-start; margin: 14px 0 4px; font-size: 11.5px; color: var(--lq-mut); line-height: 1.45; }
.lq__consent-box { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: var(--lq-accent); }

/* next / skip / back / escape */
.lq__nextrow { display: flex; align-items: center; gap: 14px; margin: 16px 0 4px; }
.lq__next {
  background: var(--lq-navy); color: #fff; border: 0; border-radius: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background .15s, transform .05s;
}
.lq__next:hover { background: #013a76; }
.lq__next:active { transform: translateY(1px); }
.lq__skip { background: none; border: 0; color: var(--lq-mut); font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.lq__controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.lq__back { background: none; border: 0; color: var(--lq-navy); font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; padding: 4px 0; }
.lq__escape { background: none; border: 0; color: var(--lq-mut); font-size: 12.5px; cursor: pointer; text-decoration: underline; font-family: inherit; text-align: right; }

/* footer */
.lq__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px 16px; border-top: 1px solid var(--lq-line); flex-wrap: wrap; }
.lq__trust { font-size: 12px; color: var(--lq-mut); line-height: 1.5; }
.lq__cb { color: var(--lq-good); font-weight: 600; }
.lq__call { font-size: 12.5px; font-weight: 600; color: var(--lq-accent); text-decoration: none; }
.lq__call:hover { text-decoration: underline; }

.lq__sending, .lq__error { padding: 26px 8px; text-align: center; font-size: 15px; color: var(--lq-navy); }
.lq__error { color: var(--lq-accent); }
.lq__error a { color: var(--lq-accent); font-weight: 700; }

/* focus-visible ring for keyboard users */
.lq button:focus-visible, .lq input:focus-visible { outline: 3px solid rgba(0,46,94,.35); outline-offset: 2px; }

@media (max-width: 520px) {
  .lq__opts { grid-template-columns: 1fr; }
  .lq__contact { grid-template-columns: 1fr; }
  .lq__stage { padding: 20px 16px 8px; }
  .lq__head { padding: 15px 18px 13px; }
  .lq__q { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .lq__step { animation: none; }
  .lq__bar-fill { transition: none; }
  .lq__opt:active, .lq__next:active { transform: none; }
}

/* ---- guide.js — "free guide" soft hook (distinct, content-first feel) ---- */
.lg { max-width: 560px; margin: 0 auto; background: #fff8ec; border: 1px solid #e6d9be;
  border-left: 5px solid var(--clay, #8a3324); border-radius: 12px; padding: 20px 22px;
  font-family: "Libre Franklin", -apple-system, Helvetica, Arial, sans-serif; }
.lg__eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--clay, #8a3324); }
.lg__title { font-family: "Newsreader", Georgia, serif; font-size: 20px; font-weight: 600; color: #002e5e; margin: 4px 0 6px; line-height: 1.2; }
.lg__lede { font-size: 13.5px; color: #4a5568; margin: 0 0 12px; line-height: 1.5; }
.lg__read { color: var(--clay, #8a3324); font-weight: 600; }
.lg__form { display: flex; flex-wrap: wrap; gap: 8px; }
.lg__in { flex: 1 1 180px; font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1.5px solid #d8dde6; border-radius: 9px; background: #fff; }
.lg__in:focus { outline: none; border-color: var(--clay, #8a3324); }
.lg__btn { flex: 0 0 auto; background: var(--clay, #8a3324); color: #fff; border: 0; border-radius: 9px; padding: 11px 20px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.lg__btn:hover { filter: brightness(1.08); }
.lg__note { font-size: 11px; color: #7a828f; margin: 9px 0 0; }
@media (max-width: 480px) { .lg__btn { flex: 1 1 100%; } }

/* ---- popup.js — exit-intent / timed pop-up (dismissable) ---- */
.lp__backdrop { position: fixed; inset: 0; background: rgba(10,20,40,.55); z-index: 10000;
  display: flex; align-items: center; justify-content: center; padding: 18px; opacity: 1; transition: opacity .2s; }
.lp__backdrop.lp--closing { opacity: 0; }
.lp { position: relative; max-width: 480px; width: 100%; }
.lp__x { position: absolute; top: -12px; right: -12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: #002e5e; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.lp__body .lg { margin: 0; }
.lp__alt { text-align: center; font-size: 13px; color: #5b6472; margin: 12px 0 0;
  font-family: "Libre Franklin", Helvetica, Arial, sans-serif; }
.lp__alt a { color: #002e5e; font-weight: 700; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .lp__backdrop, .lp { transition: none; } }

/* ---- slim "get the free guide" top strip ---- */
.lg-top { display: block; text-align: center; background: #fff8ec; border-bottom: 1px solid #e6d9be;
  padding: 8px 14px; font-family: "Libre Franklin", Helvetica, Arial, sans-serif; font-size: 13px;
  color: #4a5568; text-decoration: none; }
.lg-top b { color: var(--clay, #8a3324); }
.lg-top:hover { background: #fdf2df; }
