/* ================================================================
   COVERAGE OPTIONS FUNNEL — /coverage-options/
   Uses the existing Frontline design tokens from style.css only:
   navy / blue / blue-mid / blue-light / red / off-white / white,
   Inter type scale, 8px + 12px radii, existing shadows.
   ================================================================ */

.funnel-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(150deg, var(--navy) 0%, #1e3d72 55%, var(--blue) 100%);
  background-attachment: fixed;
}

/* ---- HEADER (same navy bar, same logo lockup as the site nav) ---- */
.funnel-header {
  background: var(--navy);
  height: 68px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .35);
  position: sticky;
  top: 0;
  z-index: 100;
}
.funnel-header .nav-logo img { height: 46px; width: auto; }

/* ---- SHELL ---- */
.funnel-main {
  flex: 1;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.funnel-shell { width: 100%; max-width: 620px; }

/* ---- PROGRESS ---- */
.fprogress { margin-bottom: 1.25rem; }
.fprogress-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin-bottom: .625rem;
}
.fprogress-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}
.fprogress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--red);
  transition: width .45s cubic-bezier(.22, 1, .36, 1);
}
.fprogress-step.done .fprogress-bar span { width: 100%; background: #7EA8D8; }
.fprogress-step.active .fprogress-bar span { width: 60%; }
.fprogress-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.fprogress-label {
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  text-align: center;
  transition: color .3s;
}
.fprogress-step.active .fprogress-label { color: #fff; }
.fprogress-step.done .fprogress-label { color: rgba(255, 255, 255, .62); }

/* ---- CARD ---- */
.fcard {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2.25rem 2rem;
  border: .5px solid rgba(255, 255, 255, .35);
}
.fscreen { display: none; animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1) both; }
.fscreen.active { display: block; }

.fback {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  background: none;
  padding: 0;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
  transition: color .2s;
}
.fback:hover { color: var(--blue-mid); }

.feyebrow {
  font-size: .6875rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.fh1 {
  font-family: var(--fh);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.fsub {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.fquestion {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .875rem;
}
.fquestion.spaced { margin-top: 1.75rem; }

/* ---- OPTION BUTTONS ---- */
.fopts { display: flex; flex-direction: column; gap: .625rem; }
.fopt {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 56px;
  text-align: left;
  padding: .875rem 1.125rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--fb);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  transition: border-color .18s, background .18s, transform .15s, box-shadow .18s;
}
.fopt:hover { border-color: var(--blue-mid); background: var(--blue-light); }
.fopt-mark {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color .18s, background .18s;
}
.fopt-mark.square { border-radius: 5px; }
.fopt.selected {
  border-color: var(--red);
  background: var(--blue-light);
  box-shadow: var(--shadow-sm);
}
.fopt.selected .fopt-mark { border-color: var(--red); background: var(--red); }
.fopt.selected .fopt-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- YES / NO ---- */
.fopts.inline { flex-direction: row; gap: .75rem; }
.fopts.inline .fopt { justify-content: center; }

/* ---- ACTIONS ---- */
.factions { margin-top: 1.75rem; }
.fbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 56px;
  padding: 1rem 1.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--fh);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  border-radius: var(--r);
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}
.fbtn:hover { background: var(--red-hover); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(176, 58, 46, .35); }
.fbtn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; background: var(--red); }
.fbtn.secondary {
  background: #fff;
  color: var(--navy);
  border: 2px solid var(--border);
}
.fbtn.secondary:hover { background: var(--blue-light); border-color: var(--blue-mid); box-shadow: var(--shadow-sm); }
.freassure {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  margin-top: .875rem;
}
.ferror {
  display: none;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--red);
  text-align: center;
  margin-top: .875rem;
}
.ferror.show { display: block; }

/* ---- FIELDS (reuses .form-input / .form-select / .form-label tokens) ---- */
.ffields { display: flex; flex-direction: column; gap: 1rem; }
.ffields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.funnel-body .form-input,
.funnel-body .form-select { min-height: 52px; font-size: 1rem; }
.fhint { font-size: .75rem; color: var(--muted); margin-top: .375rem; }

