/* DreamIT Host — Geelong website briefs
   Colour tokens from the DreamIT Host design system. The typeface is Albert Sans
   (OFL), chosen to match Objektiv on dreamithost.com.au, not the brand web stack.
   No CDN dependencies: everything is served from this origin. */

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/albert-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Albert Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/albert-sans-italic-latin.woff2") format("woff2");
}

:root {
  --colour-blue: #266FFF;
  --colour-blue-dark: #1A5EE0;
  --colour-navy: #0A1E5A;
  --colour-navy-deep: #061440;
  --colour-light-blue: #5ABEFA;
  --colour-white: #FFFFFF;

  --colour-ink: #16233F;
  --colour-ink-muted: #56637D;
  --colour-hairline: #E2E8F2;
  --surface-soft: #F7F9FC;
  --surface-tint: #EEF4FF;
  --surface-sky: #E4F1FD;

  --accent-teal: #0A6B66;   --accent-teal-soft: #DCF3F0;
  --accent-amber: #8A5200;  --accent-amber-soft: #FFF1D6;
  --accent-indigo: #3A3AA6; --accent-indigo-soft: #ECECFF;

  --colour-danger: #B3261E;

  --font-heading: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 1.25rem;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(10, 30, 90, 0.04), 0 8px 24px -12px rgba(10, 30, 90, 0.14);
  --shadow-lift: 0 2px 4px rgba(10, 30, 90, 0.05), 0 18px 40px -18px rgba(38, 111, 255, 0.34);
  --shadow-button: 0 6px 18px -6px rgba(38, 111, 255, 0.55);
  --shadow-focus: 0 0 0 3px rgba(38, 111, 255, 0.15);

  --container-max: 1280px;
  --ls-display: -0.012em;
  --ls-caps: 0.14em;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--colour-ink);
  background: var(--colour-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--colour-navy);
  line-height: 1.2;
  letter-spacing: var(--ls-display);
  margin: 0 0 0.5em;
}

h1 { font-weight: 700; font-size: clamp(2rem, 5vw, 2.6rem); }
h2 { font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-weight: 600; font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--colour-blue); text-decoration: none; transition: color 200ms ease-out; }
a:hover { color: var(--colour-blue-dark); text-decoration: underline; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--colour-blue);
  outline-offset: 3px;
}

