/* Shared look for sign-up, sign-in, finish and CDL info pages. Same dark cab look as the entry page. */
:root {
  --night: #0d1117; --panel: #161c25; --line: #273140; --ink: #eef1f5; --dim: #95a1b2;
  --amber: #ff8a1f; --amber-soft: rgba(255,138,31,.14); --go: #3ddc84; --go-soft: rgba(61,220,132,.12);
  --stop: #ff5d5d; --stop-soft: rgba(255,93,93,.12); --lane: #f5d547;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; }
.wrap { max-width: 560px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 48px; display: flex; flex-direction: column; gap: 22px; }
h1, h2 { font-family: var(--display); text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1; font-weight: 800; text-transform: uppercase; }
h1 span { color: var(--amber); }
h2 { font-size: 24px; text-transform: uppercase; }
p { margin: 0; }
a { color: var(--amber); }
.label { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.small { font-size: 13px; color: var(--dim); }
b.num { color: var(--amber); }
.top { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.logo { flex: none; display: block; width: 31px; height: 32px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, legend { font-weight: 700; font-size: 16px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], select, textarea {
  font: inherit; color: var(--ink); background: var(--night); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; width: 100%; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lane); outline-offset: 2px; border-color: var(--amber); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
legend { padding: 0; margin-bottom: 6px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--amber); flex: none; margin: 0; }
.opt:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 60px; border: 0; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: none; width: 100%; background: var(--amber); color: #1a0f00; text-align: center; padding: 8px 14px; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.plain { background: var(--ink); color: var(--night); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; }
.msg { border-radius: 12px; padding: 14px 16px; font-size: 16px; display: flex; flex-direction: column; gap: 4px; }
.msg.good { background: var(--go-soft); border: 1px solid var(--go); }
.msg.bad { background: var(--stop-soft); border: 1px solid var(--stop); }
.warn { border-left: 4px solid var(--lane); padding: 10px 14px; background: rgba(245,213,71,.08); border-radius: 8px; font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::marker { color: var(--amber); font-weight: 700; }
@media (max-width: 380px) { .row2 { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
.mastered { display: table; margin-top: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--lane); color: var(--lane); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.field > span.small { font-weight: 400; font-size: 13px; }
/* Sign-up: each part is its own numbered card so it is easy to see. */
fieldset.sec { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 18px; padding: 18px; gap: 12px; }
fieldset.sec > legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
fieldset.sec > legend + * { clear: both; }
b.n { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--amber); color: #1a0f00; font-size: 18px; }
.pick { border: 2px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pick:focus-within { border-color: var(--amber); }
.or { align-self: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--amber); letter-spacing: .1em; }
/* Sign-up card 4: main reason sits below the photo OR plans part as its own question (Ken, Nov 23). */
.reason { border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.reason .q { font-weight: 700; font-size: 16px; }
/* Ken, Nov 24: slight sideways scroll on his phone's sign-up page. Nothing may be wider than the screen. */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.wrap > *, form > *, fieldset, .field, .pick, .opt, .row2 > * { min-width: 0; max-width: 100%; }
input, select, textarea { max-width: 100%; min-width: 0; }
input[type=file] { width: 100%; font-size: 15px; color: var(--dim); }
.opt, .small, legend { overflow-wrap: anywhere; }