/* BCB Coverage Estimator (/insurance/coverage-estimator/) — redesign 2026-05-25.
   Body, nav, footer, fonts, global reset, and the sitewide ombre default
   are handled by colors_and_type.css + nav.css. Every selector here is
   scoped to body.page-coverage-estimator: that keeps the styles page-local
   AND beats the global `body.full-width-content section { padding-block }`
   rule (L-015), so each section keeps its own padding. */

/* ═══════════════════════════════════════════════════════════
   PAGE GRADIENT — short page (v3 short ramp)
   ═══════════════════════════════════════════════════════════ */
body.page-coverage-estimator {
  background: var(--grad-page-v3-short) no-repeat;
  background-attachment: fixed;
}
/* Case-A footer fade — page ends on the estimator tool (light), dissolves into the navy footer */
body.page-coverage-estimator .footer-ombre-blend { display: block; }

/* All sections sit transparent over the gradient */
body.page-coverage-estimator .vi-hero,
body.page-coverage-estimator .vi-trust,
body.page-coverage-estimator .vi-process,
body.page-coverage-estimator .vi-helps,
body.page-coverage-estimator .vi-plans,
body.page-coverage-estimator .vi-locations,
body.page-coverage-estimator .vi-final {
  background: transparent;
}

/* Lifted card pattern — translucent over gradient */
body.page-coverage-estimator .vi-card {
  background: var(--vi-card-bg);
  backdrop-filter: blur(var(--vi-card-blur));
  -webkit-backdrop-filter: blur(var(--vi-card-blur));
  box-shadow: var(--vi-card-shadow);
  border: var(--vi-card-border);
  border-radius: var(--vi-card-radius);
  transition: background var(--dur-base), box-shadow var(--dur-base), border-radius var(--dur-base);
}

/* Local density / card-style tokens (defaults = Balanced, translucent) */
body.page-coverage-estimator {
  --vi-section-pad-y: clamp(56px, 8vw, 96px);
  --vi-section-pad-y-sm: clamp(48px, 7vw, 80px);
  --vi-section-pad-y-hero: clamp(56px, 8vw, 96px) clamp(48px, 7vw, 80px);
  --vi-card-pad-x: clamp(28px, 4vw, 44px);
  --vi-card-pad-y: 36px;
  --vi-card-radius: var(--radius-xl);
  --vi-card-bg: var(--card-lift-bg);
  --vi-card-shadow: 0 1px 3px rgba(31,45,64,0.05), 0 12px 32px rgba(31,45,64,0.08);
  --vi-card-border: 0 solid transparent;
  --vi-card-blur: 8px;
}

/* ─── Shared header pattern (matches v3 system) ──────── */
body.page-coverage-estimator .vi-eyebrow {
  font-family: var(--font-accent);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-500);
  margin: 0 0 18px;
}
body.page-coverage-estimator .vi-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--pink-500);
  margin: 0 0 16px;
  text-wrap: balance;
}
body.page-coverage-estimator .vi-sub {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--navy-500);
  margin: 0;
  text-wrap: pretty;
}

/* ─── HERO ─────────────────────────────────────────────── */
body.page-coverage-estimator .vi-hero { padding: clamp(22px, 3.4vw, 44px) 24px clamp(14px, 2.2vw, 24px); transition: padding var(--dur-base); }
body.page-coverage-estimator .vi-hero__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  text-align: left;
}
body.page-coverage-estimator .vi-hero__text { text-align: left; max-width: 580px; }
body.page-coverage-estimator .vi-hero__media {
  margin: 0;
  height: clamp(220px, 30vw, 340px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-photo);
  position: relative;
}
body.page-coverage-estimator .vi-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  display: block;
}

/* ─── On-this-page chips, living inside the hero ─────────────── */
body.page-coverage-estimator .vi-hero__toc {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 9px;
  margin-top: clamp(16px, 2vw, 22px);
}
body.page-coverage-estimator .vi-toc__label {
  font-family: var(--font-accent);
  font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy-400);
  flex-basis: 100%; margin: 0 0 8px;
}
body.page-coverage-estimator .vi-toc__chip {
  font-family: var(--font-sans);
  font-weight: 600; font-size: 13.5px;
  color: var(--navy-600);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(62, 80, 104, 0.14);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
body.page-coverage-estimator .vi-toc__chip:hover {
  background: #fff;
  color: var(--pink-600);
  border-color: var(--pink-200);
}

/* Jump targets clear the fixed nav + hub-subnav strip. */
body.page-coverage-estimator #estimator { scroll-margin-top: 130px; }
body.page-coverage-estimator .vi-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04; letter-spacing: -0.025em;
  color: var(--pink-500);
  margin: 0 0 22px;
  text-wrap: balance;
}
body.page-coverage-estimator .vi-hero__sub {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--navy-500);
  margin: 0 auto 30px;
  max-width: 720px;
  text-wrap: pretty;
}

