:root {
  --ink: #17202f;
  --ink-2: #47526a;
  --muted: #6b7489;
  --line: #dde2ea;
  --bg: #f3f4f1;
  --panel: #ffffff;
  --brand: #12355b;
  --brand-2: #1d4f86;
  --accent: #2e7d4f;
  --danger: #b3261e;
  --danger-bg: #fdf0ef;
  --focus: #3b82c4;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.top { background: var(--brand); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { display: block; width: 190px; height: auto; max-width: 100%; }
.markets { color: #b9c7da; font-size: 13px; border-left: 1px solid rgba(255,255,255,.2); padding-left: 14px; white-space: nowrap; }
.secure-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: #d8f0e1;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18);
  padding: 5px 10px; border-radius: 999px;
}

.intro { padding: 32px 0 18px; }
h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600; font-size: 34px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em;
}
.intro p { margin: 0; color: var(--ink-2); font-size: 18px; }

.notice {
  background: #fff8e6; border: 1px solid #f0d58a; color: #6b5310;
  padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 15px;
}

form { padding-bottom: 8px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 20px 22px; margin: 0 0 16px; min-width: 0;
}
legend {
  float: left; width: 100%; padding: 0; margin-bottom: 14px;
  font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px;
}
legend + * { clear: both; }
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700;
}
.hint { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.span-2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field.split { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.field.split > div { display: flex; flex-direction: column; min-width: 0; }
label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.opt { font-weight: 400; color: var(--muted); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input:not([type]), select {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #c9d0db; border-radius: 8px;
  padding: 10px 12px; height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,130,196,.18); }
input#state { text-transform: uppercase; }

.cj-field {
  height: 44px; border: 1px solid #c9d0db; border-radius: 8px; background: #fff;
  padding: 0 4px; display: flex; align-items: center; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.cj-field iframe { width: 100% !important; height: 42px !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; }
.cj-field.is-focused { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,130,196,.18); }
.cj-field.preview { background: repeating-linear-gradient(-45deg, #f7f8fa 0 8px, #f1f3f6 8px 16px); }

.invalid input, .invalid select, .cj-field.invalid, input.invalid { border-color: var(--danger) !important; }
.field-msg { color: var(--danger); font-size: 13px; margin-top: 4px; }
.error-box {
  background: var(--danger-bg); color: var(--danger); border: 1px solid #f1c4c0;
  border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; font-weight: 600;
}

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid #c9d0db; border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover { border-color: var(--brand-2); }
.choice input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-body strong { color: var(--ink); font-size: 16px; }
.choice-body small { color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--brand); background: #f3f7fc; box-shadow: 0 0 0 1px var(--brand) inset; }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(59,130,196,.25); }
.choices.invalid .choice { border-color: var(--danger); }
#onetime-fields { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c9d0db; border-radius: 8px; overflow: hidden; height: 44px; background: #fff; }
.seg-opt { margin: 0; position: relative; cursor: pointer; display: flex; }
.seg-opt + .seg-opt { border-left: 1px solid #c9d0db; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span { flex: 1; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 0 8px; text-align: center; transition: background .15s, color .15s; }
.seg-opt:hover input:not(:checked) + span { background: #f3f7fc; }
.seg-opt input:checked + span { background: var(--brand); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid rgba(59,130,196,.4); outline-offset: -3px; }
#service-field.invalid .seg, #state-field.invalid .seg { border-color: var(--danger); }
.seg-state { max-width: 420px; }
.terms-empty { color: var(--muted); font-style: italic; margin: 0; }

.terms {
  max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px;
  background: #fafbfc; padding: 12px 16px; font-size: 14.5px; color: var(--ink-2);
}
.terms ol { margin: 0; padding-left: 18px; }
.terms li { margin: 0 0 8px; }
.terms li:last-child { margin-bottom: 0; }
.terms:focus { outline: 2px solid var(--focus); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 14px; font-weight: 500; color: var(--ink); font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }
.check.invalid span { color: var(--danger); }
.sig input { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; font-style: italic; height: 50px; }
.sig-note { font-size: 13px; color: var(--muted); margin-top: 4px; }
#cf-turnstile:not(:empty) { margin-top: 14px; }

.btn {
  width: 100%; height: 54px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .05s;
}
.btn:hover { background: #276a43; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .8s linear infinite; }
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.fine { color: var(--muted); font-size: 14px; text-align: center; margin: 14px 0 0; }
.fine a, .terms a { color: var(--brand-2); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.done { text-align: center; padding: 64px 0 40px; }
.done-icon { color: var(--accent); margin-bottom: 12px; }
.done p { color: var(--ink-2); font-size: 18px; margin: 0 auto 8px; max-width: 520px; }
.done .fine { font-size: 15px; }

.foot { color: var(--muted); font-size: 13px; padding: 28px 0 36px; text-align: center; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .intro { padding-top: 24px; }
  .grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .card { padding: 16px 14px 18px; }
  .secure-pill, .markets { display: none; }
  .choices { grid-template-columns: 1fr; }
  .logo { width: 160px; }
}
