:root {
  --blue: #0047AB;
  --blue-dark: #00337a;
  --ink: #15202b;
  --muted: #5b6b7a;
  --line: #d8dee5;
  --bg: #eef1f4;
  --card: #ffffff;
  --accent: #ff6a00;
  --accent-dark: #e25c00;
  --ok-bg: #e8f5e9;
  --ok-ink: #1f6b34;
  --ok-line: #a5d6a7;
  --err-bg: #fdecea;
  --err-ink: #b3261e;
  --err-line: #f3b4ae;
  --info-bg: #eaf1fc;
  --info-line: #c7dafb;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,32,48,.06), 0 8px 24px rgba(16,32,48,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Language toggle ---------- */
.langbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue-dark);
  border-bottom: 3px solid var(--accent);
}
.langbar-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 6px 16px;
}
.lang-btn {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .8rem;
  color: #cfe0ff;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all .15s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.is-active { color: var(--blue-dark); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(255,106,0,.18), transparent 55%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 24px 36px;
  text-align: center;
}
.logo {
  width: 220px;
  max-width: 70%;
  filter: brightness(0) invert(1);
  margin-bottom: 18px;
}
.form-badge {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .05em;
  font-size: .85rem;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255,106,0,.35);
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 16px 0 12px;
}
.hero-sub {
  font-size: 1.02rem;
  color: #e4ecfb;
  max-width: 32rem;
  margin: 0 auto 18px;
}
.hero-phone {
  display: inline-block;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.hero-phone:hover { color: #ffd9bf; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px 16px 8px;
}

.card, .submit, .legal {
  animation: rise .5s cubic-bezier(.2,.7,.2,1) backwards;
}
.card:nth-of-type(1) { animation-delay: .04s; }
.card:nth-of-type(2) { animation-delay: .09s; }
.card:nth-of-type(3) { animation-delay: .14s; }
.card:nth-of-type(4) { animation-delay: .19s; }
.card:nth-of-type(5) { animation-delay: .24s; }
.card:nth-of-type(6) { animation-delay: .29s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .submit, .legal { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 18px;
}
.card h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 6px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg);
  position: relative;
}
.card h2::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 46px; height: 2px;
  background: var(--accent);
}
.card .step-badge {
  display: inline-block;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Plain-language explainer box under a section heading */
.doc-intro {
  background: var(--info-bg);
  border: 1px solid var(--info-line);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0 18px;
  font-size: .92rem;
  color: var(--ink);
}
.doc-intro p + p { margin-top: 8px; }

/* ---------- Fields ---------- */
.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.row3 {
  display: grid;
  grid-template-columns: 1fr 90px 110px;
  gap: 14px;
}
@media (max-width: 480px) {
  .row, .row3 { grid-template-columns: 1fr; gap: 0; }
  .row .field, .row3 .field { margin-bottom: 16px; }
  .choices { flex-direction: column; }
  .choices-wrap .choice { flex-basis: auto; }
}

label, .qlabel {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: 7px;
}

input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
select {
  min-height: 46px;
  padding-right: 44px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--blue) 50%),
    linear-gradient(135deg, var(--blue) 50%, transparent 50%),
    linear-gradient(to right, #e5ebf2, #e5ebf2);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%,
    calc(100% - 42px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 26px;
  background-repeat: no-repeat;
}
select:required:invalid { color: var(--muted); }
select option { color: var(--ink); }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,71,171,.14);
}
input.has-error, select.has-error { border-color: var(--err-line); background: #fffaf9; }

.helper {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 8px;
}
.field-error {
  display: block;
  font-size: .82rem;
  color: var(--err-ink);
  margin-top: 5px;
  font-weight: 600;
}

/* ---------- Choices (radio) ---------- */
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choices-stack { flex-direction: column; gap: 8px; }

.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  margin: 0;
  font-weight: 500;
  font-size: .92rem;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color .12s, background .12s, box-shadow .12s;
}
.choice:hover { border-color: #9db4d6; }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.choice:has(input:checked) {
  border-color: var(--blue);
  background: #eaf1fc;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.sub-choice { margin-top: 10px; padding-left: 2px; }

/* ---------- Insurance / COI block ---------- */
.coi-block {
  background: #f7f9fc;
  border: 1px dashed #9db4d6;
  border-radius: 8px;
  padding: 14px;
  font-size: .92rem;
  line-height: 1.6;
  margin: 10px 0;
}
.coi-block strong { display: block; margin-bottom: 2px; }
.copy-btn {
  margin-top: 10px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--blue); color: #fff; }
.copy-btn.copied { background: var(--ok-ink); border-color: var(--ok-ink); color: #fff; }

/* ---------- Review section ---------- */
.review-list { list-style: none; }
.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--bg);
  font-size: .9rem;
}
.review-list li:last-child { border-bottom: none; }
.review-list .rk { color: var(--muted); }
.review-list .rv { font-weight: 600; text-align: right; }

.consent-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  margin: 16px 0;
  font-size: .9rem;
}
.consent-box input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }

/* ---------- Submit ---------- */
.submit {
  width: 100%;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 16px;
  margin-top: 4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255,106,0,.32);
  transition: transform .08s, background .15s, box-shadow .15s;
}
.submit:hover { background: var(--accent-dark); }
.submit:active { transform: translateY(1px); }
.submit:disabled { background: #f0a877; cursor: not-allowed; box-shadow: none; }

.legal {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
  margin: 16px auto 0;
  max-width: 32rem;
}

/* ---------- Result / status message ---------- */
.result {
  margin: 18px 0 0;
  padding: 18px 18px;
  border-radius: 10px;
  font-size: .98rem;
  line-height: 1.55;
}
.result.success { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.result.error   { background: var(--err-bg); color: var(--err-ink); border: 1px solid var(--err-line); }
.result strong { display: block; font-family: "Oswald", sans-serif; font-size: 1.1rem; margin-bottom: 4px; }

/* ---------- Full-page status (already submitted / invalid link / loading) ---------- */
.status-page {
  max-width: 560px;
  margin: 60px auto;
  padding: 0 16px;
  text-align: center;
}
.status-page .card { text-align: left; }
.status-page h1 {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 10px;
}
.start-here-btn { margin-top: 18px; }

/* ---------- Self-service walk-in intake form ---------- */
.start-page { margin-top: 36px; }
.start-page .card p { color: var(--muted); margin-bottom: 4px; }

/* Honeypot field: off-screen, not display:none (some bots skip display:none
   fields), never reachable by keyboard/screen reader for real users. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-foot {
  max-width: 640px;
  margin: 26px auto 0;
  padding: 22px 16px 34px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-foot span:first-child { font-family: "Oswald", sans-serif; font-weight: 600; color: var(--ink); letter-spacing: .03em; text-transform: uppercase; }