code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--surface-soft); padding: 0.125em 0.35em; border-radius: var(--radius-sm); }
hr.rule { border: 0; border-top: 1px solid var(--colour-hairline); margin: 1.25rem 0; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.narrow-container { max-width: 620px; }
.admin-container { max-width: 1100px; }

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

.muted { color: var(--colour-ink-muted); }
.eyebrow {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--ls-caps); color: var(--colour-blue-dark); margin: 0 0 0.75rem;
}
.req { color: var(--colour-danger); font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  min-height: 48px; padding: 12px 28px;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background 200ms ease-out, color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--colour-blue-dark); color: var(--colour-white); box-shadow: var(--shadow-button); }
.btn-primary:hover { background: var(--colour-navy); color: var(--colour-white); }
.btn-secondary {
  background: var(--colour-white); color: var(--colour-navy);
  border-color: var(--colour-hairline); box-shadow: var(--shadow-card);
}
.btn-secondary:hover { border-color: var(--colour-blue); color: var(--colour-blue-dark); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-lg { min-height: 54px; padding: 14px 34px; font-size: 1.0625rem; }
.inline-form { display: inline; }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header { background: var(--colour-white); border-bottom: 1px solid var(--colour-hairline); position: relative; z-index: 20; }
.header-main { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { display: block; width: 172px; height: auto; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; margin-right: 6px; }
.header-phone-label { font-size: 0.75rem; color: var(--colour-ink-muted); }
.header-phone-number { font-weight: 600; color: var(--colour-navy); }
.header-phone:hover .header-phone-number { color: var(--colour-blue-dark); }

.nav-toggle { display: none; }

/* The menu holds only the account actions and is shown on small screens
   behind the hamburger; the desktop bar carries everything directly. */
.site-nav { display: none; background: var(--colour-white); border-top: 1px solid var(--colour-hairline); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 14px 0 10px; }
.nav-mobile-actions .btn { width: 100%; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(90, 190, 250, 0.28), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(38, 111, 255, 0.35), transparent 62%),
    linear-gradient(135deg, var(--colour-navy) 0%, #12357f 52%, var(--colour-blue-dark) 100%);
  color: var(--colour-white);
  padding: 72px 0 84px;
}
.hero-compact { padding: 56px 0 64px; }
.hero-inner { max-width: 780px; }
.hero h1 { color: var(--colour-white); margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--colour-light-blue); }
.hero-sub { font-size: 1.125rem; color: rgba(255, 255, 255, 0.92); max-width: 640px; }
.hero .btn { margin-top: 8px; }

/* ── Form layout ──────────────────────────────────────────────────────── */

.brief { padding: 48px 0 72px; background: var(--surface-soft); }
.brief-container { max-width: 896px; }
.brief-intro { margin-bottom: 24px; }
.brief-intro h2 { margin-bottom: 0.25em; }

.card {
  background: var(--colour-white);
  border: 1px solid var(--colour-hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.form-section { margin-bottom: 24px; }
.section-intro { color: var(--colour-ink-muted); margin-bottom: 1.25rem; }

.alert { border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 24px; }
.alert h2 { font-size: 1.125rem; margin-bottom: 0.4em; }
.alert ul { margin: 0; padding-left: 1.2em; }
.alert-error { background: #FDF0EF; border: 1px solid #F3C6C1; color: #7A1D17; }
.alert-error a { color: #7A1D17; text-decoration: underline; }
.alert-info { background: var(--surface-tint); border: 1px solid #CFE0FF; color: var(--colour-navy); }
.alert-info p { margin: 0; }

.field-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.field label, .field legend { font-weight: 600; color: var(--colour-navy); padding: 0; }
fieldset.field { border: 0; padding: 0; }
.field-group legend { margin-bottom: 4px; }
.field-help { font-size: 0.875rem; color: var(--colour-ink-muted); margin: 0; }
.field-error { font-size: 0.875rem; color: var(--colour-danger); margin: 0; font-weight: 600; }

.input {
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--colour-hairline);
  border-radius: var(--radius-sm);
  background: var(--colour-white);
  color: var(--colour-ink);
  width: 100%;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}
.input:focus { border-color: var(--colour-blue); box-shadow: var(--shadow-focus); outline: none; }
textarea.input { min-height: 120px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--colour-danger); }

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 10px;
  font-weight: 400; color: var(--colour-ink); cursor: pointer;
}
.option input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--colour-blue-dark); flex: none; }
.option-consent { align-items: flex-start; }
.option-consent span { max-width: 70ch; }

/* Uploads */

.upload-block { margin-bottom: 18px; }
.upload-label { display: block; font-weight: 600; color: var(--colour-navy); margin-bottom: 4px; }
.upload-drop {
  border: 2px dashed #B9CBEA;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  padding: 20px;
  transition: border-color 200ms ease-out, background 200ms ease-out;
}
.upload-drop.is-dragging { border-color: var(--colour-blue); background: var(--surface-tint); }
.upload-input { display: block; width: 100%; font-size: 0.9375rem; }
.upload-hint { font-size: 0.875rem; color: var(--colour-ink-muted); margin: 8px 0 0; }
.upload-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9375rem; }
.upload-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; background: var(--colour-white); border: 1px solid var(--colour-hairline); border-radius: var(--radius-sm); }
.upload-lost { color: var(--colour-danger); font-weight: 600; margin-top: 8px; }

/* Consent and submit */

.form-consent h2 { margin-bottom: 0.5em; }
.form-submit { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.submit-note { font-size: 0.875rem; color: var(--colour-ink-muted); margin: 0; }

/* Honeypot — hidden from people, present for bots. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ── Success and error cards ──────────────────────────────────────────── */

.success-card, .error-card { max-width: 720px; margin: 0 auto; }
.success-reference { font-size: 1.0625rem; background: var(--surface-tint); border: 1px solid #CFE0FF; border-radius: var(--radius-sm); padding: 12px 16px; display: inline-block; }
.success-steps { padding-left: 1.2em; margin-bottom: 1.25rem; }
.success-steps li { margin-bottom: 0.4em; }
.success-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.error-status { font-family: var(--font-heading); font-weight: 700; font-size: 3rem; color: var(--colour-blue); margin: 0 0 0.2em; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { background: var(--colour-navy); color: rgba(255, 255, 255, 0.85); margin-top: 0; }
.footer-contact { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-contact-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; flex-wrap: wrap; }
.footer-contact-list { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-contact-list a { color: var(--colour-white); font-weight: 600; }
.footer-contact-list a:hover { color: var(--colour-light-blue); }
.footer-contact-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: var(--ls-caps); color: rgba(255, 255, 255, 0.6); }
.footer-contact-links { display: flex; gap: 18px; }
.footer-contact-links a { color: var(--colour-light-blue); font-weight: 600; }
.footer-contact-links a:hover { color: var(--colour-white); }

.footer-links { padding: 40px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-about img { display: block; margin-bottom: 16px; }
.footer-about p { font-size: 0.9375rem; color: rgba(255, 255, 255, 0.75); max-width: 44ch; }
.footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--colour-light-blue); margin-bottom: 0.75em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: rgba(255, 255, 255, 0.85); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--colour-light-blue); }

.footer-deep { background: var(--colour-navy-deep); }
.footer-deep-row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); flex-wrap: wrap; }
.footer-deep-row p { margin: 0; }

