/* VES Admissions — colours restricted to the supplied palette. */
:root {
  --navy-900: #02243e;
  --navy-800: #013359;
  --navy-700: #004275;
  --navy-600: #01518e;
  --navy-500: #1972b6;
  --ink-950: #101c35;
  --ink-800: #1d3556;
  --ink-300: #91a0c4;
  --sky-300: #7fb5ea;
  --primary: #003366;
  --primary-hover: #004275;
  --danger: #dc3545;
  --orange: #f48020;
  --amber: #f9a11c;
  --brand-blue: #097bc3;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --muted-2: #7e828a;
  --surface: #ffffff;
  --bg: #f4f5f7;
  --border: #e5e7eb;
  --header-bg: #f1f7fc;
  --accent: #f59e0b;

  /* Tints of palette colours for soft backgrounds */
  --primary-soft: rgba(3, 103, 180, 0.08);
  --primary-soft-2: rgba(3, 103, 180, 0.14);
  --danger-soft: rgba(220, 53, 69, 0.08);
  --amber-soft: rgba(249, 161, 28, 0.12);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 28, 53, 0.04), 0 8px 24px rgba(16, 28, 53, 0.06);

  --bs-primary: var(--primary);
  --bs-primary-rgb: 3, 103, 180;
  --bs-danger: var(--danger);
  --bs-danger-rgb: 220, 53, 69;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--border);
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: 3, 103, 180;
  --bs-link-hover-color: var(--primary-hover);
  --bs-link-hover-color-rgb: 0, 66, 117;
  --bs-font-sans-serif:
    "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 15px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--bs-font-sans-serif);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Icons are Bootstrap Icons: <i class="bi bi-NAME icon i-SIZE"></i>. Browse names at https://icons.getbootstrap.com */
.icon {
  flex-shrink: 0;
  vertical-align: middle;
  font-size: 1.25rem;
  line-height: 1;
}
.icon.i-16 { font-size: 16px; }
.icon.i-18 { font-size: 18px; }
.icon.i-20 { font-size: 20px; }
.icon.i-22 { font-size: 22px; }
.icon.i-28 { font-size: 28px; }

/* ---------- Buttons & forms ---------- */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.8rem 1.5rem;
}
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--navy-800);
  --bs-btn-active-border-color: var(--navy-800);
  --bs-btn-disabled-bg: var(--primary);
  --bs-btn-disabled-border-color: var(--primary);
}
.btn-danger {
  --bs-btn-bg: var(--danger);
  --bs-btn-border-color: var(--danger);
  --bs-btn-hover-bg: #c22d3c;
  --bs-btn-hover-border-color: #c22d3c;
}
.btn-outline-primary {
  --bs-btn-color: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-hover);
}
.btn-light {
  --bs-btn-bg: var(--surface);
  --bs-btn-border-color: var(--border);
  --bs-btn-color: var(--text-2);
  --bs-btn-hover-bg: var(--bg);
  --bs-btn-hover-border-color: var(--border);
}
.btn-link {
  font-weight: 600;
  text-decoration: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-label .req {
  color: var(--danger);
  margin-left: 2px;
}
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  padding: 0.6rem 0.85rem;
  color: var(--text);
  background-color: var(--surface);
}
.form-control::placeholder {
  color: var(--muted-2);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem var(--primary-soft-2);
  background-color: var(--surface);
}

/* Browser autofill paints inputs yellow/blue; repaint with a very subtle blue tint and keep normal text colour.
   Autofill backgrounds can't be overridden directly, so an inset shadow covers them. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px #f5f9fd inset;
  box-shadow: 0 0 0 1000px #f5f9fd inset;
  transition: background-color 600000s 0s;
}
input:-webkit-autofill:focus {
  -webkit-box-shadow:
    0 0 0 1000px #f5f9fd inset,
    0 0 0 0.2rem var(--primary-soft-2);
  box-shadow:
    0 0 0 1000px #f5f9fd inset,
    0 0 0 0.2rem var(--primary-soft-2);
}
input:autofill {
  background-color: #f5f9fd;
}
.form-control[readonly] {
  background-color: var(--bg);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-text {
  color: var(--muted);
}
.input-icon {
  position: relative;
}
.input-icon > .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.input-icon > .form-control,
.input-icon > .form-select {
  padding-left: 2.6rem;
}
.field-error,
.field-validation-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: block;
}
.is-invalid {
  border-color: var(--danger) !important;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
}
.choice input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  flex: none;
  accent-color: var(--primary);
  cursor: pointer;
}
.choice span {
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.choice input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.choice-stack {
  display: grid;
  gap: 0.5rem;
}

.alert {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.alert-info {
  background: var(--primary-soft);
  border-color: var(--primary-soft-2);
  color: var(--navy-700);
}
.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(220, 53, 69, 0.2);
  color: #a52834;
}
.alert-success {
  background: var(--primary-soft);
  border-color: var(--primary-soft-2);
  color: var(--navy-700);
}
.alert-warning {
  background: var(--amber-soft);
  border-color: rgba(249, 161, 28, 0.3);
  color: #7a4a06;
}
.alert > .icon {
  margin-top: 2px;
}

/* ---------- Header Public ----------- */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

