/* ==========================================================
   Insure for the Cure — shared styles
   Brand colors sampled directly from the logo files.
   ========================================================== */
:root {
  --blue: #1b45a0;
  --blue-dark: #12317a;
  --blue-soft: #eaf0fb;
  --blue-tint: #f5f8fd;
  --red: #df3430;
  --red-dark: #b82622;
  --red-soft: #fdecec;
  --green: #22a447;
  --ink: #16203a;
  --ink-2: #4a5470;
  --ink-3: #8a93ab;
  --line: #e3e8f2;
  --bg: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 58, .04), 0 12px 40px rgba(22, 32, 58, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --brush: "Permanent Marker", "Plus Jakarta Sans", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 72px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 48px); margin: 22px 0 24px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(27, 69, 160, .28); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(223, 52, 48, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-soft); }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--blue); }
.nav-links .btn { padding: 11px 22px; font-size: 15px; }

/* ---------- Hero + quote form ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--blue-soft), transparent 60%),
    radial-gradient(600px 400px at -10% 110%, var(--red-soft), transparent 60%);
  padding: 28px 0 96px;
}
/* the form section starts right under the sticky header, so "#quote" links land at the very top of the page */
.hero { scroll-margin-top: 77px; } /* header height + its 1px border */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: stretch; } /* form card runs the full height of the left column */
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hero h1 .accent { color: var(--blue); }
.hero h1 .heart { color: var(--red); }
.hero-sub { font-size: 19px; color: var(--ink-2); margin: 36px 0 36px; max-width: 520px; }
.hero-sub .win { display: block; margin-top: 12px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-width: 520px; }
.hero-points li {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 18px;
  box-shadow: 0 1px 2px rgba(22, 32, 58, .04), 0 8px 24px rgba(22, 32, 58, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-points li:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(22, 32, 58, .04), 0 14px 32px rgba(22, 32, 58, .1); }
.hero-points li { display: grid; grid-template-columns: 26px 104px 1fr; align-items: center; gap: 14px; color: var(--ink-2); font-size: 15px; line-height: 1.35; text-align: left; }
.check {
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--blue-soft); color: var(--blue);
}
.check svg { width: 15px; height: 15px; }
.hp-num { font-size: 26px; font-weight: 800; color: var(--blue); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.hero-points sup { font-size: 12px; font-weight: 700; margin-left: 1px; }
.hero-points sup a { color: var(--ink-3); text-decoration: none; }

.quote-card {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 28px 32px; position: relative;
  display: flex; flex-direction: column;
}
/* form content sits centered in the (taller) card, with the security note at the bottom */
.quote-card form { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.progress { display: flex; gap: 6px; margin-bottom: 20px; }
.progress span { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .3s ease; }
.progress span.on { background: var(--blue); }

.step { display: none; animation: stepIn .35s ease; }
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.step .hint { color: var(--ink-2); margin-bottom: 16px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer;
  font-weight: 700; transition: border-color .15s ease, background .15s ease, transform .15s ease;
  user-select: none;
}
.tile label:hover { border-color: #c4cfe6; }
.tile svg { width: 32px; height: 32px; color: var(--blue); }
/* two-line label: tighter spacing so this tile stays the same height as the one-line tiles */
.tile label.two-line { gap: 3px; line-height: 1.05; }
.tile input:checked + label { border-color: var(--blue); background: var(--blue-tint); }
.tile input:focus-visible + label { outline: 3px solid rgba(27, 69, 160, .3); outline-offset: 2px; }
.tile label::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
}
.tile input:checked + label::after {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.field { margin-bottom: 10px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5470' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat;
  padding-right: 44px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(27, 69, 160, .12); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field .err { display: none; color: var(--red); font-size: 13px; font-weight: 600; margin-top: 6px; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; line-height: 1.45; }
.consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }
.consent.invalid { color: var(--red); }

.step-actions { display: flex; gap: 10px; align-items: center; }
/* name step: fields centered between the heading and the buttons */
.step[data-step="2"] .people { margin-top: 36px; }
.step[data-step="2"] .people.has-extra { margin-top: 0; } /* extra drivers added: no gap under the heading */
/* "Add driver / Add policyholder" checkboxes and the extra name rows they reveal */
.add-person { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.add-person input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.person.extra { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); animation: stepIn .3s ease; }
.person-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.step[data-step="2"] .step-actions { margin-top: 26px; }
/* contact step has no hint line under the heading, so keep the same gap before the fields */
.step[data-step="3"] h2 { margin-bottom: 16px; }
.step-actions .btn-primary { flex: 1; }
.back {
  font: inherit; font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  padding: 14px 12px;
}
.back:hover { color: var(--blue); }
.form-note { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 10px; }
.form-error { display: none; background: var(--red-soft); color: var(--red-dark); padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 12px 0; }
.success .big-heart { width: 84px; margin: 0 auto 18px; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
.success p { color: var(--ink-2); margin: 10px 0 22px; }

/* ---------- Steps ---------- */
.how { background: var(--blue-tint); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-card { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.how-num {
  width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; margin-bottom: 20px;
}
.how-card h3 { font-size: 22px; margin-bottom: 8px; }
.how-card p { color: var(--ink-2); }

/* ---------- Coverage ---------- */
.cov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cov-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; display: flex; flex-direction: column;
}
.cov-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.cov-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 20px; }
.cov-icon svg { width: 30px; height: 30px; }
.cov-card h3 { font-size: 21px; margin-bottom: 8px; }
.cov-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
/* two-line heading: tighter spacing so this card stays the same height as the others */
.cov-card.two-line .cov-icon { margin-bottom: 5px; }
.cov-card.two-line h3 { line-height: 1.05; margin-bottom: 2px; }
.cov-card .more { margin-top: 18px; font-weight: 700; color: var(--blue); font-size: 15px; }

/* ---------- Charity section (shared by both pages) ---------- */
.charity { scroll-margin-top: 76px; background: var(--blue); color: #fff; padding: 88px 0; text-align: center; }
/* USA for Athletes logo on a white card (its blue would get lost on the blue background) */
.partner-logo {
  display: block; width: min(360px, 80%); margin: 0 auto 40px;
  background: #fff; border-radius: 24px; padding: 26px 32px;
  box-shadow: 0 18px 50px rgba(5, 15, 45, .35);
  transition: transform .25s ease;
}
.partner-logo:hover { transform: translateY(-3px) scale(1.02); }
.partner-logo img { width: 100%; }
.charity .eyebrow { color: #a9c0f0; }
.charity h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 12px auto 16px; max-width: 720px; }
.charity p { color: #d5e0f7; font-size: 18px; max-width: 640px; margin: 0 auto 30px; }
.charity .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Final CTA ---------- */
.cta { text-align: center; background: var(--blue-tint); }
.cta h2 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.cta h2 span { color: var(--red); }
.cta p { color: var(--ink-2); font-size: 19px; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.footer { background: #0e1730; color: #aab3cc; padding: 64px 0 40px; font-size: 14px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand { max-width: 360px; }
.footer-brand img { height: 56px; width: auto; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #d5dbeb; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: grid; gap: 10px; font-size: 12.5px; color: #7c86a3; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 20px 0 64px; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-points { margin: 0 auto; }
  .how-grid { grid-template-columns: 1fr; }
  .cov-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav .wrap { height: 64px; }
  .hero { scroll-margin-top: 65px; }
  .nav-logo img { height: 40px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn { padding: 10px 18px; font-size: 14px; }
  .hero-points { display: none; }
  .hero-sub { font-size: 17px; }
  .quote-card { padding: 20px 18px; border-radius: 16px; }
  .step h2 { font-size: 24px; }
  .cov-grid { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .section-head { margin-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
