:root {
  color-scheme: light;
  --ink: #1f2937;
  --muted: #667085;
  --line: #d9dee8;
  --accent: #315efb;
  --accent-dark: #2548c7;
  --surface: #ffffff;
  --background: #f4f6fa;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 36px 0 56px;
}

.shell.narrow { max-width: 620px; }

.intro, form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(31, 41, 55, .06);
}

.intro { padding: 32px; margin-bottom: 18px; }
form { padding: 24px 32px 28px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 { margin: 0 0 14px; font-size: clamp(1.8rem, 5vw, 2.55rem); line-height: 1.12; }
p { color: var(--muted); }

.notice {
  margin-top: 22px;
  padding: 13px 15px;
  border-left: 4px solid var(--accent);
  background: #f2f5ff;
  color: #39466b;
}

.progress-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
progress { width: 100%; height: 9px; accent-color: var(--accent); }

.step { display: none; border: 0; padding: 0; margin: 0; }
.step.is-active { display: block; }
legend { margin-bottom: 22px; font-size: 1.35rem; font-weight: 700; }
label { display: block; margin: 18px 0 8px; font-weight: 600; }
label span[aria-hidden="true"] { color: var(--danger); }
.optional { color: var(--muted); font-size: .86em; font-weight: 400; }

input[type="text"], select, textarea {
  width: 100%;
  border: 1px solid #b9c1cf;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus, button:focus { outline: 3px solid rgba(49, 94, 251, .22); outline-offset: 2px; border-color: var(--accent); }

.options { display: grid; gap: 9px; }
.options label, .checkline { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 11px; border: 1px solid #e4e7ec; border-radius: 9px; font-weight: 400; }
.options label:hover { background: #fafbff; }
.options input, .checkline input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--accent); }
.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.scale { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: var(--muted); font-size: .82rem; }
.scale:last-child { text-align: right; }
.scale-options { display: flex; gap: 7px; }
.scale-options label { margin: 0; text-align: center; font-weight: 400; }
.scale-options input { display: block; margin: 0 auto 2px; accent-color: var(--accent); }

.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
button { border: 0; border-radius: 9px; background: var(--accent); color: white; cursor: pointer; font: inherit; font-weight: 700; padding: 12px 20px; }
button:hover { background: var(--accent-dark); }
button.secondary { background: #eef1f6; color: var(--ink); }
button.secondary:hover { background: #e1e6ef; }
.form-error { margin: 20px 0 0; color: var(--danger); font-weight: 600; }
.privacy-link { margin-bottom: 0; font-size: .9rem; }
a { color: var(--accent-dark); }
.closing-copy { margin-top: 0; }
.success-page { margin-top: 12vh; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 760px); padding-top: 16px; }
  .intro { padding: 24px 20px; border-radius: 14px; }
  form { padding: 20px; border-radius: 14px; }
  .compact { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr; gap: 5px; }
  .scale:last-child { text-align: left; }
  .scale-options { justify-content: space-between; }
  .actions button { flex: 1; }
}
