/* NWTC join form. Palette and type from spec 5.7 (read from nwtc.com.au, 4 Nov 2026). */
:root {
  --navy: #0F3055;
  --sky: #0DA2E7;            /* decorative only: progress segments, badges, tinted borders */
  --action: #0877AD;         /* every button fill and every sky-coloured text or link (4.9:1 on white) */
  --action-dark: #066A9A;    /* hover shade of --action */
  --sky-tint: #EAF6FD;
  --sky-wash: #F3FAFE;
  --page: #F9FAFB;
  --text: #103360;
  --ink: #121721;
  --muted: #5B6B80;
  --border: #DAE0E7;
  --placeholder: #9AA7B8;
  --green: #1B7F3B;
  --green-tint: #E6F6EC;
  --green-wash: #F1FAF4;
  --green-border: #BFE5CD;
  --red: #B42318;
  --red-wash: #FEF3F2;
  --red-border: #F5C2BD;
  --amber: #8A5A00;
  --amber-wash: #FFF8E6;
  --amber-border: #F0D9A0;
  --radius: 10px;
  --gutter: 20px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.4; }
[hidden] { display: none !important; }
a { color: var(--action); }
a:hover { color: var(--action-dark); }
button { font-family: inherit; }
h1, h2, p, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
h1:focus { outline: none; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- page frame ---------- */
.app { max-width: 460px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; }
.top { display: flex; flex-direction: column; gap: 14px; padding: 22px var(--gutter) 0; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-mark { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); letter-spacing: .5px; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.segs { display: flex; gap: 6px; }
.seg { height: 6px; border-radius: 3px; background: var(--border); flex: 1; transition: background .2s ease; }
.seg.on { background: var(--sky); }
.progress-text { font-size: 12px; font-weight: 600; color: var(--muted); }

.main { flex: 1; display: flex; flex-direction: column; }
.view { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px var(--gutter) 28px; }
.intro { display: flex; flex-direction: column; gap: 6px; }
.intro h1 { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.intro p { font-size: 14px; color: var(--muted); line-height: 1.5; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { gap: 18px; }
.stack-sm { gap: 10px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { min-width: 0; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group > .lbl { margin: 0; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: #fff; padding: 14px; }

/* ---------- labels, inputs, help, errors ---------- */
.lbl { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.lbl-flush { margin: 0; }
.opt { font-weight: 400; color: var(--muted); }
.in {
  display: block; width: 100%; min-width: 0; height: 48px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 14px; font-family: var(--sans); font-size: 16px; color: var(--ink); background: #fff;
  -webkit-appearance: none; appearance: none; line-height: normal;
}
select.in {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2365758B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.in::placeholder { color: var(--placeholder); }
.in:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.in[aria-invalid="true"] { border-color: var(--red); }
.in:disabled, .in[readonly] { background: #F1F4F8; color: var(--muted); }
input[type="date"].in { text-align: left; min-height: 48px; }
.in-rego { text-transform: uppercase; letter-spacing: 1px; }
.in-sig { font-family: var(--serif); font-size: 20px; font-style: italic; }
.in-sig::placeholder { font-family: var(--sans); font-style: normal; font-size: 16px; }

.help { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.help-flush { margin: 0; }
.help-md { font-size: 13px; margin: 0; }
.err { font-size: 13px; font-weight: 500; color: var(--red); margin: 6px 0 0; line-height: 1.4; }
.err-step { margin: 0; padding: 10px 12px; border: 1px solid var(--red-border); border-radius: var(--radius); background: var(--red-wash); }
.err-step { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.err-step[hidden] { display: none !important; }
.err-step .textbtn { color: var(--red); text-decoration: underline; padding: 6px 0; }
.lblblock { display: flex; flex-direction: column; gap: 2px; }

.banner { margin: 14px var(--gutter) 0; padding: 12px 14px; border-radius: var(--radius); font-size: 14px; line-height: 1.45; border: 1px solid var(--amber-border); background: var(--amber-wash); color: var(--amber); }
.banner-info { border-color: #CDE9F8; background: var(--sky-wash); color: var(--text); }
.banner-error { border-color: var(--red-border); background: var(--red-wash); color: var(--red); }
.banner .textbtn { color: inherit; text-decoration: underline; padding: 4px 2px; min-height: 44px; }

.note { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--sky-wash); border: 1px solid #CDE9F8; color: var(--text); font-size: 14px; line-height: 1.45; }
.note-text { margin: 0; }
.note-warn { background: var(--amber-wash); border-color: var(--amber-border); color: var(--amber); }
.note-error { background: var(--red-wash); border-color: var(--red-border); color: var(--red); }
.note-actions { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.note-q { font-size: 14px; }
.textbtn { background: none; border: 0; padding: 10px 2px; min-height: 44px; font-size: 14px; font-weight: 600; color: var(--action); cursor: pointer; text-decoration: none; }
.textbtn:hover { color: var(--action-dark); text-decoration: underline; }
.textbtn-strong { color: var(--navy); }

/* ---------- tiles, checkboxes, radios ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile {
  display: flex; align-items: center; gap: 10px; min-height: 48px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px;
  background: #fff; font-size: 15px; color: var(--ink); cursor: pointer;
}
.tile:hover { border-color: #B9C4D1; }
.tile input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--action); }
.tile:has(input:checked) { border-color: var(--action); background: var(--sky-wash); }
.tile:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.tile-top { align-items: flex-start; padding: 12px; }
.tile-top input { margin-top: 2px; }
.tile-body { display: flex; flex-direction: column; gap: 2px; }
.tile-body .help { margin: 0; }

.paylist { display: flex; flex-direction: column; gap: 8px; }
.pay { display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; background: #fff; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--action); background: var(--sky-wash); }
.pay:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 2px; }
.pay input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--action); }
.pay-body { display: flex; flex-direction: column; gap: 2px; }
.pay-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.pay .help { margin: 0; }

.consents { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; }
.consents .err { margin: -6px 0 0 34px; }
.chk-row { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.chk-row input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--action); }
.chk-row:has(input:focus-visible) input { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn, .btn2 {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; width: 100%; border-radius: var(--radius); border: 0;
  background: var(--action); color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); padding: 0 16px; text-align: center;
}
.btn:hover { background: var(--action-dark); color: #fff; }
.btn[disabled] { background: #A9CFE3; box-shadow: none; cursor: not-allowed; }
.btn:focus-visible, .btn2:focus-visible { outline-offset: 3px; }
.btn2 { border: 1.5px solid var(--navy); background: #fff; color: var(--navy); box-shadow: none; }
.btn2:hover { background: #EEF3F8; color: var(--navy); }

.chk {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%;
  border-radius: var(--radius); border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.chk:hover { background: #EEF3F8; }
.chk[disabled] { opacity: .6; cursor: progress; }

.actions { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.actions-tight { padding-top: 4px; }
.hint { margin: 0 0 4px; text-align: center; }
.hint:empty { display: none; }
.back-row { display: flex; gap: 8px; }
.back {
  flex: 1; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px;
  background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; text-decoration: none;
}
.back:hover { color: var(--navy); }
.back-save { color: var(--action); font-weight: 600; }
.back-save:hover { color: var(--action-dark); }

/* ---------- vehicle card ---------- */
.vcard { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--green); border-radius: 12px; padding: 14px 14px 12px; }
.vcard-head { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 14px; font-weight: 600; }
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.vgrid > div { min-width: 0; }
.k { font-size: 11px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin: 0; }
.v { font-size: 15px; font-weight: 600; color: var(--ink); margin: 2px 0 0; overflow-wrap: anywhere; }
.v-ok { color: var(--green); }
.v-bad { color: var(--red); }
.v-warn { color: var(--amber); }
.vlinks { display: flex; justify-content: space-between; align-items: center; gap: 4px 12px; flex-wrap: wrap; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 0; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--action); cursor: pointer; text-decoration: none; }
.linkbtn:hover { color: var(--action-dark); }
.linkbtn-muted { color: var(--muted); }

/* ---------- documents ---------- */
.docgroup { display: flex; flex-direction: column; gap: 10px; }
.doclist { display: flex; flex-direction: column; gap: 10px; }
.docrow {
  display: flex; align-items: center; gap: 12px; min-height: 72px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 12px 14px; background: #fff;
}
.docrow.compact { min-height: 60px; padding: 8px 12px 8px 14px; }
.docrow.failed { border-color: var(--red-border); background: var(--red-wash); }
.docrow.done { border-color: var(--border); }
.ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--sky-tint); color: var(--navy); overflow: hidden; }
.ico-ok { background: var(--green-tint); color: var(--green); }
.ico-bad { background: #FDE4E1; color: var(--red); }
.ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.docmain { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.docname { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.dochelp { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.4; }
.dochelp.ok { color: var(--green); }
.dochelp.bad { color: var(--red); }
.bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin: 4px 0 2px; }
.bar > i { display: block; height: 6px; background: var(--sky); width: 0; transition: width .15s linear; }
.act {
  height: 44px; min-width: 64px; padding: 0 14px; border-radius: var(--radius); border: 1.5px solid var(--action);
  background: #fff; color: var(--action); font-size: 14px; font-weight: 600; cursor: pointer; flex: none;
}
.act:hover { background: var(--sky-tint); color: var(--action-dark); }
.act-quiet { border-color: var(--border); color: var(--muted); }
.act-quiet:hover { background: #F1F4F8; color: var(--navy); }
.act-danger { border-color: var(--red); color: var(--red); }
.act-danger:hover { background: #FDE4E1; }
.docbtns { display: flex; flex-direction: column; gap: 0; align-items: flex-end; flex: none; }
.docbtns .textbtn { padding: 0 8px; min-height: 44px; min-width: 44px; font-size: 13px; color: var(--muted); }
.filepick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

.reportcard { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--green-border); border-radius: 12px; padding: 12px 14px; background: var(--green-wash); }
.reportcard .docmain { gap: 4px; }
.reportcard .linkbtn { padding: 4px 0; min-height: 44px; align-self: flex-start; }

/* ---------- thank you and saved ---------- */
.view-center { padding: 0; gap: 0; }
.center-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 20px 24px 40px; }
.center-foot { padding: 0 var(--gutter) 28px; display: flex; }
.badge { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.badge-sky { background: var(--sky); box-shadow: 0 8px 20px -6px rgba(13, 162, 231, .6); }
.badge-navy { width: 72px; height: 72px; background: var(--navy); }
.h-big { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--navy); line-height: 1.1; overflow-wrap: anywhere; }
.h-mid { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.lead { font-size: 17px; color: var(--text); line-height: 1.5; }
.lead-sm { font-size: 15px; }
.card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card-title { font-size: 13px; font-weight: 600; color: var(--navy); }
.card-text { font-size: 15px; color: var(--ink); line-height: 1.5; }
.strong-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.linkcard { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 10px 10px 14px; }
.linkbox { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; height: 44px; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--navy); text-overflow: ellipsis; }
.linkbox:focus { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.copy { height: 44px; padding: 0 14px; border-radius: 8px; border: 1.5px solid var(--action); background: #fff; color: var(--action); font-size: 14px; font-weight: 600; cursor: pointer; flex: none; min-width: 64px; }
.copy:hover { background: var(--sky-tint); color: var(--action-dark); }

/* ---------- honeypot: off-screen, not display:none ---------- */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 480px) {
  .app { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 359px) {
  .grid2 { gap: 8px; }
  .brand-sub { letter-spacing: .8px; }
}