/* TOP CONTACT BAR */
.ves-topbar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  padding: 9px 0;
}

.ves-topbar a {
  color: #e8f1fa;
  text-decoration: none;
  transition: color .2s;
}

.ves-topbar a:hover {
  color: var(--accent);
}

.ves-topbar i {
  color: var(--accent);
  font-size: 15px;
  margin-right: 5px;
}

/* MAIN HEADER */
.ves-header {
  background: var(--surface);
  min-height: 130px;
  display: flex;
  align-items: center;
}

/* LOGO AND BRAND */
.ves-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #111;
  gap: 12px;
}

.ves-logo {
  width: 70px;
  height: 118px;
  object-fit: contain;
  flex-shrink: 0;
}

.ves-brand-name {
  font-family: 'Roboto Slab', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  color: #101820;
  margin: 0;
}

.ves-brand-subtitle {
  font-family: 'Roboto Slab', serif;
  font-size: 13px;
  color: #343a40;
  margin: 0;
}

/* NAVIGATION */
.ves-navbar {
  padding: 0;
}

.ves-navbar .navbar-nav {
  gap: 5px;
}

.ves-navbar .nav-link {
  position: relative;
  color: #101820;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
  
}

.ves-navbar .dropdown-toggle::after {
  vertical-align: middle;
  margin-left: 5px;
}

.ves-navbar .dropdown-menu {
  border: 0;
  border-radius: 5px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  padding: 8px;
  margin-top: 10px;

}

.ves-navbar .nav-item {
  font-size: 14px;
  font-weight: 400;
  border-radius: 4px;
}

.ves-navbar .nav-item:hover {
  color: var(--brand-blue);
}
.ves-navbar .dropdown-menu .nav-item .nav-link
{
  font-weight: 400 !important;
}
/* SIGNED-IN USER (admin / school pages) */
.ves-header .header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.35rem 0.4rem 0.35rem 0.9rem;
  background: var(--header-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.ves-header .header-user form {
  margin: 0;
}
.ves-header .header-user .who {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #101820;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.ves-header .header-user .who .icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
}
.ves-header .header-user .sep {
  width: 1px;
  height: 24px;
  background: var(--border);
}
.ves-header .header-user .logout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.ves-header .header-user .logout:hover {
  background: var(--primary);
  color: #fff;
}
.ves-header .header-user .logout:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}
.ves-header .header-user .logout .icon {
  font-size: 16px;
}
@media (max-width: 575.98px) {
  .ves-header .header-user {
    margin-top: 0.75rem;
    margin-left: 0;
  }
}

/* MOBILE */
.ves-toggler {
  border: 0;
  font-size: 26px;
  color: var(--primary);
  padding: 5px;
}

.ves-toggler:focus {
  box-shadow: none;
}

@media (max-width: 1199.98px) {
  .ves-navbar .nav-link {
      font-size: 14px;
      padding-left: 7px !important;
      padding-right: 7px !important;
  }

  .ves-brand-name {
      font-size: 17px;
  }
}

@media (max-width: 991.98px) {

  .ves-header {
      min-height: auto;
      padding: 10px 0;
  }

  .ves-logo {
      width: 55px;
      height: 75px;
  }

  .ves-brand-name {
      font-size: 17px;
  }

  .ves-navbar {
      padding-top: 12px;
  }

  .ves-navbar .navbar-nav {
      gap: 0;
  }

  .ves-navbar .nav-link {
      border-bottom: 1px solid #e1e9f0;
  }

  .ves-navbar .nav-link.active::after {
      display: none;
  }

  .ves-navbar .nav-link.active {
      color: #c91c22;
  }

  .ves-navbar .dropdown-menu {
      box-shadow: none;
      background: #eaf2f9;
      margin-top: 0;
  }
}

@media (max-width: 575.98px) {

  .ves-topbar {
      font-size: 11px;
      padding: 7px 0;
  }

  .ves-topbar .contact-location {
      display: none;
  }

  .ves-brand-name {
      font-size: 15px;
  }

  .ves-brand-subtitle {
      font-size: 11px;
  }
}

