:root {
  --ink: #14161a;
  --muted: #626975;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --line: #dce0e5;
  --coral: #fd6d4b;
  --coral-dark: #e95838;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--canvas); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }

.page-shell { display: grid; min-height: 100svh; place-items: center; padding: 42px 24px; }
.brand, .form-shell { width: min(100%, 620px); margin-right: auto; margin-left: auto; }
.brand { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(48px, 8vh, 88px); }
.brand-mark {
  position: relative;
  display: grid;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(20, 22, 26, .11);
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #e3e7eb);
  box-shadow: 9px 12px 20px rgba(20, 22, 26, .17), -5px -5px 13px rgba(255, 255, 255, .9), inset 3px 3px 7px rgba(255, 255, 255, .85), inset -5px -5px 9px rgba(20, 22, 26, .1);
}
.brand-mark::after { position: absolute; inset: 7px; border: 1px solid rgba(255, 255, 255, .75); border-radius: inherit; content: ""; pointer-events: none; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: inherit; clip-path: circle(50%); transform: scale(1.04); }
.brand p, .question-number { margin: 0; color: var(--coral-dark); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.progress-wrap { margin-bottom: 44px; }
.progress-wrap p { margin: 0 0 11px; color: var(--muted); font-size: 12px; font-weight: 700; }
.progress { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: #dfe2e6; }
.progress span { display: block; width: 14.285%; height: 100%; border-radius: inherit; background: var(--coral); transition: width 180ms ease; }
.question-heading { margin-bottom: 30px; }
.question-number { margin-bottom: 16px; }
h1, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: 0; line-height: 1.1; }
.question-heading > p:not(.question-number), .success > p:not(.question-number) { max-width: 530px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
input:not([type="checkbox"]), select {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input:not([type="checkbox"]) { padding: 0 17px; }
select {
  cursor: pointer;
  padding: 0 48px 0 17px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--coral-dark) 50%), linear-gradient(135deg, var(--coral-dark) 50%, transparent 50%);
  background-position: calc(100% - 23px) 24px, calc(100% - 17px) 24px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
input:not([type="checkbox"])::placeholder { color: #959ca6; }
input:not([type="checkbox"]):focus, select:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(253, 109, 75, .15); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.consent input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; accent-color: var(--coral-dark); }
.consent a { color: var(--ink); font-weight: 700; }
.error { min-height: 21px; margin: 16px 0 0; color: #b42318; font-size: 13px; font-weight: 600; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; }
button, .button-link {
  display: inline-flex;
  min-height: 50px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 21px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
button:hover, .button-link:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .7; transform: none; }
.primary { margin-left: auto; background: var(--coral); color: var(--ink); }
.primary:hover { background: var(--coral-dark); }
.secondary { border-color: var(--line); background: transparent; color: var(--ink); }
.secondary:hover { border-color: #abb2ba; background: var(--surface); }
.success .button-link { margin-top: 30px; }
.legal-footer { width: min(100%, 620px); margin: 52px auto 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 11px; line-height: 1.6; }
.legal-footer p { margin: 0 0 7px; }
.legal-footer nav { display: flex; justify-content: center; gap: 8px; }
.legal-footer a { color: var(--muted); text-decoration: none; }
.legal-footer a:hover { color: var(--ink); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 620px) {
  .page-shell { display: block; padding: 34px 22px 42px; }
  .brand { flex-direction: column; gap: 13px; margin-bottom: 52px; text-align: center; }
  .brand-mark { width: 88px; height: 88px; flex-basis: 88px; }
  .progress-wrap { margin-bottom: 36px; }
  .legal-footer { margin-top: 42px; }
  h1 { font-size: clamp(28px, 8.5vw, 38px); }
}
@media (max-width: 380px) {
  .page-shell { padding-right: 18px; padding-left: 18px; }
  .actions button { padding-right: 16px; padding-left: 16px; }
}
