:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #536071;
  --line: #d9e2ee;
  --paper: #ffffff;
  --mist: #eef4ff;
  --teal: #1d4ed8;
  --teal-dark: #173d7a;
  --yellow: #ffffff;
  --coral: #c1121f;
  --navy: #071943;
  --flag-red: #c1121f;
  --flag-blue: #1d4ed8;
  --flag-navy: #071943;
  --soft-red: #fff1f2;
  --soft-blue: #eef4ff;
  --shadow: 0 24px 70px rgba(16, 32, 43, 0.22);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 25, 67, 0.96), rgba(29, 78, 216, 0.86), rgba(193, 18, 31, 0.86)),
    rgba(7, 25, 67, 0.92);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.topbar-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--flag-navy);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
}

.hero::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--flag-red) 0 33%, #fff 33% 66%, var(--flag-blue) 66%);
  content: "";
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(7, 25, 67, 0.84), rgba(29, 78, 216, 0.48), rgba(193, 18, 31, 0.3)),
    url("/assets/hero-auto-rates.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(7, 25, 67, 0.12), rgba(7, 25, 67, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 460px);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  width: min(1180px, calc(100% - 36px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 104px 0 42px;
}

.hero-copy {
  max-width: 720px;
  padding-top: 124px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.hero-topline .eyebrow,
.veteran-badge {
  margin: 0;
}

.veteran-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 10px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: #fff;
  color: var(--flag-navy);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(7, 25, 67, 0.24);
}

.us-flag {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #c72f3b 0,
    #c72f3b 2px,
    #fff 2px,
    #fff 4px
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.us-flag::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 8px;
  background: #214b86;
  content: "";
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 22px;
}

.veteran-stat {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
  max-width: 700px;
  margin: 0 0 18px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(193, 18, 31, 0.72), rgba(29, 78, 216, 0.68)),
    rgba(7, 25, 67, 0.64);
  box-shadow: 0 20px 50px rgba(7, 25, 67, 0.24);
}

.veteran-stat strong {
  display: block;
  color: #fff;
  font-size: 46px;
  line-height: 0.95;
}

.veteran-stat p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

.veteran-stat span {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
}

.veteran-stat a {
  color: #fff;
}

.agency-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-bottom: 18px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--flag-red), var(--flag-blue));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.rate-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin-bottom: 18px;
}

.rate-strip > div {
  min-height: 132px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 20, 29, 0.48);
  backdrop-filter: blur(10px);
}

.rate-strip > div:first-child {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(193, 18, 31, 0.52);
}

.rate-strip > div:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(29, 78, 216, 0.5);
}

.rate-strip strong {
  display: block;
  margin: 3px 0;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.rate-strip span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
}

.rate-kicker {
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.lead-panel {
  position: relative;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.thank-you-page {
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.93), rgba(248, 250, 252, 0.96)),
    url("/assets/empire-veteran-logo.png") center / min(700px, 88vw) auto no-repeat;
}

.thank-you-box {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #cbd5e1;
  border-top: 5px solid var(--flag-navy);
  box-shadow: 0 18px 45px rgba(7, 25, 67, 0.14);
}

.thank-you-box h1 {
  color: var(--flag-navy);
}

.thank-you-box p {
  color: #475569;
}

.thank-you-box a {
  color: #fff;
  background: var(--flag-navy);
  border-radius: 4px;
}

.lead-panel::before {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, var(--flag-red) 0 33%, #fff 33% 66%, var(--flag-blue) 66%);
  content: "";
}

.form-heading {
  padding: 24px 24px 10px;
}

.form-heading .eyebrow {
  color: var(--teal);
}

.form-heading h2 {
  margin-bottom: 8px;
  font-size: 29px;
  line-height: 1.1;
}

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 14px;
  padding: 14px 24px 24px;
}

fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

legend {
  padding: 0 6px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-grid {
  grid-template-columns: 0.6fr 1fr;
}

.name-grid {
  grid-template-columns: minmax(0, 1fr) minmax(80px, 0.42fr) minmax(0, 1fr);
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 127, 120, 0.16);
}

label.field-has-error {
  color: #9f2a1c;
}

input.field-invalid,
select.field-invalid {
  border-color: #d84a38;
  background: #fff0ee;
  color: var(--ink);
}

input.field-invalid:focus,
select.field-invalid:focus {
  border-color: #c83827;
  box-shadow: 0 0 0 3px rgba(216, 74, 56, 0.2);
}

