/* ============================================================
   VA Pay Calc — vapaycalc.com
   Direct-to-veteran VA disability pay calculator.
   Palette: deep navy + US-flag red accent.
   Typography: Inter (system fallback).
   ============================================================ */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-muted: #f3f4f6;
  --text: #1a1a1a;
  --muted: #525252;
  --line: #e5e5e5;
  --navy: #0c2340;             /* deep US-flag navy */
  --navy-strong: #061629;
  --navy-soft: #1c365b;
  --red: #bf0a30;              /* US-flag red */
  --red-strong: #8b0822;
  --result-bg: #0c2340;        /* sticky card */
  --result-fg: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(12, 35, 64, 0.08);
  --shadow-strong: 0 14px 40px rgba(12, 35, 64, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip-link:focus-visible { left: 10px; top: 10px; }

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
}
.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--navy); }
.brand-mark {
  display: inline-block;
  width: auto;
  height: 32px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    padding: 16px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-nav.is-open { display: flex; }
  .brand { font-size: 0.95rem; }
}
@media (max-width: 380px) {
  .brand { font-size: 0.85rem; gap: 6px; }
  .brand-mark { height: 26px; }
}

/* ============================================================
   Sections + typography
   ============================================================ */
.section {
  padding: 56px 0;
}
.section-tight { padding: 36px 0; }

h1, h2, h3 {
  margin: 0 0 12px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 4vw, 2.85rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p  { margin: 0; color: var(--muted); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.lead {
  font-size: 1.08rem;
  max-width: 60ch;
  color: var(--muted);
}

/* ============================================================
   Hero + calculator layout
   ============================================================ */
.hero {
  padding: 48px 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero h1 { color: var(--navy); }
.hero p.lead { margin-top: 6px; }
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

.calc {
  padding: 36px 0 56px;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 920px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Calc step cards
   ============================================================ */
.calc-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.calc-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.calc-step-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.step-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.calc-step-hint {
  margin: 6px 0 18px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Parts grid (14 condition categories) */
.parts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 580px) { .parts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .parts-grid { grid-template-columns: 1fr; } }

.part {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.part:hover { border-color: var(--navy-soft); }
.part.has-selections { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy) inset; }

.part-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  font: inherit;
  color: var(--text);
}
.part-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}
.part-icon svg { width: 100%; height: 100%; }
.part-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: var(--text);
}
.part-count {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
}
.part.has-selections .part-count { display: inline-flex; }
.part-caret {
  position: absolute;
  bottom: 8px;
  right: 8px;
  color: var(--muted);
  display: inline-flex;
  transition: transform 0.18s ease;
}
.part.is-active .part-caret { transform: rotate(180deg); }

.part-body {
  display: none;
  padding: 4px 12px 14px;
  border-top: 1px dashed var(--line);
}
.part.is-active .part-body { display: block; }

.ratings-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rating-pill {
  flex: 1 1 auto;
  min-width: 50px;
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transition: all 0.15s ease;
}
.rating-pill:hover { border-color: var(--navy); color: var(--navy); }
.rating-pill.is-selected {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.ratings-hint {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 10px 0 0;
  text-align: center;
}

/* Dependents */
.deps-list { display: grid; gap: 14px; }
.deps-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-muted);
  border-radius: var(--radius-sm);
}
.deps-q-label { font-weight: 600; font-size: 0.95rem; color: var(--text); }

.toggle {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease;
}
.toggle[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
}
.toggle[aria-pressed="true"]::before { transform: translateX(18px); }

.toggle--sm { width: 36px; height: 20px; }
.toggle--sm::before { width: 14px; height: 14px; top: 2px; left: 2px; }
.toggle--sm[aria-pressed="true"]::before { transform: translateX(16px); }

.deps-sub {
  display: none;
  padding: 6px 4px 4px 14px;
  margin-top: -8px;
  gap: 14px;
  flex-wrap: wrap;
}
.deps-sub.is-open { display: flex; }
.deps-sub label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.deps-sub input[type="number"] {
  width: 56px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  text-align: center;
}
.deps-sub input[type="number"]:focus { outline: none; border-color: var(--navy); }
.radio-pill {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.radio-pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============================================================
   Result card (sticky)
   ============================================================ */
.result-card {
  background: var(--result-bg);
  color: var(--result-fg);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-strong);
}
.result-card h2 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: 0;
}
.result-amount {
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 2.85rem);
  font-weight: 800;
  margin: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.result-amount .unit { font-size: 1rem; color: rgba(255, 255, 255, 0.7); font-weight: 500; margin-left: 4px; }
.result-per { text-align: center; font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); margin: 4px 0 18px; }

.result-ring {
  display: flex;
  justify-content: center;
  margin: 14px 0 14px;
}
.ring-svg { transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 12; }
.ring-fill  { fill: none; stroke: var(--red); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }
.ring-text {
  font-size: 1.6rem;
  font-weight: 800;
  fill: #fff;
  text-anchor: middle;
  dominant-baseline: central;
  font-variant-numeric: tabular-nums;
}
.ring-text--sub { font-size: 0.7rem; fill: rgba(255, 255, 255, 0.6); font-weight: 500; }

.breakdown {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}
.breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.breakdown-row span:last-child {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 600;
}

.result-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.result-cta:hover {
  background: var(--red-strong);
  border-color: var(--red-strong);
  color: #fff;
}

/* ============================================================
   Buttons (generic)
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.button:hover { background: var(--red-strong); border-color: var(--red-strong); color: #fff; }
.button-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.button-ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* ============================================================
   Placeholder sections for Stage 2 + Stage 3
   ============================================================ */
.placeholder-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.placeholder-section + .placeholder-section { border-top: none; }
.placeholder-note {
  padding: 28px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.95rem;
}
.placeholder-note strong { color: var(--navy); }

/* ============================================================
   Disclaimer + footer
   ============================================================ */
.disclaimer {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--surface-muted);
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--text); }
.disclaimer a { color: var(--navy); text-decoration: underline; }

.site-footer {
  background: var(--navy-strong);
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 0 28px;
  font-size: 0.88rem;
  margin-top: 40px;
}
.footer-attorney {
  background: var(--navy);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-attorney p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  max-width: 56ch;
}
.footer-attorney a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.footer-attorney a:hover { color: var(--red); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-meta a { color: rgba(255, 255, 255, 0.7); }
.footer-meta a:hover { color: #fff; }
.footer-meta nav { display: flex; gap: 16px; }

/* ============================================================
   Focus + a11y
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(191, 10, 48, 0.4);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Article (long-form explainer)
   ============================================================ */
.article-section {
  padding: 64px 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.article-section + .article-section { border-top: none; }
.article-content {
  max-width: 720px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 700;
  color: var(--navy);
  margin: 56px 0 14px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}
.article-content p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.65;
}
.article-content p.lede {
  font-size: 1.12rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.65;
}
.article-content ul li,
.article-content ol li { margin: 0 0 6px; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--red); }
.article-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--surface-muted);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--navy);
}

.callout {
  margin: 22px 0;
  padding: 18px 22px;
  background: var(--surface-muted);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
}
.callout p { margin: 0 0 8px; font-size: 0.96rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin-bottom: 8px;
}

.worked-example {
  margin: 22px 0;
  padding: 22px 24px;
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
}
.worked-example .callout-title { color: var(--red); }
.worked-example p {
  margin: 0 0 10px;
  font-size: 0.96rem;
}
.worked-example .math {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  margin: 8px 0 12px;
  white-space: pre-line;
  line-height: 1.65;
}
.worked-example .math strong { color: var(--red); font-weight: 700; }

