/* CII National EHS Excellence Awards 2026 - Application form
   Visual language follows the 2026 brochure: navy → green header with an orange
   accent line, warm off-white page, Poppins headings and Inter body text. */
:root {
  --navy: #0c2c4c;
  --navy-700: #123a63;
  --brand: #1e7a3c;           /* green */
  --brand-600: #17652f;
  --brand-50: #e9f4ec;
  --accent: #e8821e;          /* orange */
  --accent-600: #cf6f10;
  --accent-50: #fdf1e4;
  --teal: #137f86;
  --gold: #b8862b;
  --ink: #12263c;
  --muted: #5b6878;
  --line: #e2e6e1;
  --surface: #ffffff;
  --bg: #f7f7f2;
  --radius: 18px;
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-link-color-rgb: 30, 122, 60;
  --bs-link-hover-color-rgb: 23, 101, 47;
}

body { background: var(--bg); color: var(--ink); font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h6 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.skip-link { position: absolute; z-index: 10; left: 12px; top: 12px; background: #fff; padding: 8px 14px; border-radius: 8px; }
.hint { color: var(--muted); font-weight: 400; }

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 10px 0; }
.topbar .cii-logo { height: 40px; width: auto; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 14px; }
.topnav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  padding: 52px 0 110px;
  background:
    radial-gradient(700px 360px at 92% 10%, rgba(232,130,30,.22), transparent 65%),
    linear-gradient(115deg, var(--navy) 0%, var(--navy-700) 48%, #17603a 82%, var(--brand) 100%);
  overflow: hidden;
}
.hero::after { /* brochure-style swoosh */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: 58px; height: 140px;
  border-top: 3px solid rgba(232,130,30,.85); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transform: rotate(-2deg); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #ffd39f; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 800; line-height: 1.12; margin: 14px 0 10px; }
.hero .tagline { font-size: 1.15rem; color: rgba(255,255,255,.85); margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-accent { background: var(--accent); border: 1px solid var(--accent); color: #fff; font-weight: 600; border-radius: 12px; padding: .65rem 1.4rem; }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; border-radius: 12px; }
.btn-glass:hover { background: rgba(255,255,255,.2); color: #fff; }

.hero-logo { background: #fff; border-radius: 22px; padding: 20px; box-shadow: 0 24px 48px rgba(0,0,0,.25); overflow: hidden; }
.hero-logo img { width: 100%; height: auto; display: block; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: 22px; padding: 26px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 4px; }
.hc-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd39f; }
.hc-big { font-family: var(--font-head); font-size: 2rem; font-weight: 800; line-height: 1.15; }
.hc-sub { color: rgba(255,255,255,.8); font-size: 14px; }
.hc-pillars { display: flex; gap: 6px; margin-top: 18px; }
.hc-pillars span { flex: 1; text-align: center; font-size: 12px; font-weight: 700; padding: 7px 4px; border-radius: 999px; background: #fff; }
.hc-pillars .p-e { color: var(--brand); }
.hc-pillars .p-h { color: #0288c7; }
.hc-pillars .p-s { color: var(--accent-600); }

.timeline { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.timeline li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; }
.timeline .t-label { font-weight: 700; font-size: 14px; }
.timeline .t-date { font-size: 13px; color: rgba(255,255,255,.8); }
.timeline li.is-current { background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.2); border-top: 4px solid var(--accent); }
.timeline li.is-current .t-date { color: var(--muted); }
.timeline li.is-past { opacity: .5; }

/* ---------- Panels ---------- */
.main-wrap { margin-top: -70px; padding-bottom: 40px; position: relative; z-index: 2; }
.card-panel { background: var(--surface); border-radius: var(--radius); border: 1px solid rgba(12,44,76,.06); box-shadow: 0 1px 2px rgba(12,44,76,.04), 0 12px 32px rgba(12,44,76,.07); padding: 32px; margin-bottom: 24px; }
.section-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.section-kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.section-title { font-size: 1.6rem; margin: 6px 0 18px; padding-bottom: 12px; position: relative; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 3px; border-radius: 3px; background: var(--accent); }

/* ---------- Wizard ---------- */
.wizard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.wizard-head h2 { font-size: 1.7rem; margin-top: 4px; }
.badge-period { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.badge-period.early { background: var(--brand-50); color: var(--brand); }
.badge-period.late { background: var(--accent-50); color: #a85709; }

.stepper { list-style: none; display: flex; padding: 0; margin: 0 0 12px; gap: 6px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: default; min-width: 0; }
.stepper li.done { cursor: pointer; }
.stepper .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d5dbe2; color: var(--muted); font-size: 14px; transition: all .2s; }
.stepper .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li.active { color: var(--navy); }
.stepper li.active .dot { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(12,44,76,.12); }
.stepper li.done .dot { background: var(--brand-50); border-color: var(--brand); color: var(--brand); font-size: 0; }
.stepper li.done .dot::before { content: "\F26E"; font-family: bootstrap-icons; font-size: 16px; }
.progress-thin { height: 4px; background: #eceff2; border-radius: 4px; }
.progress-thin .progress-bar { width: 20%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .3s; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--navy); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; float: none; width: auto; }
.step-title i { color: var(--brand); background: var(--brand-50); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 16px; }

.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.form-label.req::after { content: " *"; color: #d63939; }
.form-control, .form-select { border-color: #cfd6de; border-radius: 10px; padding: .62rem .85rem; }
.input-group > .form-control, .input-group > .form-select, .input-group > .btn, .input-group > .input-group-text { border-radius: 10px; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(30,122,60,.15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-control[readonly] { background: #f3f5f7; }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.step-intro { color: var(--muted); font-size: 14px; margin: -6px 0 8px; }
/* Guidelines: one item after another, separated by thin rules (no boxes) */
.guide-list { display: block; }
.guide { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.guide:first-child { padding-top: 8px; }
.guide > i { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 17px; }
.guide h3 { margin: 4px 0 6px; font-size: 15.5px; }
.guide p, .guide ul { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.guide ul { padding-left: 18px; }
.guide li + li { margin-top: 3px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #edf0f3; color: var(--muted); vertical-align: 1px; }
.tag-red { background: #fde8e8; color: #c23030; }

.dos-donts { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; background: #fff; }
.dos-donts summary { font-family: var(--font-head); font-weight: 700; color: var(--navy); cursor: pointer; }
.dos-donts h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.dos-donts h4.do { color: var(--brand); }
.dos-donts h4.dont { color: #c23030; }
.dos-donts ul { padding-left: 18px; margin: 0; font-size: 14px; color: var(--muted); }
.dos-donts li + li { margin-top: 4px; }

/* Participation declaration: prominent, mandatory panel */
.confirm-box { margin-top: 28px; border: 2px solid var(--accent); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 10px 28px rgba(232,130,30,.16); scroll-margin-top: 24px; }
.decl-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: linear-gradient(90deg, var(--accent), #f0a04b); color: #fff; }
.decl-head > i { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 22px; }
.decl-head h3, .decl-head h4 { color: #fff; font-size: 1.2rem; margin: 0; }
.decl-head p { margin: 2px 0 0; font-size: 13.5px; color: rgba(255,255,255,.92); }
.decl-badge { margin-left: auto; flex: none; background: #fff; color: var(--accent-600); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.decl-body { padding: 8px 20px; background: var(--accent-50); }
.decl-item { margin: 0; padding: 12px 0 12px 2.1em; border-bottom: 1px dashed #efc79a; }
.decl-item:last-child { border-bottom: 0; }
.decl-item .form-check-input { width: 1.35em; height: 1.35em; margin-left: -2.1em; margin-top: .1em; border: 2px solid var(--accent-600); cursor: pointer; }
.decl-item .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.decl-item .form-check-label { font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; }
.confirm-box > .invalid-feedback { margin: 0; padding: 10px 20px; background: #fdecec; font-size: 14px; font-weight: 600; }

.option-card, .contact-card, .spot-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; height: 100%; background: #fcfcfa; }
.contact-card h3 { font-size: 15px; margin-bottom: 12px; }
.contact-card h3 i { color: var(--brand); }

/* Contacts: one row per person, fields side by side under a shared header */
.contact-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.ct-head, .ct-fields { display: grid; grid-template-columns: 84px 1.5fr 1.2fr 1fr 1.6fr 1.15fr; gap: 8px; }
.ct-head { padding: 10px 16px; background: var(--navy); }
.ct-head span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ct-row { padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.ct-row:nth-child(even) { background: #fbfcfa; }
.ct-role { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--navy); }
.ct-role > i { color: var(--brand); width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); display: grid; place-items: center; font-size: 14px; }
.ct-role-name { flex: 1 1 0; min-width: 0; }
.ct-opt { font-family: var(--bs-body-font-family); font-weight: 400; font-size: 13px; color: var(--muted); }
.ct-switch { margin: 0 0 0 auto; font-family: var(--bs-body-font-family); font-weight: 400; font-size: 13px; color: var(--muted); min-height: 0; }
.ct-fields .form-control, .ct-fields .form-select { padding: .5rem .65rem; font-size: 14px; }
.ct-fields .form-select { padding-right: 1.9rem; background-position: right .5rem center; }
.ct-f { min-width: 0; }
.ct-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* header row labels the columns on wide screens */
.btn-brand { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; padding: .62rem 1.4rem; border-radius: 12px; }
.btn-brand:hover, .btn-brand:focus { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-outline-brand { color: var(--brand); border-color: #b9d3c3; font-weight: 600; min-width: 72px; }
.btn-outline-brand:hover { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }
.btn-check:checked + .btn-outline-brand { background: var(--brand); border-color: var(--brand); color: #fff; }

/* File drop zones */
.dropzone { position: relative; border: 2px dashed #c9d2db; border-radius: 12px; background: #fbfcfd; transition: all .15s; min-height: 62px; }
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: var(--brand-50); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; z-index: 2; }
.dropzone:focus-within { outline: 3px solid rgba(30,122,60,.25); outline-offset: 2px; }
.dz-text { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.dz-text i { font-size: 22px; color: var(--brand); }
.dropzone.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-50); }
.dropzone.has-file .dz-text { color: var(--ink); font-weight: 600; justify-content: flex-start; }
.dropzone.is-invalid { border-color: #dc3545; background: #fff5f5; }
.dropzone.is-invalid ~ .invalid-feedback { display: block; }

.stepper-input { max-width: 200px; }
.stepper-input .form-control { max-width: 80px; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.review-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.review-card h4 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 8px; }
.review-card h4 button { font-size: 13px; }
.review-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; }
.review-card dt { color: var(--muted); font-weight: 500; }
.review-card dd { margin: 0; word-break: break-word; }

.declaration { background: var(--brand-50); border-radius: 12px; padding: 16px; }

.wizard-nav { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-nav #savedHint { flex: 1; text-align: right; }

/* Sidebar */
.side-sticky { display: block; }
.video-panel { padding: 20px 22px; }
.video-panel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.estimate { border-top: 4px solid var(--accent); padding: 24px; }
.est-list { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 14px; }
.est-list dt { font-weight: 500; color: var(--muted); }
.est-list dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #cfd6de; }
.est-total span { font-weight: 600; }
.est-total strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.help-mini { padding: 22px 24px; }
.hm-row { display: flex; flex-direction: column; font-size: 14px; padding: 8px 0; }
.hm-row + .hm-row { border-top: 1px solid var(--line); }
.hm-row a { color: var(--muted); text-decoration: none; }
.hm-row a:hover { color: var(--brand); }

/* Success */
.success-panel { padding: 52px 32px; }
.success-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: 42px; }
.reg-no { display: inline-block; margin: 12px 0 18px; background: var(--accent-50); border: 1px dashed var(--accent); border-radius: 12px; padding: 10px 18px; font-size: 1.1rem; }
.next-steps { max-width: 560px; padding-left: 0; list-style: none; counter-reset: ns; }
.next-steps li { counter-increment: ns; position: relative; padding: 0 0 14px 46px; display: flex; flex-direction: column; }
.next-steps li::before { content: counter(ns); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.next-steps span { color: var(--muted); font-size: 14px; }

/* Key dates */
.dates-table { font-size: 14px; min-width: 560px; }
.dates-table thead th { border-bottom: 2px solid var(--gold); font-family: var(--font-head); color: var(--navy); }
.dates-table thead small { display: block; font-family: var(--bs-body-font-family); font-weight: 500; }
.dates-table .ph1 { color: var(--brand); }
.dates-table .ph2 { color: var(--accent-600); }
.dates-table tbody th { font-weight: 500; }
.dates-table tbody tr:last-child td { font-weight: 700; color: #c23030; }

/* Award levels */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.level { border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.level .lv-score { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--c); }
.level b { font-family: var(--font-head); color: var(--navy); }
.level small { color: var(--muted); }
.lv-mastery { --c: var(--navy); }
.lv-gold { --c: var(--gold); }
.lv-silver { --c: #6b7a89; }
.lv-bronze { --c: #9a5a2c; }
.cat-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; height: 100%; background: #fcfcfa; }
.cat-card i { font-size: 22px; color: var(--accent); }
.cat-card h3 { font-size: 16px; margin: 8px 0 4px; }
.cat-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* Rules & fees */
.rules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.rule { border-left: 3px solid var(--teal); background: #f4fafa; border-radius: 0 12px 12px 0; padding: 14px 16px; }
.rule h3 { font-size: 15px; margin-bottom: 4px; }
.rule p { color: var(--muted); font-size: 14px; margin: 0; }

.nav-pills .nav-link { color: var(--navy); font-weight: 600; border-radius: 999px; }
.nav-pills .nav-link.active { background: var(--navy); }
.fee-table { font-size: 14px; min-width: 720px; font-variant-numeric: tabular-nums; }
.fee-table thead th { background: var(--navy); color: #fff; border-color: rgba(255,255,255,.15); font-weight: 600; vertical-align: middle; }
.fee-table tbody th { font-weight: 600; text-align: left; }
.fee-table .fee-total { font-weight: 700; color: var(--navy); }
.fee-table .period-row td { background: #f2f4f6; font-weight: 700; color: var(--ink); text-align: center; }
.fee-table tbody.is-current .period-row td { background: var(--brand-50); color: var(--brand); }
.fee-table tbody:not(.is-current)[data-period] td, .fee-table tbody:not(.is-current)[data-period] th { color: #7a8693; }
.fee-table tr.fee-match > *, .fee-table tr.fee-now > * { background: var(--accent-50) !important; color: var(--ink) !important; }

.pay-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; }
.pay-notes > div { display: flex; gap: 12px; }
.pay-notes i { color: var(--accent); font-size: 20px; }
.pay-notes p { margin: 0; font-size: 14px; color: var(--muted); }
.pay-notes b { color: var(--ink); }

.contact-tile { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 3px; height: 100%; background: #fcfcfa; }
.ct-group { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 4px; }
.contact-tile strong { font-family: var(--font-head); color: var(--navy); }
.contact-tile a { color: var(--ink); text-decoration: none; font-size: 14px; }
.contact-tile a:hover { color: var(--brand); }
.office { display: flex; gap: 12px; font-style: normal; color: var(--muted); font-size: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.office i { color: var(--accent); font-size: 18px; }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .side-sticky { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .video-panel { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-side { max-width: 420px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: repeat(2, 1fr); }
  .topnav { display: none; }
}
@media (max-width: 767.98px) {
  .card-panel { padding: 22px 16px; border-radius: 14px; }
  .side-sticky { grid-template-columns: 1fr; }
  .stepper .lbl { display: none; }
  .stepper li { flex: 0 0 auto; }
  .stepper li.active { flex: 1 1 auto; }
  .stepper li.active .lbl { display: inline; }
  .hero { padding: 32px 0 96px; }
  .hero-side { max-width: 340px; }
  .guide-list { grid-template-columns: 1fr; }
  .ct-head { display: none; }
  .ct-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ct-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
  .ct-switch { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 479.98px) {
  .timeline, .levels { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .topbar, .hero, aside, #dates, #categories, #turnoverRules, #fees, #contact .row, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
  .main-wrap { margin-top: 0; }
  .card-panel { box-shadow: none; border: 0; }
}

/* "Read before you apply": Step-1 ... Step-6 */
.guide-steps { list-style: none; margin: 0; padding: 0; }
.gstep { position: relative; display: flex; gap: 16px; padding: 0 0 22px; }
.gstep::before { content: ""; position: absolute; left: 33px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.gstep:last-child::before { display: none; }
.gstep-no { position: relative; z-index: 1; flex: none; width: 68px; height: 30px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; display: grid; place-items: center; }
.gstep:nth-child(4) .gstep-no { background: var(--accent); }
.gstep-body { flex: 1; min-width: 0; padding-top: 3px; }
.gstep-body > h3 { font-size: 16px; margin: 0 0 8px; }
.gstep-body p, .gstep-body ul { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.gstep-body ul { padding-left: 18px; }
.gstep-body li + li { margin-top: 3px; }
.gstep-body .confirm-box { margin-top: 4px; }
.dos-donts-grid h4 { font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.dos-donts-grid h4.do { color: var(--brand); }
.dos-donts-grid h4.dont { color: #c23030; }
.threshold-note { background: var(--accent-50); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 10px 14px; font-size: 14px; color: var(--ink); }
a.badge-period { text-decoration: none; }
a.badge-period:hover { filter: brightness(.95); text-decoration: underline; }
@media (max-width: 575.98px) {
  .gstep { flex-direction: column; gap: 8px; }
  .gstep::before { display: none; }
}
/* Assessment man-days (worked out from the site size) */
.mandays-hint strong { color: var(--brand, #0c2c4c); }
.mandays-done { display: inline-block; background: var(--brand-50); border: 1px solid #cfe3d5; border-radius: 999px; padding: .3rem .9rem; font-size: .95rem; }
