/* Crowd Control HQ waiting list. Colours and type are held here in one place. */
@font-face {
  font-family: "Jost";
  src: url("/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000000;
  --bone: #ffffff;
  --muted: #a6a6a6;
  --line: rgba(255, 255, 255, 0.45);
  --line-soft: rgba(255, 255, 255, 0.3);
  --signal: #fb0312;
  --font: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
[hidden] { display: none !important; }
a { color: inherit; }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; align-items: stretch; }

/* Brand side */
.brand { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 48px 32px; }
.logo { width: 464px; max-width: 80%; height: auto; display: block; }
.location { margin: 0; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; text-align: center; }

.rule { width: 1px; background: var(--line-soft); margin: 96px 0 72px; }

/* Form side */
.form-side { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 32px; }
.form, .done { width: 100%; max-width: 420px; }
.form { display: flex; flex-direction: column; gap: 24px; }

.title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field label, .group legend { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone); padding: 0; }
.field input, .field select {
  width: 100%;
  background: transparent;
  color: var(--bone);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 0 12px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder { color: var(--muted); opacity: 1; }
.field select { color: var(--bone); padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' stroke='%23A6A6A6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 top 12px; cursor: pointer; }
.field select:invalid, .field select.empty { color: var(--muted); }
.field select option { color: #000; background: #fff; }
.field input:focus-visible, .field select:focus-visible { border-bottom-color: var(--bone); box-shadow: 0 1px 0 0 var(--bone); }
.field input[aria-invalid="true"] { border-bottom-color: var(--signal); }

.row { display: flex; gap: 20px; }

.group { border: 0; margin: 0; padding: 0; min-width: 0; }
.group legend { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; line-height: 1.2; white-space: nowrap; transition: background-color 0.12s, color 0.12s, border-color 0.12s; }
.chip:hover span { border-color: var(--bone); }
.chip input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip input:focus-visible + span { outline: 2px solid var(--bone); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent-wrap { display: flex; flex-direction: column; gap: 6px; }
.consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; position: relative; }
.consent input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.consent .box { flex: none; width: 18px; height: 18px; border: 1px solid var(--bone); border-radius: 2px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; }
.consent input:checked + .box { background: var(--bone); }
.consent input:checked + .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.consent input:focus-visible + .box { outline: 2px solid var(--bone); outline-offset: 2px; }
.consent-text { font-size: 14px; line-height: 20px; color: var(--muted); }

.btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 18px 28px; border: 0; border-radius: 2px; background: var(--bone); color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: opacity 0.12s; }
.btn:hover { opacity: 0.88; }
.btn:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.note { margin: 0; font-size: 13px; color: var(--muted); }
.err { margin: 0; font-size: 13px; color: var(--signal); }
.form-err { margin-top: -12px; }

.done { display: flex; flex-direction: column; gap: 18px; outline: none; }
.done-text { margin: 0; font-size: 17px; color: var(--muted); }
.done-link { align-self: flex-start; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 5px; }

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 48px 28px; }
.legal { margin: 0; font-size: 12px; letter-spacing: 0.02em; color: var(--muted); opacity: 0.8; }
.links { display: flex; gap: 28px; }
.links a { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Privacy page */
.doc { max-width: 680px; margin: 0 auto; padding: 56px 24px 64px; }
.doc .logo-link { display: inline-block; margin-bottom: 48px; }
.doc .logo-link img { width: 220px; height: auto; display: block; }
.doc h1 { margin: 0 0 8px; font-size: 30px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.doc h2 { margin: 36px 0 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: #d9d9d9; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .back { display: inline-block; margin-top: 36px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; text-underline-offset: 5px; }

/* Tablet and phone: stack */
@media (max-width: 980px) {
  .main { flex-direction: column; align-items: center; }
  .brand { flex: none; padding: 56px 24px 0; gap: 20px; }
  .logo { width: 248px; max-width: 70%; }
  .location { font-size: 11px; line-height: 1.7; }
  .location span { display: block; }
  .rule { display: none; }
  .form-side { flex: none; width: 100%; padding: 48px 24px 48px; align-items: flex-start; }
  .form, .done { max-width: 480px; }
  .title { font-size: 26px; }
  .row { flex-direction: column; gap: 26px; }
  .footer { flex-direction: column-reverse; align-items: flex-start; gap: 16px; padding: 0 24px 32px; max-width: 528px; width: 100%; margin: 0 auto; }
  .legal { line-height: 18px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