/* FAQ */
.faq { margin: 24px 0 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 18px 36px 18px 0;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  line-height: 1.4;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  transition: transform 0.18s ease;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:hover { color: var(--navy); }
.faq-a {
  display: none;
  padding: 0 0 18px;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.6;
}
.faq-a p { margin: 0 0 12px; color: inherit; font-size: inherit; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-item.is-open .faq-a { display: block; }

/* ============================================================
   2026 Rates grid
   ============================================================ */
.rates-section {
  padding: 64px 0;
  background: var(--surface-muted);
}
.rates-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.rates-intro h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}
.rates-intro p { font-size: 1rem; }

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rates-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}
.rates-card-pct {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  line-height: 1;
}
.rates-card-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0 0 16px;
}
.rates-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.rates-card-row:first-of-type { border-top: none; }
.rates-card-row .amt {
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.rates-card-row.primary .amt {
  color: var(--navy);
  font-size: 1.02rem;
}

.rates-note {
  max-width: 720px;
  margin: 28px auto 0;
  padding: 18px 22px;
  background: var(--surface);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--muted);
}
.rates-note strong { color: var(--text); }
.rates-note a { color: var(--navy); text-decoration: underline; }

/* ============================================================
   Lead form — match with a VA-accredited attorney
   ============================================================ */
.lead-section {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-strong) 100%);
  color: #fff;
}
.lead-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.lead-intro .eyebrow { color: #fff; opacity: 0.7; }
.lead-intro h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  margin-bottom: 14px;
}
.lead-intro p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
  max-width: 56ch;
  margin: 0 auto;
}

.lead-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-strong);
}
@media (max-width: 520px) { .lead-card { padding: 22px 18px; } }

.lead-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.lead-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .lead-form-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--red); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}
.field textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(191, 10, 48, 0.1);
}
.field-error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 2px;
}
.field.has-error .field-error-msg { display: block; }

/* Honeypot — invisible to humans, visible to bots */
.lead-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lead-submit:hover:not(:disabled) {
  background: var(--red-strong);
  border-color: var(--red-strong);
}
.lead-submit:disabled {
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.lead-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.lead-submit.is-loading .spinner { display: inline-block; }
.lead-submit.is-loading .label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

.lead-disclaimer {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}
.lead-disclaimer strong { color: var(--text); }

.lead-success,
.lead-error {
  display: none;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.lead-success {
  background: #f0fdf4;
  border-left: 3px solid #15803d;
  color: #14532d;
}
.lead-error {
  background: #fef2f2;
  border-left: 3px solid var(--red);
  color: #7f1d1d;
}
.lead-success.is-visible,
.lead-error.is-visible { display: block; }
.lead-success strong, .lead-error strong { display: block; margin-bottom: 4px; }

/* ============================================================
   Cookie consent banner (Consent Mode v2)
   ============================================================ */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 360px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 0.9rem;
  line-height: 1.5;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.92);
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cookie-btn--accept {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.cookie-btn--accept:hover { background: var(--red-strong); border-color: var(--red-strong); }
.cookie-btn--decline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}
.cookie-btn--decline:hover { border-color: #fff; color: #fff; }

@media (max-width: 480px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* ============================================================
   Lead form (#get-help)
   ============================================================ */
.lead-section {
  padding: 72px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.92);
}
.lead-section .container {
  max-width: 720px;
}
.lead-section .eyebrow { color: #ff9aa8; }
.lead-section h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 14px;
}
.lead-section .lede {
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  margin: 0 auto 8px;
  max-width: 56ch;
}
.lead-section .lede strong { color: #fff; }
.lead-section .lede-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 16px 0 32px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}
.lead-section .lede-row li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lead-section .lede-row li::before {
  content: "✓";
  color: #ff9aa8;
  font-weight: 700;
}

.lead-form {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-strong);
}
.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 580px) {
  .lead-form-row { grid-template-columns: 1fr; }
  .lead-form { padding: 24px; }
}
.lead-field { display: flex; flex-direction: column; gap: 6px; }
.lead-field-full { grid-column: 1 / -1; }
.lead-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.lead-field label .req { color: var(--red); margin-left: 2px; }
.lead-field input,
.lead-field select,
.lead-field textarea {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.12);
}
.lead-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.lead-field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 2px 0 0;
}
.lead-field.has-error input,
.lead-field.has-error select,
.lead-field.has-error textarea {
  border-color: var(--red);
}
.lead-field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin: 2px 0 0;
  display: none;
}
.lead-field.has-error .lead-field-error { display: block; }

