:root {
  color-scheme: light;
  --brand-red: #c9282d;
  --brand-red-dark: #aa2226;
  --black: #000;
  --charcoal: #191919;
  --slate: #3f3f3f;
  --muted: #667085;
  --line: #d9dadd;
  --cream: #f7f6f5;
  --paper: #fcfbf9;
  --white: #fff;
  --green: #267451;
  --shadow: 0 18px 48px rgba(25, 25, 25, .09);
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--charcoal);
  background: var(--cream);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }

.brand-rule {
  height: 6px;
  background: var(--brand-red);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 48px));
  min-height: 112px;
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--charcoal);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
  mix-blend-mode: multiply;
}

.brand > span {
  padding-left: 18px;
  border-left: 1px solid #c9c9c9;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.brand > span strong { font-weight: 800; }

.header-context {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--slate);
  font-size: .84rem;
  font-weight: 700;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--green);
}

.secure-label svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.onboarding-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  width: min(1160px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto 28px;
  overflow: hidden;
  border: 1px solid #e2e0de;
  border-top: 5px solid var(--brand-red);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.welcome {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 48px 38px 38px;
  border-right: 1px solid #e4e2df;
  background: var(--paper);
}

.welcome::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 84px;
  height: 84px;
  border-right: 16px solid rgba(201, 40, 45, .13);
  border-bottom: 16px solid rgba(201, 40, 45, .13);
  content: "";
}

.eyebrow {
  margin-bottom: 11px;
  color: var(--brand-red);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, .form-step > legend {
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

h1 {
  max-width: 270px;
  margin-bottom: 17px;
  color: var(--black);
  font-size: clamp(2.05rem, 3vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
}

.lead {
  margin-bottom: 34px;
  color: var(--slate);
  font-size: .98rem;
  line-height: 1.65;
}

.assurances {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.assurances article {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 11px;
  align-items: start;
}

.assurances article > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-red);
  color: var(--white);
  font-size: .7rem;
  font-weight: 900;
}

.assurances strong {
  display: block;
  margin: 1px 0 3px;
  color: var(--charcoal);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: .88rem;
}

.assurances p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}

.privacy-note {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 11px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.privacy-note svg { width: 24px; fill: var(--brand-red); }

.privacy-note p {
  margin: 0;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.5;
}

.form-panel {
  min-width: 0;
  padding: 48px clamp(38px, 5vw, 68px) 42px;
  background: var(--white);
}

.form-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.form-intro .eyebrow { margin-bottom: 6px; }

h2 {
  margin-bottom: 0;
  color: var(--black);
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.028em;
}

.step-count {
  flex: none;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 32px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 0 14px;
  color: #8a8e93;
  font-size: .8rem;
}

.progress li::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.progress span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border: 1px solid #c7c9cc;
  border-radius: 50%;
  background: var(--white);
  font-size: .72rem;
  font-weight: 800;
}

.progress b { font-weight: 700; }
.progress li.active, .progress li.complete { color: var(--charcoal); }
.progress li.active::after { background: var(--brand-red); }
.progress li.active span { border-color: var(--brand-red); color: var(--brand-red); }
.progress li.complete span { border-color: var(--brand-red); background: var(--brand-red); color: var(--white); }

.honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.form-step > legend {
  margin-bottom: 4px;
  padding: 0;
  color: var(--charcoal);
  font-size: 1.02rem;
  font-weight: 700;
}

.step-copy {
  margin-bottom: 23px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field { display: block; margin-bottom: 17px; }

.field > span, .choice-group > legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  color: var(--slate);
  font-size: .8rem;
  font-weight: 700;
}

.field em, .choice-group em {
  color: var(--brand-red);
  font-size: .64rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.field input, .field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #bcbec0;
  border-radius: 3px;
  outline: 0;
  background: var(--white);
  color: var(--charcoal);
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}

.field textarea { resize: vertical; line-height: 1.5; }

.field input:focus, .field textarea:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(201, 40, 45, .09);
}

.field input:user-invalid, .field textarea:user-invalid { border-color: var(--brand-red); }

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.4;
}

.choice-group { margin-top: 4px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

.choice {
  display: flex;
  gap: 11px;
  padding: 14px;
  border: 1px solid #bcbec0;
  border-radius: 3px;
  background: var(--white);
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--brand-red);
  box-shadow: inset 4px 0 0 var(--brand-red);
  background: #fffafa;
}

.choice input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--brand-red);
}

.choice strong, .choice small { display: block; }
.choice strong { margin-bottom: 4px; font-size: .85rem; }
.choice small { color: var(--muted); font-size: .73rem; line-height: 1.4; }
.terms-note { margin: 9px 0 0; color: var(--muted); font-size: .75rem; }

.review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
  margin: 0 0 21px;
  padding: 4px 0;
}

.review div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.review dt { margin-bottom: 3px; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.review dd { margin: 0; font-size: .86rem; font-weight: 600; line-height: 1.45; white-space: pre-line; }

.consent {
  display: flex;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-red);
  border-radius: 3px;
  background: var(--paper);
}

.consent input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; accent-color: var(--brand-red); }
.consent span { color: var(--slate); font-size: .82rem; line-height: 1.48; }
.form-error { min-height: 22px; margin-top: 13px; color: var(--brand-red-dark); font-size: .82rem; font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 8px; }

.button {
  min-height: 44px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: .85rem;
  font-weight: 800;
}

.button.primary { min-width: 145px; background: var(--brand-red); color: var(--white); }
.button.primary:hover { background: var(--brand-red-dark); }
.button.secondary { border-color: #bcbec0; background: var(--white); color: var(--charcoal); }
.button:disabled { opacity: .58; cursor: wait; }
.button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand-red); outline-offset: 2px; }

.success {
  display: grid;
  min-height: 500px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.success-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: #e9f3ed;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 900;
}

.success .eyebrow { margin-bottom: 9px; color: var(--green); }
.success h2 { max-width: 590px; margin-bottom: 14px; }
.success > p { max-width: 510px; color: var(--muted); line-height: 1.6; }

.reference {
  margin-top: 16px;
  padding: 13px 19px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}

.reference span { display: block; margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.reference strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; letter-spacing: .03em; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: .74rem;
}

footer p { margin: 0; }

@media (max-width: 900px) {
  .onboarding-shell { grid-template-columns: 1fr; }
  .welcome { padding: 38px; border-right: 0; border-bottom: 1px solid #e4e2df; }
  h1 { max-width: 650px; }
  .lead { max-width: 720px; }
  .assurances { grid-template-columns: repeat(3, 1fr); }
  .privacy-note { max-width: 720px; margin-top: 2px; }
}

@media (max-width: 680px) {
  .site-header, .onboarding-shell, footer { width: min(100% - 28px, 1160px); }
  .site-header { min-height: 88px; padding: 10px 0; }
  .brand { gap: 10px; }
  .brand img { width: 116px; }
  .brand > span { padding-left: 10px; font-size: .59rem; }
  .header-context > span:first-child { display: none; }
  .secure-label { padding-left: 0; border-left: 0; font-size: .75rem; }
  .onboarding-shell { border-radius: 2px; }
  .welcome, .form-panel { padding: 30px 23px; }
  h1 { font-size: 2.15rem; }
  .lead { margin-bottom: 28px; }
  .assurances { grid-template-columns: 1fr; gap: 17px; }
  .form-intro { align-items: start; }
  .progress b { display: none; }
  .field-grid, .choice-grid, .review { grid-template-columns: 1fr; gap: 0; }
  .form-actions { justify-content: stretch; }
  .button { flex: 1; }
  footer { flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