/* ── Admin ────────────────────────────────────────────────────────────── */

.admin { background: var(--surface-soft); }
.admin-section { padding: 36px 0 64px; }
.admin-tag {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--colour-blue-dark); background: var(--surface-tint);
  border: 1px solid #CFE0FF; border-radius: var(--radius-pill); padding: 5px 12px;
}
.admin-header .header-actions { gap: 10px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.admin-heading h1 { margin-bottom: 0.15em; }
.admin-sub { color: var(--colour-ink-muted); margin: 0; }
.admin-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back-link { margin-bottom: 8px; }

.admin-filters { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.field-inline { flex: 1 1 240px; }
.field-inline .input { min-width: 220px; }
.admin-filters .btn { flex: none; }

.status-tabs { list-style: none; display: flex; gap: 8px; margin: 0 0 20px; padding: 0; flex-wrap: wrap; }
.status-tabs a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--colour-hairline); background: var(--colour-white);
  color: var(--colour-navy); font-weight: 600; font-size: 0.9375rem;
}
.status-tabs a:hover { border-color: var(--colour-blue); text-decoration: none; }
.status-tabs a.active { background: var(--colour-navy); border-color: var(--colour-navy); color: var(--colour-white); }
.status-count { font-weight: 700; opacity: 0.75; }

.table-wrap { background: var(--colour-white); border: 1px solid var(--colour-hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--colour-hairline); vertical-align: top; }
.admin-table thead th { font-family: var(--font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--colour-ink-muted); background: var(--surface-soft); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: var(--surface-soft); }

.badge { display: inline-block; font-size: 0.8125rem; font-weight: 700; border-radius: var(--radius-pill); padding: 4px 12px; }
.badge-new { background: var(--surface-tint); color: var(--colour-blue-dark); }
.badge-in_progress { background: var(--accent-amber-soft); color: var(--accent-amber); }
.badge-done { background: var(--accent-teal-soft); color: var(--accent-teal); }
.badge-archived { background: var(--surface-soft); color: var(--colour-ink-muted); }

.pagination { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.pagination-info { color: var(--colour-ink-muted); font-size: 0.9375rem; }
.empty-card { text-align: center; color: var(--colour-ink-muted); }

.login-card { max-width: 460px; margin: 24px auto 0; }
.login-card h1 { margin-bottom: 0.3em; }
.login-card form { margin-top: 20px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.login-card .field { width: 100%; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.detail-answers h2 { margin-bottom: 0.5em; }
.answer-group { margin-bottom: 1.5rem; }
.answer-group h3 { font-size: 1.0625rem; color: var(--colour-blue-dark); margin-bottom: 0.6em; }
.answer-group dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.answer-group dt { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--colour-ink-muted); margin-top: 12px; }
.answer-group dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.detail-side { display: flex; flex-direction: column; gap: 24px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.stack-form h2 { margin-bottom: 0.1em; }
.stack-form .field { width: 100%; }
.stack-form .btn { flex: none; }

.files-card { margin-top: 24px; }
.file-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.file-item { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--colour-hairline); border-radius: var(--radius-md); padding: 12px; background: var(--colour-white); }
.file-thumb { flex: none; width: 96px; height: 96px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--colour-hairline); display: block; background: var(--surface-soft); }
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-doc { flex: none; width: 96px; height: 96px; border-radius: var(--radius-sm); border: 1px solid var(--colour-hairline); background: var(--surface-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--colour-ink-muted); }
.file-meta { min-width: 0; }
.file-name { font-weight: 600; margin: 0 0 2px; overflow-wrap: anywhere; }
.file-meta p { margin: 0 0 4px; }
.file-actions { display: flex; gap: 14px; font-weight: 600; font-size: 0.9375rem; }

.settings-list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 0.9375rem; }
.settings-list dt { color: var(--colour-ink-muted); }
.settings-list dd { margin: 0; overflow-wrap: anywhere; }

