/* The registration form. Mobile first: most people open it from a QR code on
   a phone, standing at a booth. */

:root {
  --ink: #16181d;
  --muted: #5d6470;
  --line: #d9dde4;
  --ground: #f3f4f7;
  --card: #ffffff;
  --accent: #ff5a1f;
  --accent-ink: #ffffff;
  --ok: #157347;
  --bad: #b42318;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  color: var(--ink);
  background: var(--ground);
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.5; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

.shell { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }

.brand { display: flex; align-items: center; gap: 10px; margin: 4px 4px 18px; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ffb020);
}
.brand .name { font-weight: 800; letter-spacing: 0.12em; font-size: 15px; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px rgba(22, 24, 29, 0.06);
}
@media (min-width: 600px) { .card { padding: 32px; } }

h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 10px; }
.lead { color: var(--muted); margin: 0 0 22px; white-space: pre-line; }
.step {
  margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}

.stack { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.nested { margin-top: 8px; }
.label { font-weight: 600; font-size: 15px; }
.hint { color: var(--muted); font-size: 13px; }

input, select {
  font: inherit; font-size: 17px; width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
input:focus, select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.18);
}
input.code { font-size: 28px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }

.consents { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.consents legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  width: 22px; height: 22px; flex: 0 0 22px; margin: 1px 0 0; padding: 0;
  border-radius: 6px; -webkit-appearance: checkbox; appearance: auto; accent-color: var(--accent);
}
.required { color: var(--accent); font-style: normal; }
.document { margin: -2px 0 6px 34px; font-size: 14px; }
.document summary { color: var(--muted); cursor: pointer; }
.document-body {
  white-space: pre-line; max-height: 220px; overflow: auto; margin: 8px 0; padding: 10px 12px;
  background: var(--ground); border-radius: 8px; color: var(--muted);
}

.button {
  font: inherit; font-size: 17px; font-weight: 700; padding: 14px 18px; border: 0;
  border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer;
}
.button:hover { filter: brightness(0.96); }
.button:active { transform: translateY(1px); }

.link {
  font: inherit; background: none; border: 0; padding: 0; color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.aside { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 14px; }
.inline { display: inline; }

.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; font-size: 15px; }
.alert.error { background: #fdecea; color: var(--bad); }
.alert.notice { background: #eaf6ef; color: var(--ok); }

.status { font-size: 13px; min-height: 1em; color: var(--bad); }
.status.saved { color: var(--ok); }

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

.done {
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 12px;
  background: radial-gradient(circle at 50% 50%, #fff 0 9px, transparent 10px), var(--ok);
}
.done.waitlist { background: radial-gradient(circle at 50% 50%, #fff 0 9px, transparent 10px), #c98a00; }

.foot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }
