/* Affordable Health Insurance, ACA form page (CDG-173). Mobile first. */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --navy: #062B59; --deep: #003B80; --red: #ED1B2F; --red-hover: #C9111F; --white: #FFFFFF; --gray: #F5F7FA;
  --ink: #16243D; --muted: #46556F; --line: #D5DDE8; --navy-ink: #041F42; --on-navy-soft: #C9D8EE;
  --radius: 28px; --radius-sm: 14px; --shadow: 0 18px 50px rgba(6, 43, 89, .14);
  --head: "Montserrat", "Arial Black", Arial, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--deep); }
h1, h2, h3 { font-family: var(--head); color: var(--navy); margin: 0; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
h1, h2, h3, .sub, .lede, .lead { text-wrap: balance; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.red { color: var(--red); }
.js-phone { white-space: nowrap; }
:focus-visible { outline: 3px solid #4C8DFF; outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 30px;
  border: 0; border-radius: 999px; font-family: var(--head); font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn svg { flex: 0 0 auto; width: 22px; height: 22px; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(237, 27, 47, .32); }
.btn-red:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-red:active { transform: translateY(0); }
.btn-xl { min-height: 64px; padding: 16px 38px; font-size: 21px; }
.btn-xl svg { width: 26px; height: 26px; }
.btn-block { width: 100%; }
.fineprint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.on-navy .fineprint { color: var(--on-navy-soft); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid #E6EBF2; box-shadow: 0 2px 14px rgba(6, 43, 89, .06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: 0 1 auto; min-width: 0; }
.brand img { height: 36px; width: auto; }
.header-right { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.header-phone { display: none; text-align: right; line-height: 1.2; font-size: 13px; color: var(--muted); }
.header-phone a { display: block; font-family: var(--head); font-weight: 800; font-size: 20px; color: var(--navy); text-decoration: none; }
.btn-header { min-height: 46px; padding: 10px 16px; gap: 8px; }
.btn-header svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 26px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 30px; position: relative; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: var(--gray); color: var(--deep); border: 1px solid #DCE5F1; border-radius: 999px;
  padding: 8px 14px; font-family: var(--head); font-weight: 800; font-size: 12px; letter-spacing: .05em; line-height: 1.3; }
.badge svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--red); }
.hero h1 { font-size: 40px; font-weight: 800; margin-top: 18px; letter-spacing: -.02em; }
.hero .lede { font-size: 19px; color: var(--muted); margin-top: 14px; max-width: 30em; }
.hero .cta-wrap { margin-top: 24px; }
.hero-media { position: relative; padding: 14px 14px 22px 14px; }
.hero-media::before { content: ""; position: absolute; right: 0; bottom: 0; width: 72%; height: 78%; background: var(--navy); border-radius: var(--radius) var(--radius) 120px var(--radius); }
.hero-media::after { content: ""; position: absolute; left: 0; top: 0; width: 46%; height: 52%; border-top: 8px solid var(--red); border-left: 8px solid var(--red); border-radius: 38px 0 0 0; }
.hero-media img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 30% 28%; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Wave divider ---------- */
.wave { display: block; line-height: 0; }
.wave svg { display: block; width: 100%; height: 56px; }

/* ---------- Navy coverage section ---------- */
.on-navy { background: var(--navy); color: #fff; }
.on-navy h2, .on-navy h3 { color: #fff; }
.coverage { padding: 34px 0 60px; position: relative; overflow: hidden; }
.coverage::after { content: ""; position: absolute; left: -180px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: var(--deep); opacity: .55; }
.split { display: grid; gap: 34px; align-items: center; position: relative; z-index: 1; }
.coverage h2 { font-size: 34px; font-weight: 800; }
.coverage .sub { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.3; margin-top: 14px; color: #fff; }
.coverage .body { margin-top: 16px; color: #E3EBF7; font-size: 17px; }
.coverage .btn { margin-top: 26px; }
.media-frame { position: relative; }
.media-frame img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.coverage .media-frame::before { content: ""; position: absolute; z-index: 0; inset: auto -14px -14px auto; width: 70%; height: 70%; border-radius: 0 0 var(--radius) 0; border-right: 8px solid var(--red); border-bottom: 8px solid var(--red); }
.coverage .media-frame img { object-position: 72% 30%; }

/* ---------- Family section ---------- */
.family { padding: 64px 0 66px; position: relative; overflow: hidden; background: #fff; }
.family::before { content: ""; position: absolute; right: -120px; top: -120px; width: 190px; height: 190px; border-radius: 50%; border: 14px solid var(--red); }
.family::after { content: ""; position: absolute; left: -90px; bottom: -110px; width: 180px; height: 180px; border-radius: 50%; background: var(--navy); }
.family .split { z-index: 1; }
.family h2 { font-size: 34px; font-weight: 800; }
.family h2 span { display: block; }
.family .sub { margin-top: 16px; font-size: 19px; color: var(--muted); }
.family .btn { margin-top: 26px; }
.family-frame { position: relative; padding: 0 0 18px 18px; }
.family-frame::before { content: ""; position: absolute; left: 0; bottom: 0; width: 72%; height: 72%; background: var(--deep); border-radius: var(--radius) var(--radius) var(--radius) 120px; }
.family-frame img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; border-radius: var(--radius) var(--radius) var(--radius) 120px; box-shadow: var(--shadow); }

/* ---------- Info section ---------- */
.info { background: var(--gray); padding: 64px 0; }
.eyebrow { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.info h2 { font-size: 32px; font-weight: 800; margin-top: 10px; }
.info .lead { font-size: 20px; color: var(--ink); margin-top: 16px; font-weight: 500; }
.info .more { margin-top: 14px; color: var(--muted); }
.info .cta-wrap { margin-top: 26px; }
.factors { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px; border-top: 6px solid var(--red); }
.factors h3 { font-size: 21px; font-weight: 800; }
.factors .intro { color: var(--muted); margin-top: 8px; font-size: 16px; }
.factors ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.factors li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.factors .ico { width: 48px; height: 48px; border-radius: 14px; background: #E8EFF9; color: var(--deep); display: grid; place-items: center; }
.factors .ico svg { width: 26px; height: 26px; }
.factors strong { display: block; font-family: var(--head); color: var(--navy); font-size: 17px; line-height: 1.3; }
.factors li span { display: block; color: var(--muted); font-size: 15.5px; line-height: 1.5; margin-top: 2px; }

/* ---------- Form section ---------- */
.form-section { position: relative; padding: 0 0 70px; background: #fff; }
.form-section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px; background: var(--deep); border-radius: 0 0 50% 50% / 0 0 70px 70px; }
.form-section .container { position: relative; padding-top: 44px; }
.form-card { max-width: 820px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(6, 43, 89, .22); padding: 28px 20px 26px; scroll-margin-top: calc(var(--header-h) + 14px); }
.form-card h2 { font-size: 28px; font-weight: 800; }
.form-card .sub { color: var(--muted); margin-top: 10px; font-size: 17px; }
.form-grid { display: grid; gap: 18px; margin-top: 24px; }
.field label, .field .label { display: block; font-weight: 700; font-size: 16px; color: var(--navy); margin-bottom: 7px; }
.field input, .field select { width: 100%; min-height: 56px; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; font: 500 18px/1.3 var(--body); color: var(--ink); background: #fff; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23062B59' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 22px; }
.field input:focus, .field select:focus { border-color: var(--deep); outline: none; box-shadow: 0 0 0 4px rgba(0, 59, 128, .16); }
.field input::placeholder { color: #7D8AA0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--red); background-color: #FFF6F7; }
.error { color: #C40F21; font-size: 15px; font-weight: 600; margin-top: 6px; }
.error[hidden] { display: none; }
.sizes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sizes label { position: relative; margin: 0; }
.sizes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizes span { display: grid; place-items: center; min-height: 56px; border: 2px solid var(--line); border-radius: var(--radius-sm); font: 800 19px/1 var(--head); color: var(--navy); cursor: pointer; background: #fff; }
.sizes input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.sizes input:focus-visible + span { outline: 3px solid #4C8DFF; outline-offset: 2px; }
.sizes.invalid span { border-color: var(--red); }
.consent { margin-top: 22px; background: var(--gray); border-radius: var(--radius-sm); padding: 14px 14px 14px 12px; }
.consent-label { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; cursor: pointer; }
.consent-label input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--navy); cursor: pointer; }
.consent-text { font-size: 14px; line-height: 1.55; color: #33425C; }
.consent-text a { color: var(--deep); font-weight: 600; }
.consent.invalid { box-shadow: inset 0 0 0 2px var(--red); }
.form-card .submit { margin-top: 20px; }
.form-card .after-submit { font-size: 13.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.thanks { text-align: center; padding: 10px 0 4px; }
.thanks[hidden] { display: none; }
.thanks .check { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: #E8F5EC; color: #1E7B3C; display: grid; place-items: center; }
.thanks .check svg { width: 38px; height: 38px; }
.thanks h3 { font-size: 28px; font-weight: 800; outline: none; }
.thanks p { margin: 12px auto 0; color: var(--muted); max-width: 46ch; }
.thanks .btn { margin-top: 22px; }

/* ---------- Agent section ---------- */
.agent { padding: 64px 0 70px; position: relative; overflow: hidden; }
.agent::before { content: ""; position: absolute; right: -200px; top: -200px; width: 460px; height: 460px; border-radius: 50%; background: var(--deep); opacity: .7; }
.agent h2 { font-size: 36px; font-weight: 800; }
.agent .sub { font-size: 20px; color: #E3EBF7; margin-top: 14px; }
.agent .cta-wrap { margin-top: 26px; }
.agent-frame { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.agent-frame::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 10px solid var(--red); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(-20deg); }
.agent-frame img { position: relative; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 52% 30%; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .12); }

/* ---------- Final CTA ---------- */
.final { padding: 70px 0; text-align: center; position: relative; overflow: hidden; background: #fff; }
.final::before { content: ""; position: absolute; left: -110px; top: -110px; width: 170px; height: 170px; border-radius: 50%; border: 14px solid var(--red); }
.final::after { content: ""; position: absolute; right: -100px; bottom: -120px; width: 190px; height: 190px; border-radius: 50%; background: var(--navy); }
.final .container { position: relative; z-index: 1; }
.final h2 { font-size: 38px; font-weight: 800; max-width: 16ch; margin: 0 auto; letter-spacing: -.02em; }
.final .sub { font-size: 20px; color: var(--muted); margin-top: 14px; }
.final .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-ink); color: #C3D0E4; padding: 48px 0 40px; font-size: 14.5px; line-height: 1.6; }
.site-footer .top { display: grid; gap: 22px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.site-footer .logo img { height: 46px; width: auto; }
.site-footer .contact p { margin-top: 4px; }
.site-footer .contact a { color: #fff; font-weight: 700; text-decoration: none; display: inline-block; min-height: 44px; line-height: 44px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.disclaimers { padding-top: 24px; display: grid; gap: 12px; }
.disclaimers strong { color: #fff; }
.copyright { margin-top: 18px; color: #93A5C2; }

/* ---------- Sticky mobile call bar ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255, 255, 255, .98); box-shadow: 0 -6px 20px rgba(6, 43, 89, .16);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
.callbar.show { transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
.callbar .btn { width: 100%; min-height: 56px; }

/* ---------- Breakpoints ---------- */
@media (max-width: 419px) {
  .btn-explore svg { display: none; }
}
@media (max-width: 359px) {
  .brand img { height: 32px; }
  .btn-header { padding: 10px 12px; }
  .hero h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  body.has-callbar .site-footer { padding-bottom: 118px; }
  .btn-explore { width: 100%; }
  .family::after { display: none; }
  .form-card .submit { font-size: 19px; letter-spacing: .01em; padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 768px) {
  .callbar { display: none; }
  .container { padding: 0 32px; }
  :root { --header-h: 76px; }
  .brand img { height: 46px; }
  .btn-header { padding: 12px 22px; }
  .hero h1 { font-size: 52px; }
  .wave svg { height: 80px; }
  .coverage h2, .family h2 { font-size: 42px; }
  .info h2 { font-size: 40px; }
  .form-card { padding: 40px 44px 36px; }
  .form-card h2 { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 20px 22px; }
  .form-grid .full { grid-column: 1 / -1; }
  .factors { padding: 32px 30px; }
  .agent h2 { font-size: 46px; }
  .final h2 { font-size: 52px; }
  .site-footer .top { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; }
}
@media (min-width: 960px) {
  .header-phone { display: block; }
  .hero { padding: 54px 0 10px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 44px; }
  .hero h1 { font-size: 60px; }
  .hero-media { padding: 18px 18px 30px 18px; }
  .hero .lede { font-size: 21px; }
  .hero-media img { aspect-ratio: 1 / 1; object-position: 30% 40%; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .coverage { padding: 50px 0 90px; }
  .coverage .sub { font-size: 26px; }
  .family { padding: 96px 0; }
  .family::before { right: -170px; top: -170px; width: 360px; height: 360px; border-width: 22px; }
  .family::after { left: -150px; bottom: -190px; width: 300px; height: 300px; }
  .family .split { grid-template-columns: 1.1fr 1fr; }
  .family h2 { font-size: 50px; }
  .info { padding: 90px 0; }
  .info .split { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-section::before { height: 360px; border-radius: 0 0 50% 50% / 0 0 110px 110px; }
  .form-section .container { padding-top: 70px; }
  .agent { padding: 90px 0; }
  .agent .split { grid-template-columns: 1.15fr 1fr; }
  .final { padding: 100px 0; }
  .final::before { left: -140px; top: -140px; width: 300px; height: 300px; border-width: 18px; }
  .final::after { right: -150px; bottom: -170px; width: 360px; height: 360px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