/* ─── TRUST — stats + reviews ──────────────────────────── */
@media (max-width: 860px) {  }

/* ─── PROCESS STEPS ───────────────────────────────────── */
@media (max-width: 860px) {  }

/* ─── HELPS WITH ──────────────────────────────────────── */
@media (max-width: 720px) {  }

/* ─── PLANS ───────────────────────────────────────────── */

/* ─── LOCATIONS ───────────────────────────────────────── */

/* ─── FINAL CTA — gradient-into-navy (matches Homepage v3 Team) ─── */

/* ─── MID-PAGE CTA bands (subtle white-card style) ─── */

@media (max-width: 880px) {
  /* Single column, centered header. display:contents flattens the text
     wrapper so the chip row can reorder below the photo. */
  body.page-coverage-estimator .vi-hero { padding-top: clamp(14px, 3vw, 22px); }
  body.page-coverage-estimator .vi-hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  body.page-coverage-estimator .vi-hero__text { display: contents; text-align: center; }
  body.page-coverage-estimator .vi-eyebrow { margin-bottom: 8px; }
  body.page-coverage-estimator .vi-hero__title  { margin-bottom: 10px; }
  body.page-coverage-estimator .vi-hero__sub    { margin-bottom: 18px; }
  body.page-coverage-estimator .vi-hero__media { width: 100%; }
  body.page-coverage-estimator .vi-hero__toc {
    order: 1;
    justify-content: center;
    gap: 6px;
    margin-top: clamp(14px, 3vw, 18px);
  }
  body.page-coverage-estimator .vi-toc__label { width: 100%; text-align: center; margin: 0 0 2px; }
  body.page-coverage-estimator .vi-toc__chip { font-size: 12px; padding: 6px 12px; }
}

/* ─── Phone-width centering: section headers, short ledes.
   Estimator widget itself is NOT centered or restyled. ─── */
@media (max-width: 760px) {
  body.page-coverage-estimator .ve-head { text-align: center; }
}

/* ─── COVERAGE ESTIMATOR ────────────────────────────── */
body.page-coverage-estimator .ve-section { padding: var(--vi-section-pad-y) 32px; transition: padding var(--dur-base); }
body.page-coverage-estimator .ve-section__inner { max-width: 920px; margin: 0 auto; }
body.page-coverage-estimator .ve-head { text-align: center; max-width: 760px; margin: 0 auto 32px; }

body.page-coverage-estimator .ve-search { padding: 28px clamp(24px, 4vw, 36px); position: relative; }
body.page-coverage-estimator .ve-search__label {
  display: block;
  font-family: var(--font-accent);
  font-weight: 700; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink-600);
  margin: 0 0 12px;
}
body.page-coverage-estimator .ve-search__field {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  padding: 6px 12px 6px 20px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
body.page-coverage-estimator .ve-search__field:focus-within {
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(194, 99, 138, 0.18);
}
body.page-coverage-estimator .ve-search__field > svg {
  width: 20px; height: 20px;
  color: var(--navy-400);
  flex-shrink: 0;
}
body.page-coverage-estimator .ve-search__input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font-family: var(--font-sans);
  font-size: 16px; color: var(--navy-700);
  padding: 12px 0;
  outline: none;
}
body.page-coverage-estimator .ve-search__input::placeholder { color: var(--navy-300); }
body.page-coverage-estimator .ve-search__clear {
  background: none; border: 0; cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--navy-400);
  font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.page-coverage-estimator .ve-search__clear:hover { background: var(--gray-100); color: var(--navy-600); }
body.page-coverage-estimator .ve-search__results {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}
body.page-coverage-estimator .ve-search__result {
  padding: 12px 16px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14.5px; color: var(--navy-700);
  transition: background var(--dur-fast), color var(--dur-fast);
}
body.page-coverage-estimator .ve-search__result:hover,
body.page-coverage-estimator .ve-search__result[aria-selected="true"] {
  background: var(--pink-100);
  color: var(--pink-800);
}
body.page-coverage-estimator .ve-search__no-results {
  padding: 14px 16px;
  font-size: 14px; color: var(--navy-500);
  font-style: italic;
  list-style: none;
}
body.page-coverage-estimator .ve-search__no-results a {
  color: var(--pink-600); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
  font-style: normal;
}