/* Honeypot — invisible to humans, baited for bots */
.lead-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lead-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lead-submit:hover:not(:disabled) {
  background: var(--red-strong);
  border-color: var(--red-strong);
}
.lead-submit:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  cursor: wait;
}
.lead-fineprint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  line-height: 1.55;
}
.lead-form-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border-left: 3px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--red-strong);
  font-size: 0.9rem;
  display: none;
}
.lead-form-error.is-visible { display: block; }

.lead-success {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  display: none;
}
.lead-success.is-visible { display: block; }
.lead-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
}
.lead-success h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--navy);
}
.lead-success p {
  margin: 0;
  color: var(--muted);
  max-width: 44ch;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Lead form — "Get matched with an attorney"
   ============================================================ */
.help-features {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
}
.help-features li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}
.help-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 28px;
  background: var(--surface-muted);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form-row { display: grid; gap: 6px; }
.form-row label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.14);
}
.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(191, 10, 48, 0.12);
}
.form-row .field-error {
  display: none;
  color: var(--red);
  font-size: 0.85rem;
  margin-top: 2px;
}
.form-row.has-error .field-error { display: block; }
.form-hint {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 2px 0 0;
}

/* Honeypot — off-screen, hidden from screen readers via aria-hidden + tabindex */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.form-submit:hover { background: var(--red-strong); border-color: var(--red-strong); }
.form-submit:disabled { opacity: 0.7; cursor: progress; }
.submit-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.submit-loader::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: lf-spin 0.7s linear infinite;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }

.form-disclaimer {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
.form-disclaimer a { color: var(--navy); text-decoration: underline; }

.form-result {
  margin: 24px 0 0;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.form-result h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.form-result p  { margin: 0; font-size: 0.98rem; color: var(--muted); line-height: 1.55; }
.form-result a  { color: var(--navy); text-decoration: underline; }
.form-result.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.form-result.success h3 { color: #15803d; }
.form-result.error {
  background: #fef2f2;
  border-color: #fecaca;
}
.form-result.error h3 { color: var(--red-strong); }

/* ============================================================
   Lead capture form
   ============================================================ */
.lead-section {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
}
.lead-section h2 { color: #fff; }
.lead-intro {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}
.lead-intro .eyebrow { color: #ffffff; opacity: 0.7; }
.lead-intro h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 14px;
}
.lead-intro p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.lead-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  color: var(--text);
  padding: 32px 32px 28px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.lead-form {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
}
.field label .req { color: var(--red); }
.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.08);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}
.field-error {
  display: none;
  font-size: 0.82rem;
  color: var(--red);
}
.field.has-error .field-error { display: block; }

/* Honeypot — hidden from humans, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.lead-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 24px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.lead-submit:hover { background: var(--red-strong); border-color: var(--red-strong); }
.lead-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.lead-submit .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: spin 0.7s linear infinite;
}
.lead-submit.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.lead-disclaimer {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.lead-disclaimer strong { color: var(--text); }

.form-error-banner {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: var(--red-strong);
  font-size: 0.9rem;
}
.form-error-banner.is-visible { display: block; }

/* Success state — replaces form */
.lead-success {
  display: none;
  text-align: center;
  padding: 24px 16px;
}
.lead-success.is-visible { display: block; }
.lead-success .check {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lead-success h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 10px;
}
.lead-success p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0 auto;
  max-width: 44ch;
}