.cms-sec-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
}

/* ---------- Header (public + admin) ---------- */
.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 40%,
    rgba(3, 103, 180, 0.05) 100%
  );
  border-bottom: 1px solid var(--border);
}
.site-header .waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.site-header .brand img {
  height: 78px;
  width: auto;
}
.site-header .brand .divider {
  width: 2px;
  align-self: stretch;
  margin: 0.6rem 0;
  background: var(--navy-700);
  opacity: 0.5;
  border-radius: 2px;
}
.site-header .title {
  display: block;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.site-header .title small {
  font-size: 0.65em;
  font-weight: 700;
  color: var(--navy-700);
}
.site-header .address {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-2);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
}
.site-header .sprout {
  width: 52px;
  height: 58px;
  flex-shrink: 0;
  margin-right: 1rem;
}
.site-header .header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 4px 16px rgba(2, 36, 62, 0.1);
}
.site-header .header-user form {
  margin: 0;
}
.site-header .header-user .who,
.site-header .header-user .logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy-800);
  font-weight: 700;
  font-size: 1.1rem;
}
.site-header .header-user .sep {
  width: 1px;
  height: 30px;
  background: var(--border);
}
.site-header .header-user .logout {
  border: 0;
  background: transparent;
  padding: 0.2rem 0.25rem;
  border-radius: 8px;
  cursor: pointer;
}
.site-header .header-user .logout:hover {
  color: var(--primary);
}
.site-header .header-user .logout:focus-visible {
  outline: 2px solid var(--primary-soft-2);
  outline-offset: 2px;
}
@media (max-width: 767px) {
  .site-header .sprout {
    display: none;
  }
  .site-header .header-inner {
    flex-wrap: wrap;
  }
  .site-header .header-user {
    padding-bottom: 0.9rem;
  }
}
@media (max-width: 575px) {
  .site-header .brand img {
    height: 56px;
  }
  .site-header .brand {
    gap: 0.8rem;
  }
}

.page-heading {
  padding-left: 1rem;
  margin: 1.75rem 0 1.5rem;
}
.page-heading h2 {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
 	color: color-mix(in srgb, var(--brand-blue)  8%, white);
  margin: 0;
  letter-spacing: -0.01em;
}
.page-heading p {
 	color: color-mix(in srgb, var(--brand-blue)  8%, white);
  font-size: 1.1rem;
  margin: 0.2rem auto;
  text-align:center;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition:
    background 0.15s,
    color 0.15s;
}
.tabs a .icon {
  color: var(--navy-700);
}
.tabs a:hover {
  background: var(--primary-soft);
}
.tabs a.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-bottom-color: var(--primary);
}
.tabs a.active .icon {
  color: var(--primary);
}

main {
  flex: 1;
}

.site-footer {
  margin-top: 3rem;
  background: linear-gradient(
    90deg,
    var(--navy-900),
    var(--navy-700) 60%,
    var(--navy-600)
  );
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  padding: 1.4rem 1rem;
  font-size: 0.9rem;
}

/* ---------- Cards ---------- */
.panel {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.panel + .panel {
  margin-top: 1.25rem;
}
.panel-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.panel-head .badge-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.panel-head h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}
.panel-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.narrow {
  max-width: 640px;
  margin-inline: auto;
}
.medium {
  max-width: 900px;
  margin-inline: auto;
}

/* ---------- Tables ---------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.data-table thead th {
  background: rgba(3, 103, 180, 0.07);
  color: var(--navy-800);
  font-weight: 700;
  padding: 0.9rem 1rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  border-bottom: 2px solid rgba(3, 103, 180, 0.18);
}
.data-table thead th:last-child {
  border-right: 0;
}
.data-table thead th .icon {
  margin-right: 0.45rem;
  color: var(--primary);
}
.data-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text-2);
}
.data-table td:last-child {
  border-right: 0;
}
.data-table tbody tr:hover td {
  background: rgba(3, 103, 180, 0.03);
}
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}
.text-center-col {
  text-align: center;
}

.school-table tr.selectable {
  cursor: pointer;
}
.school-table tr.selected td {
  background: var(--primary-soft) !important;
  color: var(--text);
  font-weight: 600;
}
.school-table tr.disabled td {
  color: var(--muted-2);
  cursor: not-allowed;
}
.school-table .radio-col {
  width: 64px;
  text-align: center;
}
.school-table input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---------- Wizard ---------- */
.wizard {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .wizard {
    grid-template-columns: 260px 1fr;
    align-items: start;
  }
}
/* The step list is hidden for now but kept in the markup (wizard.js still updates it). Remove this rule and the
   .wizard override below to show it again. */
