/* Colours and type from the NMG style sheet (A9799). Proxima Nova where installed, then Aptos. */
:root {
  --navy: #083045; --navy-tint: #8498A2; --gold: #927128; --pale-gold: #B19045; --sand: #F1DCAA; --sand-tint: #F8EED5;
  --river: #55848A; --river-tint: #AAC2C5; --grey: #DBDBD3; --grey-tint: #EDEDE9; --ink: #333334; --muted: #5c5c5d; --white: #fff;
  --stop: #b3261e; --stop-tint: #fdecea; --ok: #0f4d1e; --ok-tint: #e8f3ea;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 16px/1.5 "Proxima Nova", Aptos, "Segoe UI", system-ui, sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3, legend { color: var(--navy); line-height: 1.2; }
h1 { font-size: 2rem; font-weight: 900; margin: 1.5rem 0 .75rem; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .75rem; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
a { color: var(--navy); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px; z-index: 10; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.dev-banner { background: var(--sand); color: var(--ink); padding: 8px 16px; font-size: .9rem; text-align: center; }
.site-head { display: flex; align-items: center; gap: 16px; max-width: 960px; margin: 0 auto; padding: 12px 16px; border-bottom: 3px solid var(--gold); }
.brand img { display: block; height: 64px; width: auto; }
.site-name { margin: 0 0 0 auto; text-align: right; color: var(--navy); font-weight: 700; line-height: 1.25; }
.site-name span { font-weight: 400; color: var(--muted); }
.site-foot { margin-top: 3rem; padding-top: 1rem; padding-bottom: 2rem; border-top: 1px solid var(--grey); color: var(--muted); font-size: .9rem; }
.lead { font-size: 1.1rem; }
.callout { background: var(--grey-tint); border-left: 5px solid var(--navy); padding: 12px 16px; margin: 1rem 0; }
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-stop { background: var(--stop-tint); border-left-color: var(--stop); }
.callout-ok { background: var(--ok-tint); border-left-color: var(--ok); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--grey); border-top: 4px solid var(--pale-gold); padding: 12px 16px; }
.card h3 { margin-top: 0; }
.limits li { margin-bottom: .35rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--grey); padding: 8px 10px; text-align: left; vertical-align: top; font-size: .93rem; }
thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.checklist { min-width: 720px; }
.checklist tbody th { background: var(--grey-tint); font-weight: 700; color: var(--navy); }
.checklist td.is-not { color: var(--muted); }
.checklist td.is-req { background: var(--sand-tint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border-radius: 3px; }
.btn:hover { background: var(--grey-tint); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: #0d4563; }
.btn-small { min-height: 40px; padding: 4px 12px; font-size: .92rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-submit { background: var(--grey); border-color: var(--grey); color: var(--muted); }
.btn-submit:disabled { opacity: 1; cursor: not-allowed; }
.btn-submit.is-ready { background: var(--ok); border-color: var(--ok); color: var(--white); }
.btn-submit.is-ready:hover { background: #156b2a; }
.btn-submit.is-sending { cursor: progress; }
.submit-status { color: var(--muted); font-size: .95rem; }
:focus-visible { outline: 3px solid var(--pale-gold); outline-offset: 2px; }
.stepper { display: flex; list-style: none; gap: 4px; padding: 0; margin: 1rem 0; counter-reset: step; }
.stepper li { flex: 1; background: var(--grey-tint); color: var(--muted); padding: 6px 8px; font-size: .85rem; border-top: 4px solid var(--grey); }
.stepper li.is-current { color: var(--navy); font-weight: 700; border-top-color: var(--gold); background: var(--sand-tint); }
.stepper li.is-done { border-top-color: var(--navy); }
.grid { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.field { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
label, legend, .label-like { display: block; font-weight: 700; color: var(--navy); margin: 0 0 4px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.note-unresolved { background: var(--sand-tint); padding: 6px 8px; color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select { display: block; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--navy-tint); border-radius: 3px; font: inherit; background: var(--white); color: var(--ink); }
input[type=file] { display: block; width: 100%; min-height: 44px; padding: 8px 0; font: inherit; }
.radios { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.radio, .tick { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; color: var(--ink); min-height: 32px; margin-bottom: 4px; }
.radio input, .tick input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; }
.fixed { margin: 0; min-height: 44px; padding: 8px 10px; background: var(--grey-tint); border-radius: 3px; }
.check { margin: 4px 0 0; font-size: .9rem; min-height: 0; }
.check:empty { display: none; }
.check.is-bad { color: var(--stop); font-weight: 700; }
.check.is-good { color: var(--ok); }
.package { border: 1px solid var(--grey); border-top: 4px solid var(--navy); padding: 12px 16px; margin: 0 0 1.25rem; min-width: 0; }
.package legend { padding: 0 6px; font-size: 1.08rem; }
.package-medical { border-top-color: var(--river); }
.credential { border-top: 1px dashed var(--grey); padding-top: 12px; margin-bottom: 12px; display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; }
.credential:first-child > .btn { display: none; }
.travel { min-width: 0; }
.travel input, .travel select { min-width: 84px; }
.travel [name=travel_mode] { min-width: 176px; }
.travel [name=travel_comments] { min-width: 120px; }
.travel th:last-child, .travel td.row-end { width: 1%; }
.credential input, .credential select { font-weight: 400; }
.travel-wrap { margin-bottom: 8px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin: 1.5rem 0; }
.review-group { margin-bottom: 1.25rem; }
.review-group dl { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; margin: 0; border-top: 1px solid var(--grey); }
.review-group dt, .review-group dd { margin: 0; padding: 6px 8px; border-bottom: 1px solid var(--grey); overflow-wrap: anywhere; }
.review-group dt { font-weight: 700; color: var(--navy); background: var(--grey-tint); }
.ref { font-size: 1.1rem; }
.reasons li { margin-bottom: .25rem; }

@media (max-width: 760px) {
  h1 { font-size: 1.6rem; }
  .brand img { height: 48px; }
  .site-name { font-size: .9rem; }
  .stepper li { font-size: 0; padding: 0; height: 8px; }
  .stepper li.is-current { font-size: .9rem; padding: 6px 8px; height: auto; flex: 6; }
  .step-nav .btn, .actions .btn, #submit-btn { flex: 1; width: 100%; }
  .travel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .travel, .travel tbody, .travel tr, .travel td { display: block; width: 100%; }
  .travel tr { border: 1px solid var(--grey); border-top: 3px solid var(--navy); margin-bottom: 12px; padding: 4px; }
  .travel td { border: 0; padding: 4px 6px; }
  .travel td[data-label]::before { content: attr(data-label); display: block; font-weight: 700; color: var(--navy); font-size: .85rem; }
  .travel td.row-end:empty { display: none; }
  .review-group dl { grid-template-columns: 1fr; }
  .review-group dt { border-bottom: 0; padding-bottom: 2px; }
}