/* ---- CONSENT ---- */
.fconsent {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: .875rem 1rem;
  margin-top: 1.25rem;
  cursor: pointer;
}
.fconsent input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red);
}
.fconsent span { font-size: .8125rem; color: var(--muted); line-height: 1.5; }

/* ---- PEOPLE REPEATER ---- */
.fperson {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.125rem;
  margin-bottom: .875rem;
}
.fperson-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .875rem;
}
.fperson-title {
  font-family: var(--fh);
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fperson-remove {
  background: none;
  font-size: .75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .04em;
  padding: .25rem;
}
.fadd {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  min-height: 52px;
  background: #fff;
  border: 2px dashed var(--border);
  border-radius: var(--r);
  font-family: var(--fh);
  font-size: .875rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: .06em;
  transition: border-color .2s, background .2s, color .2s;
}
.fadd:hover { border-color: var(--blue-mid); background: var(--blue-light); }

/* ---- NOTE ---- */
.fnote {
  background: var(--blue-light);
  border-left: 3px solid var(--blue-mid);
  border-radius: var(--r);
  padding: .875rem 1rem;
  font-size: .8125rem;
  color: var(--blue);
  line-height: 1.55;
  margin-top: 1.5rem;
}

/* ---- FINAL SCREEN ---- */
.freview { text-align: center; padding: .5rem 0 0; }
.fspinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--blue-light);
  border-top-color: var(--red);
  margin: 0 auto 1.25rem;
  animation: fspin .8s linear infinite;
}
@keyframes fspin { to { transform: rotate(360deg); } }
.fchecks { display: flex; flex-direction: column; gap: .625rem; max-width: 320px; margin: 1.5rem auto 0; text-align: left; }
.fcheck {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--muted);
  opacity: .45;
  transition: opacity .35s, color .35s;
}
.fcheck-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 900;
  color: transparent;
  flex-shrink: 0;
  transition: background .35s, color .35s, border-color .35s;
}
.fcheck.done { opacity: 1; color: var(--navy); }
.fcheck.done .fcheck-dot { background: var(--red); border-color: var(--red); color: #fff; }

.fdone-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.875rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(176, 58, 46, .35);
}
.fdone { text-align: center; }
.fdone .fh1 { font-size: 1.875rem; }
.fphone-line { font-size: .875rem; color: var(--muted); margin-top: 1rem; text-align: center; }
.fphone-line a { color: var(--blue-mid); font-weight: 700; }
.fbtn-stack { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }

/* ---- TRUST STRIP + FOOTER ---- */
.ftrust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem .875rem;
  margin-top: 1.5rem;
}
.ftrust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .55);
}
.ftrust-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.funnel-footer {
  background: #060e18;
  padding: 1.5rem 2.5rem;
  text-align: center;
}
.funnel-footer-copy { font-size: .75rem; color: rgba(255, 255, 255, .3); line-height: 1.7; }
.funnel-footer-copy a { color: rgba(255, 255, 255, .5); }
.funnel-footer-copy a:hover { color: #fff; }

/* ================================================================
   RESPONSIVE — the funnel is used mostly on phones
   ================================================================ */
@media (max-width: 640px) {
  .funnel-header { padding: 0 1.125rem; }
  .funnel-header .nav-logo img { height: 38px; }
  .funnel-header .nav-brand-name { font-size: .875rem; }
  .funnel-header .nav-brand-tag { display: none; }
  .funnel-header .nav-phone { font-size: .8125rem; }
  .funnel-main { padding: 1.5rem 1rem 2.5rem; }
  .fcard { padding: 1.5rem 1.25rem 1.5rem; border-radius: var(--r-lg); }
  .fh1 { font-size: 1.5rem; }
  .fdone .fh1 { font-size: 1.5rem; }
  .ffields-2 { grid-template-columns: 1fr; }
  .fprogress-label { font-size: .5625rem; letter-spacing: .06em; }
  .fopt { font-size: .9375rem; padding: .875rem 1rem; }
  .funnel-footer { padding: 1.25rem 1.25rem; }
}

@media (max-width: 380px) {
  .funnel-header .nav-brand-name { font-size: .8125rem; }
  .funnel-header .nav-phone { display: none; }
}