body.page-coverage-estimator .ve-result { margin-top: 28px; }
body.page-coverage-estimator .ve-card { padding: 36px clamp(24px, 4vw, 40px); }
body.page-coverage-estimator .ve-card__head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin: 0 0 18px;
}
body.page-coverage-estimator .ve-card__badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-accent); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: var(--radius-pill);
  white-space: nowrap;
}
body.page-coverage-estimator .ve-card[data-outcome="covered"] .ve-card__badge { background: var(--pink-500); color: var(--white); }
body.page-coverage-estimator .ve-card[data-outcome="varies"] .ve-card__badge { background: var(--sky-500); color: var(--white); }
body.page-coverage-estimator .ve-card[data-outcome="denied"] .ve-card__badge { background: var(--navy-500); color: var(--white); }
body.page-coverage-estimator .ve-card[data-outcome="denied-superbill"] .ve-card__badge { background: var(--navy-500); color: var(--white); }
body.page-coverage-estimator .ve-card[data-outcome="verify"] .ve-card__badge { background: var(--cream); color: var(--navy-700); box-shadow: inset 0 0 0 1.5px rgba(62, 80, 104, 0.30); }

body.page-coverage-estimator .ve-card__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2; letter-spacing: -0.015em;
  color: var(--navy-700);
  margin: 0; flex: 1; min-width: 0;
  overflow-wrap: anywhere;
}
/* Long plan names + a wide nowrap badge squeezed .ve-card__name into a
   sliver at the card's right edge on narrow screens (words spilled past the
   border). Stack the header so the name always gets full width. */
@media (max-width: 640px) {
  body.page-coverage-estimator .ve-card__head {
    flex-direction: column; align-items: flex-start; gap: 12px;
  }
  body.page-coverage-estimator .ve-card__badge { white-space: normal; }
}
body.page-coverage-estimator .ve-card__lede {
  font-family: var(--font-sans);
  font-size: 16px; line-height: 1.55;
  color: var(--navy-700);
  margin: 0 0 24px;
}
body.page-coverage-estimator .ve-card__caveat {
  font-family: var(--font-sans);
  font-size: 14.5px; line-height: 1.55;
  color: var(--navy-700);
  background: var(--cream);
  border-left: 3px solid var(--pink-500);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: -8px 0 24px;
}
body.page-coverage-estimator .ve-card__caveat strong { color: var(--pink-700); }

body.page-coverage-estimator .ve-matrix { display: grid; gap: 18px; margin: 0 0 24px; }
body.page-coverage-estimator .ve-matrix__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px; align-items: start;
}
@media (max-width: 640px) {
  body.page-coverage-estimator .ve-matrix__row { grid-template-columns: 1fr; gap: 4px; }
}
body.page-coverage-estimator .ve-matrix__row dt {
  font-family: var(--font-accent); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0; padding-top: 6px;
}
body.page-coverage-estimator .ve-matrix__row dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px; line-height: 1.5;
  color: var(--navy-700);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
body.page-coverage-estimator .ve-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sans); font-weight: 600;
  font-size: 13px;
  padding: 6px 12px; border-radius: var(--radius-pill);
}
body.page-coverage-estimator .ve-chip__icon { width: 14px; height: 14px; flex-shrink: 0; }
body.page-coverage-estimator .ve-chip--yes { background: var(--navy-600); color: var(--white); }
body.page-coverage-estimator .ve-chip--no { background: rgba(194, 99, 138, 0.13); color: var(--pink-700); }

body.page-coverage-estimator .ve-card__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
body.page-coverage-estimator .ve-card__cta .btn { padding: 12px 22px; font-size: 14.5px; text-decoration: none; }
body.page-coverage-estimator .ve-card__cta .btn:hover { text-decoration: none; }

body.page-coverage-estimator .ve-disclaimer {
  max-width: 720px; margin: 24px auto 0;
  text-align: center; font-size: 13.5px; line-height: 1.55;
  color: var(--navy-400);
}

body.page-coverage-estimator .ve-multi-note {
  margin: 22px 0 0;
  padding: 18px 22px;
  background: var(--note-bg);
  border: 1px solid var(--note-border);
  border-radius: var(--radius-md);
  font-size: 14.5px; line-height: 1.55;
  color: var(--navy-700);
}
body.page-coverage-estimator .ve-multi-note strong { color: var(--navy-700); }
body.page-coverage-estimator .ve-multi-note a {
  color: var(--pink-600); font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
