/* Beta application form. Calm, plain, large tap targets: people often fill this in on a phone, worried. */
:root {
  --ink: #14213d;
  --ink-2: #4a5568;
  --muted: #6b7280;
  --navy: #142d63;
  --blue: #0b63b6;
  --blue-press: #084f91;
  --line: #d5dbe5;
  --paper: #f5f7fb;
  --card: #ffffff;
  --choice: #f0f4f8;
  --choice-on: #e6f0fb;
  --error: #b42318;
  --error-bg: #fef3f2;
  --focus: #f5b301;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.top {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  font-weight: 650; color: var(--navy); max-width: 720px; margin: 0 auto;
}
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 48px; }
.foot { max-width: 720px; margin: 0 auto; padding: 16px 16px 32px; color: var(--muted); font-size: 13px; }

.intro { padding: 12px 0 20px; }
.intro h1 { font-size: clamp(28px, 6vw, 38px); line-height: 1.15; margin: 4px 0 12px; color: var(--navy); letter-spacing: -0.01em; }
.intro p { margin: 0 0 10px; color: var(--ink-2); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 650; color: var(--blue) !important; }
.meta { font-size: 15px; color: var(--muted) !important; }
.done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; margin-top: 12px; }

.apply { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (max-width: 520px) { .apply, .done { padding: 20px 16px; } }

.step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.js .step { margin: 0; }
.js .step[hidden] { display: none; }
.q { font-size: clamp(21px, 4.6vw, 26px); line-height: 1.25; font-weight: 680; color: var(--navy); padding: 0; margin: 0 0 6px; }
.qnum { display: block; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: 15px; margin: 0 0 14px; }

.choices { display: grid; gap: 10px; margin-top: 14px; }
.choice {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  background: var(--choice); border: 2px solid transparent; border-radius: 999px; padding: 13px 18px;
  min-height: 52px; transition: border-color .12s, background .12s;
}
.choice:hover { border-color: #b8c7da; }
.choice input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.choice:has(input:checked) { background: var(--choice-on); border-color: var(--blue); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 520px) { .choice { border-radius: 16px; } }

.field { margin: 14px 0 0; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input:not([type]), input[type=email], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px;
}
textarea { resize: vertical; min-height: 110px; margin-top: 10px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--blue);
}
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 15px !important; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.consent { margin-top: 20px; padding: 14px; background: var(--choice); border-radius: 12px; }
[data-other-for] { margin-left: 4px; }
.js [data-other-for][hidden] { display: none; }

.field-error { color: var(--error); font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.error-summary { background: var(--error-bg); border: 2px solid var(--error); border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; }
.error-summary h2 { font-size: 18px; margin: 0 0 6px; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); }
.has-error .choices, .has-error input, .has-error textarea { border-color: var(--error); }

.progress { margin: 0 0 22px; }
.progress .bar { height: 6px; background: var(--choice); border-radius: 99px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .25s ease; }
.progress .count { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }
.btn {
  font: inherit; font-weight: 650; border-radius: 999px; padding: 13px 26px; min-height: 52px; cursor: pointer;
  border: 2px solid transparent;
}
.btn.primary { background: var(--blue); color: #fff; margin-left: auto; }
.btn.primary:hover { background: var(--blue-press); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn[hidden] { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 520px) { .nav .btn.primary { flex: 1; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.js .qnum { display: none; }  /* the progress bar already says "Question n of 15" */
.started .intro { display: none; }  /* once answering, keep the question at the top of the screen */
.started .top { padding-bottom: 6px; }
.field .hint { margin: -2px 0 8px; font-size: 14px; }