.stepper {
  display: none !important;
}
.wizard {
  grid-template-columns: minmax(0, 1fr) !important;
}
.stepper {
  list-style: none;
  margin: 0;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
}
@media (min-width: 992px) {
  .stepper {
    flex-direction: column;
    position: sticky;
    top: 1rem;
  }
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.92rem;
}
.stepper li .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  background: var(--surface);
  flex-shrink: 0;
}
.stepper li.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.stepper li.active .num {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.stepper li.done {
  color: var(--text-2);
  cursor: pointer;
}
.stepper li.done .num {
  border-color: var(--primary);
  color: var(--primary);
}
.stepper li[hidden] {
  display: none;
}
@media (max-width: 991px) {
  .stepper li:not(.active) .label {
    display: none;
  }
}

.wizard-step[hidden] {
  display: none;
}
.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}
.step-sub {
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.question {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.subsection {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
  background: rgba(244, 245, 247, 0.5);
}
.procedure-html {
  color: var(--text-2);
  line-height: 1.65;
}
.procedure-html, .procedure-html * {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.procedure-html :is(ol, ul) {
  padding-left: 1.25rem;
}

.parents-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 992px) {
  .parents-grid {
    grid-template-columns: 180px repeat(3, 1fr);
    align-items: start;
  }
  .parents-grid .head {
    font-weight: 700;
    color: var(--navy-700);
  }
}
.parents-grid .row-label {
  font-weight: 600;
  color: var(--text-2);
  font-size: 0.9rem;
  padding-top: 0.6rem;
}
@media (max-width: 991px) {
  .parents-grid .head,
  .parents-grid .row-label {
    display: none;
  }
  .parents-grid .cell::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: var(--text-2);
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
  }
}

.upload-box {
  border: 1.5px dashed var(--ink-300);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--surface);
}
.upload-box.has-error {
  border-color: var(--danger);
}
.upload-files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.upload-files:empty {
  display: none;
}
.upload-thumb {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg);
}
.upload-thumb a { display:block; width:100%; height:100%; }
.upload-thumb a.no-preview { display:flex; align-items:center; justify-content:center; padding:.5rem; text-align:center; font-size:.8rem; color:var(--text); text-decoration:none; }
.upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: rgba(16, 28, 53, 0.75);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
}
.upload-status {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.review-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.review-section h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--primary-soft);
  color: var(--navy-700);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-section dl {
  display: grid;
  grid-template-columns: minmax(140px, 35%) 1fr;
  margin: 0;
}
.review-section dt,
.review-section dd {
  padding: 0.55rem 1rem;
  border-top: 1px solid var(--border);
  margin: 0;
}
.review-section dt {
  color: var(--muted);
  font-weight: 500;
}
.review-section dd {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}
.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem;
}
.review-images figure {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.review-images img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
  margin-bottom: 0.3rem;
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--amber-soft);
  border: 1px solid rgba(249, 161, 28, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0;
  margin-bottom: 1.25rem;
  color: #7a4a06;
}
.marquee > div {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 28s linear infinite;
}
.marquee:hover > div {
  animation-play-state: paused;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee > div {
    animation: none;
    padding-left: 1rem;
    white-space: normal;
  }
}

/* ---------- Result & acknowledgement ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
}
.status-pill.selected {
  background: var(--primary-soft);
  color: var(--primary);
}
.status-pill.not-selected {
  background: var(--danger-soft);
  color: var(--danger);
}
.status-pill.neutral {
  background: var(--bg);
  color: var(--text-2);
}
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.credential {
  border: 1px solid var(--primary-soft-2);
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.credential span {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
}
.credential strong {
  font-size: 1.6rem;
  color: var(--navy-800);
  letter-spacing: 0.04em;
}
.or-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin: 1rem 0;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

@media print {
  .site-header .waves,
  .site-header .sprout,
  .tabs,
  .site-footer,
  .no-print {
    display: none !important;
  }
  .panel {
    box-shadow: none;
    border: 0;
    padding: 0;
  }
}


/* ---------- No horizontal page scroll ---------- */
html {
  overflow-x: hidden;
}
body {
  max-width: 100%;
  overflow-x: clip;
}
img, svg, video, canvas, iframe {
  max-width: 100%;
}
main, .container, .panel, .wizard > *, .ves-navbar, .ves-brand > div {
  min-width: 0;
}
.panel, .alert, .form-text, .data-table td, .step-title {
  overflow-wrap: anywhere;
}
.ves-topbar .container > .d-flex {
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}
