:root {
  color-scheme: light;
  --ink: #241f1d;
  --muted: #645b57;
  --paper: #f7f5f1;
  --surface: #fffefa;
  --line: #dfd8d0;
  --accent: #a60006;
  --accent-ink: #88000a;
  font: 16px/1.55 system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 780px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #171415; padding: 12px 0; }
.brand { position: relative; width: 172px; height: 64px; overflow: hidden; }
.brand img { position: absolute; display: block; width: 115%; height: auto; inset: 50% auto auto -7.5%; transform: translateY(-50%); }
main { padding: 42px 0 68px; }
.intro { margin-bottom: 29px; animation: arrive 240ms ease-out both; }
@keyframes arrive { from { opacity: .4; transform: translateY(5px); } }
h1 { margin: 0; max-width: 21ch; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.055em; overflow-wrap: anywhere; text-wrap: balance; }
h1:focus { outline: none; }
.context { font-size: .85rem; font-weight: 700; color: var(--accent-ink); margin: 0 0 13px; overflow-wrap: anywhere; }
.description { color: var(--muted); margin: 18px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.privacy-intro { display: inline-block; margin-top: 13px; font-size: .9rem; }
.privacy-content h1 { max-width: 25ch; margin-bottom: 25px; }
.privacy-content section { border-top: 1px solid var(--line); padding-block: 17px 4px; }
.privacy-content h2 { font-size: 1.18rem; margin: 0; }
.privacy-content p { margin: 8px 0 14px; }
.notice:not(:empty) { padding: 12px 15px; background: #e9efe7; border-radius: 7px; }
.notice.error { background: #fae9e6; color: #8d221c; }
.form-progress {
  display: grid; grid-template-columns: auto minmax(55px, 1fr) auto; align-items: center; gap: 14px;
  position: sticky; top: 0; z-index: 1; padding: 13px 0; background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .83rem;
}
#progress-label { font-variant-numeric: tabular-nums; }
progress { appearance: none; width: 100%; height: 5px; border: 0; border-radius: 4px; background: #e7dfd7; color: var(--accent); }
progress::-webkit-progress-bar { background: #e7dfd7; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 4px; transition: width 140ms ease; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 4px; }
.questions { display: grid; gap: 27px; margin-top: 24px; }
.question-section { padding-bottom: 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.question-section:last-child { border-bottom: 0; padding-bottom: 0; }
.question-section h2 { font-size: 1.22rem; line-height: 1.3; letter-spacing: -.02em; margin: 0 0 17px; }
.question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.question { display: grid; align-content: start; gap: 7px; min-width: 0; margin: 0; }
.question.wide { grid-column: 1/-1; }
.question-options { padding: 0; border: 0; }
.question-options legend { padding: 0; margin-bottom: 6px; font-weight: 690; overflow-wrap: anywhere; }
.question-help { margin-bottom: 5px; color: var(--muted); }
.question-help summary { cursor: pointer; color: var(--accent-ink); font-weight: 650; }
.question-help p { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0 4px; }
.question-check { display: flex; gap: 10px; align-items: flex-start; border-radius: 6px; padding: 5px 8px 5px 0; font-weight: 500; }
.question-check:hover { background: #f0ebe5; }
.question-check input { width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; margin: 3px 0 0; accent-color: var(--accent); }
.question-inline-consent { margin: 4px 0; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface); }
.question-inline-consent strong, .question-inline-consent span > span { display: block; }
.question-inline-consent span > span { color: var(--muted); margin-top: 3px; font-size: .89rem; }
.question-privacy { justify-self: start; font-size: .9rem; }
label { font-size: .96rem; font-weight: 680; overflow-wrap: anywhere; }
input, textarea, select {
  width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #c8bcb2; border-radius: 7px;
  background: var(--surface); color: var(--ink); font: inherit; scroll-margin-top: 75px;
}
textarea { resize: vertical; min-height: 112px; }
:is(input,textarea,select)[aria-invalid=true] { border-color: #8d221c; }
.field-error { font-size: .88rem; color: #8d221c; }
.actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 12px 20px; border-top: 1px solid var(--line); margin-top: 29px; padding-top: 22px; }
button {
  border: 0; border-radius: 7px; background: var(--accent); color: white; padding: 11px 22px; min-height: 46px;
  font: inherit; font-weight: 680; cursor: pointer; transition: background 140ms ease;
}
button:hover { background: var(--accent-ink); }
button:disabled { opacity: .64; cursor: wait; }
a { color: var(--accent-ink); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #a64b52; outline-offset: 3px; }
@media (max-width: 590px) {
  .wrap { width: calc(100% - 32px); }
  main { padding-top: 30px; }
  .question-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .form-progress { gap: 9px; }
  .actions button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .intro { animation: none; }
  progress::-webkit-progress-value, button { transition: none; }
}
