/* Brand colours, and no others. Coral is only ever used on navy. */
:root {
  --navy: #0B1537;
  --paper: #F3F2F2;
  --mist: #E4E6EF;
  --red: #E3242B;
  --coral: #FF6B70;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}
.logo { display: block; height: 44px; width: auto; max-width: 60%; }
.step-label { font-style: italic; font-size: 0.95rem; margin: 0; }

.column {
  flex: 1;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 8px 16px 24px;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
}
h1 { font-weight: 700; font-size: 1.9rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-weight: 600; font-size: 1.2rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.aside { font-style: italic; font-size: 0.95rem; }

form { display: flex; flex-direction: column; gap: 12px; margin: 0; }

[hidden] { display: none !important; }

input[type=text], input[type=password], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--navy);
  background: var(--paper);
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  padding: 12px;
  min-height: 48px;
}
textarea { resize: vertical; }
select { appearance: auto; }
input::placeholder, textarea::placeholder { color: var(--navy); opacity: 0.6; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.password-row { display: flex; gap: 8px; align-items: stretch; }
.password-row input { flex: 1; min-width: 0; }

button {
  font: inherit;
  font-weight: 600;
  color: var(--paper);
  background: var(--navy);
  border: 1.5px solid var(--navy);
  border-radius: 6px;
  padding: 12px 16px;
  min-height: 48px;
  cursor: pointer;
}
button[disabled] { opacity: 0.6; cursor: default; }
button.secondary { color: var(--navy); background: var(--paper); }
button.choice[aria-pressed=true] { color: var(--paper); background: var(--navy); }
button.choice[aria-pressed=false] { color: var(--navy); background: var(--paper); }
button.link {
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 8px 0;
  min-height: 0;
  font-weight: 400;
  text-decoration: underline;
  text-align: left;
}

.choices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }

.notice {
  background: var(--mist);
  border-radius: 6px;
  padding: 12px;
  margin: 0 0 16px;
}
.error { color: var(--red); font-weight: 600; margin: 0; }
.error:empty { display: none; }

.actions { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  justify-content: center;
  padding: 16px;
}
.site-footer button.link { font-size: 0.9rem; padding: 8px 0; }
.site-footer button.link[aria-current=true] { font-weight: 700; }

/* Documents */
.doc-body { margin: 0 0 16px; }
.doc-pages { display: flex; flex-direction: column; gap: 12px; }
/* The canvas is the PDF's own paper: its white is the document's, not the site's. */
.doc-page { display: block; width: 100%; height: auto; border: 1.5px solid var(--navy); }
.doc-text {
  background: var(--mist);
  border-radius: 6px;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.check { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.check input { width: 24px; height: 24px; flex: none; accent-color: var(--navy); }

/* The cap request's status */
.panel {
  background: var(--mist);
  border-radius: 6px;
  padding: 16px;
  margin: 0 0 16px;
}
.panel p:last-child { margin-bottom: 0; }

/* Training */
.video-frame { width: 100%; max-width: 15rem; margin: 0 auto 16px; aspect-ratio: 9 / 16; background: var(--mist); border-radius: 6px; overflow: hidden; }
.video-frame iframe, .video-frame > div { display: block; width: 100%; height: 100%; border: 0; }
.video-status { display: flex; flex-direction: column; gap: 12px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
button.answer {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 11rem; padding: 12px; text-align: center;
  color: var(--navy); background: var(--paper);
}
button.answer[data-state=picked] { color: var(--paper); background: var(--navy); border-width: 3px; }
button.answer[disabled] { opacity: 1; cursor: default; }
button.answer[data-state=idle][disabled] { background: var(--mist); }
.answer-emoji { font-size: 2.6rem; line-height: 1; }

/* The last screen: the only red on it is this badge */
.badge {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.14em;
}