.field-error-message {
  color: #b33423;
  font-size: 12px;
  font-weight: 800;
}

input[readonly] {
  background: #eef3f5;
  color: var(--muted);
}

details {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

summary {
  cursor: pointer;
  color: var(--flag-blue);
  font-size: 13px;
  font-weight: 900;
}

details[open] summary {
  margin-bottom: 12px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.consent {
  padding: 12px;
  border: 1px solid #c9d8f7;
  border-radius: 8px;
  background: var(--soft-blue);
}

.consent.field-has-error {
  border-color: #e29a91;
  background: #fff0ee;
}

.checkbox-row .field-error-message {
  grid-column: 2;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(193, 18, 31, 0.28);
}

.submit-button:hover {
  background: #9f0f19;
}

.submit-button:disabled {
  cursor: progress;
  opacity: 0.68;
}

.submit-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.microcopy,
.form-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status {
  min-height: 18px;
  color: var(--teal-dark);
  font-weight: 800;
}

.form-status.error {
  color: #b33423;
}

.hidden-field {
  display: none;
}

.support-band {
  background:
    linear-gradient(90deg, rgba(193, 18, 31, 0.08), rgba(255, 255, 255, 0.72), rgba(29, 78, 216, 0.12)),
    var(--mist);
  padding: 38px 18px;
}

.support-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.support-inner article {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--flag-blue);
  border-radius: 8px;
  background: #fff;
}

.support-inner article:first-child {
  border-top-color: var(--flag-red);
}

.support-inner span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--flag-blue);
  color: #fff;
  font-weight: 900;
}

.support-inner article:first-child span {
  background: var(--flag-red);
}

.support-inner h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.support-inner p {
  margin-bottom: 0;
  color: var(--muted);
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 32px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 62px 0;
}

.proof-band .eyebrow {
  color: var(--flag-blue);
}

.proof-band h2 {
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.05;
}

.proof-band ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.proof-band li {
  padding: 16px 18px;
  border-left: 4px solid var(--flag-blue);
  background: #f8fafb;
  color: var(--muted);
  font-weight: 700;
}

.proof-band li:nth-child(odd) {
  border-left-color: var(--flag-red);
}

.proof-band a {
  color: var(--teal-dark);
  font-weight: 900;
}

.site-footer {
  display: grid;
  gap: 8px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: linear-gradient(90deg, var(--flag-navy), #102d6f);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.site-footer p {
  max-width: 980px;
  margin: 0;
}

.site-footer a,
.checkbox-row a {
  color: inherit;
  font-weight: 900;
}

.thank-you-page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(16, 32, 43, 0.9), rgba(13, 127, 120, 0.78)),
    url("/assets/hero-auto-rates.png") center / cover;
  color: #fff;
}

.thank-you-box {
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 20, 29, 0.72);
  box-shadow: var(--shadow);
}

.thank-you-box h1 {
  margin-bottom: 16px;
  font-size: 62px;
}

.thank-you-box p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
}

.thank-you-box a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--yellow);
  color: #1f1a09;
  font-weight: 900;
  text-decoration: none;
}

.legal-page {
  background: #f4f8fa;
  color: var(--ink);
}

.legal-shell {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.legal-shell h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 54px;
  line-height: 1.02;
}

.legal-shell h2 {
  margin: 30px 0 8px;
  font-size: 23px;
}

.legal-shell p,
.legal-shell li {
  color: var(--muted);
}

.legal-shell a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 960px) {
  .topbar {
    background: linear-gradient(90deg, rgba(7, 25, 67, 0.96), rgba(29, 78, 216, 0.88));
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 94px;
  }

  .hero-copy {
    max-width: none;
    padding-top: 0;
  }

  h1 {
    font-size: 58px;
  }

  .lead-panel {
    width: min(620px, 100%);
  }

  .support-inner,
  .proof-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px;
  }

  .brand strong {
    max-width: 176px;
    font-size: 13px;
    line-height: 1.05;
  }

  .brand small {
    display: none;
  }

  .topbar-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    background-position: 65% center;
  }

  .hero-inner {
    width: min(100% - 28px, 620px);
    min-height: auto;
    padding: 92px 0 28px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .veteran-stat {
    grid-template-columns: 1fr;
  }

  .veteran-stat strong {
    font-size: 38px;
  }

  .veteran-stat span {
    grid-column: auto;
  }

  .rate-strip strong {
    font-size: 30px;
  }

  .proof-band h2 {
    font-size: 32px;
  }

  .thank-you-box h1 {
    font-size: 42px;
  }

  .legal-shell h1 {
    font-size: 36px;
  }

  .rate-strip,
  .form-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }

  .rate-strip > div {
    min-height: 0;
  }

  .form-heading,
  form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .support-inner article {
    min-height: 0;
  }
}