.admin-footer { border-top: 1px solid var(--colour-hairline); background: var(--colour-white); }
.admin-footer-row { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 0.875rem; color: var(--colour-ink-muted); flex-wrap: wrap; }
.admin-footer-row p { margin: 0; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (min-width: 720px) {
  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid > .field:not(.field-half),
  .field-grid > .field-group:not(.field-half) { grid-column: 1 / -1; }
  .field-grid > .field-half { grid-column: auto; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-columns { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .card { padding: 32px; }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

@media (max-width: 719px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--colour-hairline);
    border-radius: var(--radius-sm); background: var(--colour-white); cursor: pointer;
  }
  .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--colour-navy); position: relative;
  }
  .nav-toggle-lines::before { position: absolute; top: -6px; }
  .nav-toggle-lines::after { position: absolute; top: 6px; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .header-phone { display: none; }
  .site-logo img { width: 140px; }
  .header-actions { gap: 8px; }
  /* The account buttons move into the collapsible menu so the bar never
     clips on narrow screens. */
  .site-header:not(.admin-header) .header-actions > .btn { display: none; }

  /* Stacked table rows */
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr { border-bottom: 1px solid var(--colour-hairline); padding: 8px 0; }
  .admin-table td { border: 0; padding: 6px 16px; }
  .admin-table td::before {
    content: attr(data-label); display: block; font-size: 0.6875rem; text-transform: uppercase;
    letter-spacing: var(--ls-caps); color: var(--colour-ink-muted); margin-bottom: 2px;
  }
}

@media (max-width: 560px) {
  /* Settings stays reachable from the dashboard heading. */
  .admin-header .header-actions .btn-secondary { display: none; }
  .admin-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ── Landing page ─────────────────────────────────────────────────────── */

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn-hero-secondary {
  background: transparent; color: var(--colour-white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-hero-secondary:hover { background: var(--colour-white); color: var(--colour-navy); border-color: var(--colour-white); }
.hero-note { margin-top: 20px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.82); }

.landing-band { padding: 64px 0; }
.landing-band-soft { background: var(--surface-soft); }
.landing-band h2 { margin-bottom: 0.5em; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.step {
  background: var(--colour-white); border: 1px solid var(--colour-hairline);
  border-radius: var(--radius-card); padding: 28px; box-shadow: var(--shadow-card);
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  background: var(--surface-tint); color: var(--colour-blue-dark);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; margin-bottom: 14px;
}
.step h3 { margin-bottom: 0.35em; }
.step p { margin: 0; color: var(--colour-ink-muted); }

.landing-cards { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.landing-card h3 { font-size: 1.0625rem; margin-bottom: 0.35em; }
.landing-card p { margin: 0; color: var(--colour-ink-muted); }
.landing-card:hover { transform: translateY(-2px); }

.tick-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.tick-list li { position: relative; padding-left: 32px; }
/* Drawn with borders, not a glyph: the check mark is outside the latin font subset. */
.tick-list li::before {
  content: ""; position: absolute; left: 6px; top: 0.3em;
  width: 6px; height: 12px;
  border: solid var(--accent-teal); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.tick-list-tight { margin-top: 12px; }

.landing-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details {
  background: var(--colour-white); border: 1px solid var(--colour-hairline);
  border-radius: var(--radius-md); padding: 2px 20px;
}
.faq summary { cursor: pointer; font-weight: 600; color: var(--colour-navy); padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--colour-hairline); }
.faq p { margin: 14px 0; color: var(--colour-ink-muted); }

.cta-band {
  background: linear-gradient(135deg, var(--colour-navy) 0%, #12357f 60%, var(--colour-blue-dark) 100%);
  color: var(--colour-white); padding: 64px 0;
}
.cta-band h2 { color: var(--colour-white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 0; max-width: 60ch; }
.cta-band-inner { display: grid; gap: 28px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.cross-link-bar {
  background: var(--surface-tint); border: 1px solid #CFE0FF;
  border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px;
}
.cross-link-bar p { margin: 0; }

/* ── Booking ──────────────────────────────────────────────────────────── */

.booking-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.booking-side { display: flex; flex-direction: column; gap: 20px; }
.booking-side h2 { font-size: 1.125rem; margin-bottom: 0.4em; }
.booking-side p { margin-bottom: 0.75em; color: var(--colour-ink-muted); }
.booking-side .btn { margin-top: 4px; }

/* ── Admin tabs and booking badges ────────────────────────────────────── */

.admin-tabs { margin-bottom: 20px; border-bottom: 1px solid var(--colour-hairline); }
.admin-tabs ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.admin-tabs a {
  display: block; padding: 12px 2px; font-weight: 600; color: var(--colour-ink-muted);
  border-bottom: 3px solid transparent;
}
.admin-tabs a:hover { color: var(--colour-blue-dark); text-decoration: none; }
.admin-tabs a.active { color: var(--colour-navy); border-bottom-color: var(--colour-blue); }

.badge-confirmed { background: var(--accent-amber-soft); color: var(--accent-amber); }
.badge-completed { background: var(--accent-teal-soft); color: var(--accent-teal); }
.badge-cancelled { background: var(--surface-soft); color: var(--colour-ink-muted); }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; }
  .booking-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

@media (min-width: 960px) {
  .landing-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Space between stacked headings inside the booking form card */
.booking-layout .card h2:nth-of-type(2) { margin-top: 34px; }

/* Offer statement on the landing hero */
.hero-offer {
  margin-top: 18px;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9375rem;
}
.hero-offer strong { color: var(--colour-white); }

@media (min-width: 960px) {
  .landing-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ── VACC-style flow layer ────────────────────────────────────────────────
   Soft page background, card-per-step forms, large tappable choice cards,
   a dashed drop zone, decorative line art and the done-page celebration.
   Used by the landing page (.page-soft) and the brief, booking and done
   pages (.page-flow). DreamIT colours and Albert Sans are unchanged. */

:root {
  --surface-page: #F2F5FA;
  --line-input: #C6D2E6;
  --line-input-hover: #9DB3D9;
  --radius-control: 0.875rem;
  --radius-choice: 1rem;
  --ring: 0 0 0 4px rgba(38, 111, 255, 0.18);
}

body { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--colour-blue); outline-offset: 3px; }

/* Larger base type on the two forms, like the VACC wizard. */
html:has(> body.page-brief), html:has(> body.page-book) { font-size: 18px; }

.page-soft, .page-flow { background: var(--surface-page); }
.page-soft .card, .page-flow .card { border-color: transparent; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* Buttons */
.page-soft main .btn, .page-flow main .btn {
  border-radius: var(--radius-control); min-height: 3.25rem; padding: 0.8rem 1.5rem;
}
.page-soft main .btn-sm, .page-flow main .btn-sm { min-height: 2.75rem; padding: 0.55rem 1.1rem; }
.page-soft main .btn-secondary, .page-flow main .btn-secondary { border: 2px solid var(--line-input); box-shadow: none; }
.page-soft main .btn-secondary:hover, .page-flow main .btn-secondary:hover { border-color: var(--colour-blue); }
.page-flow main .btn-primary:active, .page-soft main .btn-primary:active { transform: translateY(1px); }

/* Preview banner (PREVIEW_BANNER) */
.preview-banner {
  position: relative; z-index: 21;
  background: var(--accent-amber-soft); color: var(--accent-amber);
  border-bottom: 1px solid #F0D49B; font-size: 0.9375rem; font-weight: 600; text-align: center;
}
.preview-banner p { margin: 0 auto; padding: 8px 20px; }

/* Icons */
.icon { display: block; flex: none; width: 1.25rem; height: 1.25rem; }
.icon-sm { width: 1rem; height: 1rem; }

/* Page column */
.flow-main { padding: 40px 0 56px; }
.flow-column { max-width: 760px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.flow-form { display: flex; flex-direction: column; gap: 20px; }
.flow-form .form-section { margin: 0; }
.flow-column > .alert { margin: 0; }

/* Intro card with the hero band */
.intro-card { padding: 0; overflow: hidden; }
.hero-band, .hero-landing {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(255, 255, 255, 0.16), transparent 60%),
    radial-gradient(700px 360px at 0% 0%, rgba(90, 190, 250, 0.24), transparent 62%),
    linear-gradient(135deg, var(--colour-navy) 0%, #12357f 55%, var(--colour-blue-dark) 100%);
  color: var(--colour-white);
}
.hero-band { padding: 32px 28px; }
.hero-band h1 { color: var(--colour-white); margin-bottom: 0.35em; font-size: clamp(1.75rem, 4.4vw, 2.4rem); }
.hero-band .eyebrow { color: var(--colour-light-blue); }
.hero-band .hero-sub { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 1.0625rem; }
.intro-body { padding: 24px 28px 28px; }
.intro-body > :last-child { margin-bottom: 0; }

.feature-chips { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-tint); border-radius: var(--radius-choice);
  padding: 14px 16px; color: var(--colour-navy); font-weight: 500; line-height: 1.3;
}
.chip-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--colour-white); color: var(--colour-blue-dark);
  box-shadow: 0 1px 2px rgba(10, 30, 90, 0.08);
}
.intro-offer {
  background: var(--surface-soft); border-left: 4px solid var(--colour-blue);
  border-radius: 0.5rem; padding: 12px 16px; font-size: 0.9375rem;
}
.intro-note { font-size: 0.9375rem; color: var(--colour-ink-muted); margin-bottom: 0.5em; }

/* Step cards */
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.step-head h2 { margin: 0; font-size: clamp(1.375rem, 3vw, 1.75rem); }
.step-head .eyebrow { margin: 0 0 2px; }
.step-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: var(--radius-control);
  background: var(--surface-tint); color: var(--colour-blue-dark);
}
.step-icon .icon { width: 1.5rem; height: 1.5rem; }
.step-card .section-intro { margin-top: 4px; }

/* Inputs */
.page-flow .input {
  border: 2px solid var(--line-input); border-radius: var(--radius-control);
  min-height: 3.25rem; padding: 0.75rem 1rem; font-size: 1rem; line-height: 1.4;
}
.page-flow .input:hover { border-color: var(--line-input-hover); }
.page-flow .input:focus { border-color: var(--colour-blue); box-shadow: var(--ring); outline: none; }
.page-flow .input[aria-invalid="true"] { border-color: var(--colour-danger); }

/* Choice cards: the native input stays in the label, focusable and operable. */
.choice-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.choice-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 3.5rem; padding: 14px 56px 14px 18px;
  background: var(--colour-white); border: 2px solid var(--line-input);
  border-radius: var(--radius-choice); box-shadow: var(--shadow-card);
  color: var(--colour-navy); font-weight: 600; line-height: 1.35;
  cursor: pointer; user-select: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease, transform 150ms ease;
}
/* .field label resets padding, so restate it with matching weight. */
.field .choice-card { padding: 14px 56px 14px 18px; }
.choice-card:hover { border-color: var(--line-input-hover); transform: translateY(-1px); }
.choice-card input {
  position: absolute; left: 18px; top: 50%; width: 1px; height: 1px; margin: 0;
  opacity: 0; pointer-events: none;
}
.choice-label { min-width: 0; overflow-wrap: anywhere; }
.choice-badge {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; border-radius: var(--radius-pill);
  border: 2px solid var(--line-input); background: var(--colour-white); color: transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.choice-badge .icon { width: 1rem; height: 1rem; stroke-width: 3; }
.choice-multi .choice-badge { border-radius: 0.5rem; }
.choice-card input:checked ~ .choice-badge { background: var(--colour-blue-dark); border-color: var(--colour-blue-dark); color: var(--colour-white); }
.choice-card:has(input:checked) { border-color: var(--colour-blue-dark); background: #F7FAFF; box-shadow: var(--shadow-lift); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--colour-blue); outline-offset: 3px; }
.choice-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: var(--surface-tint); color: var(--colour-blue-dark);
  transition: background 150ms ease, color 150ms ease;
}
.choice-card:has(input:checked) .choice-icon { background: var(--colour-blue-dark); color: var(--colour-white); }
fieldset[aria-invalid="true"] .choice-card { border-color: #E3A7A2; }
.option-consent.choice-card { align-items: flex-start; font-weight: 400; color: var(--colour-ink); }
.option-consent .choice-badge { top: 14px; transform: none; }
.field-consent { gap: 8px; }

/* Drop zone */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 11rem; padding: 28px 20px; text-align: center;
  border: 2px dashed #A9BEE3; border-radius: var(--radius-card); background: #F7FAFF; cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragging { border-color: var(--colour-blue); background: var(--surface-tint); }
.dropzone:has(input:focus-visible) { outline: 3px solid var(--colour-blue); outline-offset: 3px; }
.dropzone .upload-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem; margin-bottom: 8px; border-radius: var(--radius-pill);
  background: var(--colour-white); color: var(--colour-blue-dark); box-shadow: var(--shadow-card);
}
.dropzone-icon .icon { width: 1.75rem; height: 1.75rem; }
.dropzone-title { font-weight: 700; color: var(--colour-navy); font-size: 1.0625rem; }
.dropzone .upload-hint { margin: 0; }
.upload-block .field-help { margin-bottom: 8px; }
.upload-list li { border-radius: 0.625rem; padding: 8px 12px; }

/* Booking extras below the form */
.flow-aside { display: grid; grid-template-columns: 1fr; gap: 16px; }
.aside-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 0.5em; }
.aside-card p { color: var(--colour-ink-muted); margin-bottom: 0.75em; }
.aside-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.625rem;
  background: var(--surface-tint); color: var(--colour-blue-dark);
}

/* Need a hand? pill */
.call-pill-row { display: flex; justify-content: center; margin: 4px 0 0; }
.call-pill {
  display: inline-flex; align-items: center; gap: 12px; min-height: 3rem;
  padding: 8px 22px 8px 8px; border-radius: var(--radius-pill);
  background: var(--colour-navy); color: var(--colour-white); font-weight: 600;
  box-shadow: var(--shadow-card); text-align: left; max-width: 100%;
}
.call-pill:hover { background: #12357f; color: var(--colour-white); text-decoration: none; }
.call-pill-icon {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: var(--radius-pill);
  background: var(--colour-white); color: var(--colour-navy);
}

/* Done pages */
.page-flow .done-card { border-top: 8px solid var(--colour-blue-dark); }
.done-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4.5rem; height: 4.5rem; margin-bottom: 16px; border-radius: var(--radius-pill);
  background: var(--accent-teal-soft); color: var(--accent-teal);
}
.done-icon .icon { width: 2.5rem; height: 2.5rem; }
.done-card h1 { margin-bottom: 0.3em; }
.done-lead { font-size: 1.125rem; color: var(--colour-ink-muted); }
.done-reference {
  margin: 20px 0 28px; padding: 16px 20px; border: 2px solid #CFE0FF;
  border-radius: var(--radius-choice); background: var(--surface-tint);
}
.done-reference-label { margin: 0; font-weight: 600; color: var(--colour-navy); }
.done-reference-value { margin: 2px 0 4px; font-size: 1.75rem; letter-spacing: 0.04em; color: var(--colour-blue-dark); }
.done-reference-note { margin: 0; font-size: 0.9375rem; color: var(--colour-ink-muted); }
.done-steps { list-style: none; counter-reset: done-step; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 14px; }
.done-steps li { counter-increment: done-step; position: relative; min-height: 2.25rem; padding-left: 3rem; padding-top: 0.25rem; }
.done-steps li::before {
  content: counter(done-step); position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-pill);
  background: var(--surface-tint); color: var(--colour-blue-dark); font-weight: 700;
}
.done-step-title { font-weight: 700; color: var(--colour-navy); }
.done-more { color: var(--colour-ink-muted); }

/* Confetti canvas sits above everything but never blocks taps. */
.confetti-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* Landing page on the soft background */
.page-soft .landing-band-soft { background: rgba(255, 255, 255, 0.6); }
.page-soft .step { border-color: transparent; }
.page-soft .faq details { border: 2px solid var(--colour-hairline); border-radius: var(--radius-choice); }
.page-soft .landing-card { transition: transform 150ms ease, box-shadow 150ms ease; }
.page-soft .landing-card:hover { box-shadow: var(--shadow-lift); }
.site-footer { position: relative; }

/* Decorative backdrop: behind all content, never interactive. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: #4F6FAE; }
.backdrop-shape svg { display: block; width: 100%; height: 100%; }
.backdrop-shape { position: absolute; opacity: 0.1; }
.backdrop-road { position: absolute; left: -10%; width: 120%; height: 40px; opacity: 0.08; }
.backdrop-road-a { top: 38%; }
.backdrop-road-b { top: 78%; opacity: 0.06; }
.backdrop-road path { animation: backdrop-road 6s linear infinite; }
.backdrop-browser { left: 3%; top: 14%; width: 9rem; height: 9rem; rotate: -8deg; }
.backdrop-bollard { right: 5%; top: 20%; width: 8rem; height: 8rem; rotate: 6deg; }
.backdrop-cursor { left: 8%; bottom: 16%; width: 5rem; height: 5rem; rotate: -12deg; }
.backdrop-pencil { right: 10%; bottom: 12%; width: 6rem; height: 6rem; rotate: 14deg; }
.backdrop-swatch { left: 44%; top: 6%; width: 4.5rem; height: 4.5rem; rotate: -20deg; }
.backdrop-bollard-sm { right: 36%; bottom: 5%; width: 4rem; height: 4rem; rotate: -6deg; }

@keyframes backdrop-drift-a { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(18px, -26px, 0); } }
@keyframes backdrop-drift-b { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-24px, 18px, 0); } }
@keyframes backdrop-drift-c { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(14px, 22px, 0); } }
@keyframes backdrop-road { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -52; } }
.backdrop-drift-a { animation: backdrop-drift-a 26s ease-in-out infinite; }
.backdrop-drift-b { animation: backdrop-drift-b 32s ease-in-out infinite; animation-delay: -6s; }
.backdrop-drift-c { animation: backdrop-drift-c 24s ease-in-out infinite; animation-delay: -12s; }

@media (min-width: 560px) {
  .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-half .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .feature-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-aside > :first-child { grid-column: 1 / -1; }
  .hero-band { padding: 40px 40px 36px; }
  .intro-body { padding: 28px 40px 32px; }
  .page-flow .card:not(.intro-card) { padding: 36px 40px; }
}

@media (max-width: 719px) {
  .flow-main { padding: 24px 0 40px; }
  .flow-column { padding: 0 12px; }
  .page-flow .card:not(.intro-card) { padding: 22px 18px; }
  .hero-band { padding: 26px 20px; }
  .intro-body { padding: 20px; }
  .backdrop-swatch, .backdrop-bollard-sm, .backdrop-cursor { display: none; }
  .backdrop-browser { width: 5rem; height: 5rem; }
  .backdrop-bollard { width: 4.5rem; height: 4.5rem; }
  .backdrop-pencil { width: 4rem; height: 4rem; }
  .call-pill { font-size: 0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop *, .backdrop-road path { animation: none !important; }
  .choice-card:hover { transform: none; }
}

/* ── Wizard (public/js/wizard.js) ─────────────────────────────────────────
   Without JavaScript none of this applies: every step shows and the form
   posts as before. wizard-early.js hides later steps until the wizard runs. */

html.wizard-pending form[data-wizard] [data-step] ~ [data-step] { display: none; }
.page-flow [hidden] { display: none !important; }
.wizard-on .step-head .eyebrow { display: none; }
.wizard-heading:focus { outline: none; }

/* Step bar */
.wizard-bar { scroll-margin-top: 16px; }
.wizard-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wizard-bar-count {
  margin: 0; font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--colour-blue-dark); white-space: nowrap;
}
.wizard-bar-title { margin: 0; font-size: 0.875rem; color: var(--colour-ink-muted); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.wizard-bar-track {
  margin-top: 8px; height: 0.625rem; border-radius: var(--radius-pill); overflow: hidden;
  background: var(--colour-white); box-shadow: inset 0 1px 2px rgba(10, 30, 90, 0.12);
}
.wizard-bar-fill {
  width: 0; height: 100%; border-radius: var(--radius-pill); background: var(--colour-blue-dark);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wizard-bar-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 4px; }
.wizard-bar-item { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.wizard-bar-step {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 2.5rem; padding: 4px; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--colour-ink); font: inherit; font-size: 0.8125rem; font-weight: 500;
  text-align: left; cursor: pointer;
}
.wizard-bar-step:hover:not(:disabled) { background: var(--colour-white); }
.wizard-bar-step:disabled { cursor: default; color: #7C879C; }
.wizard-bar-step.is-current { color: var(--colour-blue-dark); font-weight: 700; }
.wizard-bar-dot {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: var(--radius-pill);
  background: var(--colour-white); color: #7C879C; font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 0 0 1px var(--line-input);
}
.wizard-bar-dot .icon { width: 0.875rem; height: 0.875rem; stroke-width: 3; }
.wizard-bar-step.is-done .wizard-bar-dot { background: var(--accent-teal); color: var(--colour-white); box-shadow: none; }
.wizard-bar-step.is-current .wizard-bar-dot { background: var(--colour-blue-dark); color: var(--colour-white); box-shadow: none; }
.wizard-bar-name { min-width: 0; line-height: 1.2; }
.wizard-bar-short .wizard-bar-step { justify-content: flex-start; padding: 6px 8px; }

/* With many steps the names do not fit the column: show numbered dots and
   the current title above. The names stay available to screen readers. */
.wizard-bar-long .wizard-bar-name {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.wizard-bar-long .wizard-bar-dot { width: 1.75rem; height: 1.75rem; font-size: 0.8125rem; }

/* Step entrance */
@keyframes wizard-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-card.wizard-enter { animation: wizard-enter 240ms ease-out; }

/* Step-level error box */
.wizard-errors { margin: 4px 0 20px; }
.wizard-errors h3 { font-size: 1.0625rem; margin-bottom: 0.4em; }
.wizard-errors:focus { outline: 3px solid var(--colour-danger); outline-offset: 3px; }
.wizard-on .field-error { margin-top: 2px; }

/* Back / Continue */
.wizard-nav, .wizard-on .form-submit.wizard-submit {
  display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.wizard-nav { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--colour-hairline); }
.wizard-nav .btn, .wizard-submit .btn { display: inline-flex; align-items: center; gap: 10px; }
.wizard-nav .wizard-next { margin-left: auto; }
.wizard-submit .btn-primary { margin-left: auto; }
.wizard-submit .submit-note { flex-basis: 100%; text-align: center; }
.wizard-on .form-submit.wizard-submit { margin-top: 24px; }

/* Check and send */
.review-list { display: grid; gap: 14px; margin: 8px 0 24px; }
.review-card { border: 2px solid var(--colour-hairline); border-radius: var(--radius-choice); padding: 18px 20px; background: var(--colour-white); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-head h3 { margin: 0; font-size: 1.0625rem; min-width: 0; overflow-wrap: anywhere; }
.review-change {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 2.75rem; padding: 6px 10px;
  border: 0; border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 700; color: var(--colour-blue-dark);
}
.review-change:hover { background: var(--surface-tint); }
.review-rows { margin: 10px 0 0; display: grid; grid-template-columns: 1fr; gap: 2px 20px; }
.review-rows dt { font-weight: 600; color: var(--colour-navy); font-size: 0.9375rem; margin-top: 8px; }
.review-rows dd { margin: 0; color: var(--colour-ink-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-rows dd.review-empty { color: #7C879C; font-style: italic; }

@media (min-width: 720px) {
  .review-rows { grid-template-columns: minmax(9rem, 14rem) 1fr; }
  .review-rows dt, .review-rows dd { margin-top: 8px; }
}

/* Restored-draft notice */
.page-flow .card.wizard-notice { padding: 18px 20px; border-left: 6px solid var(--colour-blue-dark); }
.wizard-notice p { margin: 0 0 4px; }
.wizard-notice-lead { font-weight: 700; color: var(--colour-navy); }
.wizard-notice-hint { color: var(--colour-ink-muted); font-size: 0.9375rem; }
.wizard-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.wizard-link {
  min-height: 2.75rem; padding: 6px 4px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.9375rem; font-weight: 600; color: var(--colour-blue-dark); text-decoration: underline;
}

@media (max-width: 559px) {
  .wizard-nav .btn, .wizard-submit .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .step-card.wizard-enter { animation: none; }
  .wizard-bar-fill { transition: none; }
}

/* Saved-on-device note under the step navigation (wizard mode only) */
.wizard-save-note { margin: 14px 0 0; text-align: center; font-size: 0.8125rem; color: var(--colour-ink-muted); }
