/* ==========================================================================
   Veteran theme for the quote funnels (/get-started/, /home-insurance/).

   OFF unless the page address carries ?theme=veteran: a three-line script
   in each funnel's <head> then puts class "theme-veteran" on <html> before
   anything paints, and every rule below is scoped to that class. Same
   funnel, same steps, same lead payload, same tracking -- only the colours,
   the hero copy and a few decorative elements change.

   Markup contract (in the funnel pages):
     .vet-only  shown only in the veteran theme. Also carries the `hidden`
                attribute, so it stays hidden if this file fails to load.
     .vet-hide  the default copy the veteran version replaces.

   Compliance (brief, 2026-11-20): thank veterans, never imply a veterans
   discount, program, special benefit or military affiliation. The small
   print under the form says so in the articles' own words.
   ========================================================================== */

html.theme-veteran .vet-hide { display: none !important; }
html.theme-veteran .vet-only { display: block; }
html.theme-veteran .vet-only.vet-badge { display: inline-flex; }

html.theme-veteran {
  /* Old Glory blue and red, softened one step for screens. */
  --vet-blue: #0A3161;
  --vet-blue-mid: #1C4A8A;
  --vet-red: #B31942;
  --vet-red-deep: #8E1334;

  --navy: var(--vet-blue);
  --accent-blue: var(--vet-blue-mid);
  --accent-blue-bright: #2D63B0;
  --blue-top: #2D63B0;
  --blue-bottom: var(--vet-blue);
  --gradient-blue: linear-gradient(180deg, #2D63B0, var(--vet-blue));
  --gradient-cta: linear-gradient(135deg, #C8213F 0%, var(--vet-red) 55%, var(--vet-red-deep) 100%);
  --gradient-cta-hover: linear-gradient(135deg, var(--vet-red-deep) 0%, #C8213F 100%);
  --shadow-btn: 0 10px 24px -8px rgba(179, 25, 66, 0.45);
  --bg-page: #F5F7FB;
}

/* A thin flag ribbon under the header: a blue field, then red and white stripes. */
html.theme-veteran .site-header { border-bottom: 0; }
html.theme-veteran .site-header::after {
  content: "";
  display: block;
  height: 6px;
  background:
    linear-gradient(90deg, var(--vet-blue) 0 120px, transparent 120px),
    repeating-linear-gradient(90deg, var(--vet-red) 0 22px, #fff 22px 44px);
  border-bottom: 1px solid #E3E8F0;
}

/* Hero: deep blue with a faint field of stars, stripes along the bottom. */
html.theme-veteran .funnel-hero {
  position: relative;
  padding: 30px 0 34px;
  background-color: var(--vet-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M14 4l2.35 7.24h7.6l-6.15 4.47 2.35 7.24L14 18.48l-6.15 4.47 2.35-7.24-6.15-4.47h7.6zM42 32l2.35 7.24h7.6l-6.15 4.47 2.35 7.24L42 46.48l-6.15 4.47 2.35-7.24-6.15-4.47h7.6z'/%3E%3C/svg%3E");
  color: #fff;
}
html.theme-veteran .funnel-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 8px;
  background: repeating-linear-gradient(180deg, var(--vet-red) 0 4px, #fff 4px 8px);
  opacity: 0.9;
}
html.theme-veteran .funnel-hero h1 { color: #fff; max-width: 820px; }
html.theme-veteran .funnel-hero .highlight {
  color: #fff;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #E0354F;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}
html.theme-veteran .funnel-hero__sub { color: #D9E2F0; }
html.theme-veteran .funnel-hero__sub strong { color: #fff; }

.vet-badge {
  align-items: center;
  gap: 10px;
  margin: 0 auto 14px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vet-badge svg { width: 14px; height: 14px; fill: #E0354F; flex: none; }

/* The progress bar reads as a stripe of the flag. */
html.theme-veteran .progress-fill {
  background: linear-gradient(90deg, var(--vet-blue) 0%, var(--vet-blue-mid) 45%, var(--vet-red) 100%);
}

/* Small print under the form: not the VA, no veterans program or discount. */
.vet-note {
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  text-align: center;
}