@media (max-width: 390px) {
  .brand strong {
    max-width: 150px;
    font-size: 12px;
  }
}

/* Professional veteran-agency presentation */
.topbar {
  position: relative;
  color: var(--flag-navy);
  background: #fff;
  border-bottom: 4px solid var(--flag-red);
  box-shadow: 0 4px 18px rgba(7, 25, 67, 0.1);
}

.brand small {
  color: var(--muted);
}

.topbar-cta {
  color: #fff;
  background: var(--flag-navy);
  border-radius: 4px;
  box-shadow: none;
}

.hero {
  min-height: auto;
  color: var(--ink);
  background: #f8fafc;
}

.hero-media {
  background: url("/assets/empire-veteran-logo.png") center 180px / min(760px, 72vw) auto no-repeat;
  opacity: 0.045;
  transform: none;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(248, 250, 252, 0.94));
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 470px);
  min-height: auto;
  padding: 38px 0 56px;
}

.site-logo {
  grid-column: 1 / -1;
  display: block;
  width: min(360px, 80vw);
  max-height: 300px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.hero-copy {
  max-width: 690px;
  padding-top: 26px;
}

.hero-copy .eyebrow,
.form-heading .eyebrow {
  color: var(--flag-red);
}

h1 {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--flag-navy);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
}

.hero-lede {
  color: #334155;
  font-size: 21px;
}

.about-agency {
  margin: 26px 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d9e2ee;
  border-left: 5px solid var(--flag-red);
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(7, 25, 67, 0.08);
}

.about-agency h2 {
  margin: 0 0 12px;
  color: var(--flag-navy);
  font-size: 25px;
}

.about-agency p {
  margin-bottom: 12px;
  color: #475569;
}

.about-agency p:last-child {
  margin-bottom: 0;
}

.professional-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.professional-points span {
  padding: 8px 12px;
  color: var(--flag-navy);
  background: #fff;
  border: 1px solid #cad5e3;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 800;
}

.conditional-section {
  display: none;
}

.conditional-section.is-active {
  display: block;
}

.form-grid.conditional-section.is-active {
  display: grid;
}

.quote-type-section {
  padding: 18px;
  border: 2px solid #b8c5d8;
  background: #f8fafc;
}

.quote-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quote-type-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px;
  color: var(--flag-navy);
  background: #fff;
  border: 1px solid #b8c5d8;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.quote-type-options input {
  width: 18px;
  min-height: 18px;
}

.home-location-grid {
  grid-template-columns: 1.4fr 0.55fr 0.8fr;
}

.dog-bite-field {
  display: none;
}

.dog-bite-field.is-active {
  display: grid;
}

.lead-panel {
  border: 2px solid var(--flag-red);
  border-radius: 4px;
  box-shadow: 0 18px 45px rgba(7, 25, 67, 0.14);
}

.lead-panel::before {
  display: none;
  content: none;
}

@media (max-width: 960px) {
  .topbar {
    background: #fff;
  }

  .hero-inner {
    padding-top: 28px;
  }

  .hero-copy {
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .topbar {
    align-items: center;
    padding: 11px 12px;
  }

  .site-logo {
    width: min(250px, 76vw);
    max-height: 215px;
    margin-bottom: 0;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: calc(100% - 24px);
    padding: 20px 0 32px;
  }

  .hero-media {
    display: none;
  }

  .hero-overlay {
    background: #f8fafc;
  }

  .hero-copy,
  .lead-panel {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
    line-height: 1.08;
  }

  .hero-lede {
    font-size: 17px;
  }

  .about-agency {
    margin: 20px 0;
    padding: 18px;
  }

  .lead-panel {
    overflow: visible;
    box-shadow: 0 10px 28px rgba(7, 25, 67, 0.12);
  }

  .form-heading {
    padding: 20px 16px 8px;
  }

  form {
    padding: 16px;
  }

  fieldset {
    padding: 12px;
  }

  input,
  select {
    max-width: 100%;
  }

  .quote-type-options,
  .home-location-grid {
    grid-template-columns: 1fr;
  }
}
