/* ==========================================================================
   Sapience Consulting - Registration Form
   Design tokens
   - Ink/paper/orange lifted directly from the source PDF (black "PART"
     bars, orange triangle mark) rather than invented from scratch.
   - Typographic stack aims for a precise, technical register appropriate
     to a compliance-heavy administrative form, with graceful fallback to
     robust system fonts (no external font requests - keeps the CSP tight
     and the page fast).
   ========================================================================== */
:root {
  --ink: #1A1A1A;
  --ink-soft: #33322C;
  --paper: #FAFAF8;
  --white: #FFFFFF;
  --line: #E3E1D9;
  --line-strong: #C9C6BA;
  --muted: #767469;
  --accent: #F2A93B;
  --accent-ink: #7A4B06;
  --success: #1E7B4D;
  --success-bg: #EAF5EF;
  --error: #C4362E;
  --error-bg: #FBEDEC;

  --font-display: 'Space Grotesk', 'Archivo Narrow', 'Avenir Next', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', 'Consolas', monospace;

  --radius: 4px;
  --radius-sm: 2px;
  --max-width: 760px;
  --transition: 140ms ease;
}

@media (prefers-reduced-motion: reduce) {
  :root { --transition: 0ms; }
  * { scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* -------------------------------------------------------------------- */
/* Header / hero                                                        */
/* -------------------------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: var(--white);
  padding: 28px 20px 26px;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brand__logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.admin-topbar .brand__logo { height: 19px; }
.login-card .brand__logo { height: 26px; margin-bottom: 2px; }
.login-logo { margin-bottom: 14px; }
.site-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 18px 0 6px;
}
.site-header p {
  margin: 0;
  color: #C9C6BA;
  font-size: 14px;
}
.header-back-link {
  display: inline-block;
  margin-top: 10px !important;
  color: var(--accent) !important;
  font-size: 13px;
  text-decoration: none;
}
.header-back-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------------- */
/* Progress rail - a genuine sequence (Part A through E), so lettered   */
/* markers encode real information here rather than decorate.           */
/* -------------------------------------------------------------------- */
.progress-rail {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
  overflow-x: auto;
}
.progress-rail a {
  flex: 1 1 0;
  min-width: 84px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--line);
  transition: border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
img.tri {
  width: 0.85em;
  height: auto;
  display: inline-block;
  vertical-align: -0.1em;
}
.progress-rail a .tri { margin-right: 4px; }
.progress-rail a:hover,
.progress-rail a.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* -------------------------------------------------------------------- */
/* Layout                                                                */
/* -------------------------------------------------------------------- */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 64px;
}

.intro-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.intro-note strong { color: var(--ink); }

/* -------------------------------------------------------------------- */
/* Form "Part" sections                                                 */
/* -------------------------------------------------------------------- */
.part {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
  scroll-margin-top: 16px;
}
.part__header {
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  border-radius: var(--radius) var(--radius) 0 0;
}
.part__header .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #C9C6BA;
  letter-spacing: 0.08em;
}
.part__header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.part__body { padding: 20px 18px 6px; }
.part__hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: -6px 0 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
}

.field { margin-bottom: 16px; }
.field--full { grid-column: 1 / -1; }

/* Searchable course combobox (register-individual.php / register-company.php) */
.combobox { position: relative; }
.combobox-list {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(20, 19, 15, 0.14);
  max-height: 300px;
  overflow-y: auto;
}
.combobox-list li[role="option"] {
  padding: 12px 12px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
}
.combobox-list li[role="option"]:hover,
.combobox-list li[role="option"][aria-selected="true"] {
  background: var(--paper);
}
.combobox-list .combobox-option__tgs { color: var(--muted); font-size: 12px; }
.combobox-list .combobox-empty { padding: 12px; color: var(--muted); font-size: 13.5px; cursor: default; }
.combobox-list mark { background: rgba(242, 169, 59, 0.35); color: inherit; border-radius: 2px; }

label, legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
legend { padding: 0; }
.optional-tag {
  text-transform: none;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

input[type=text], input[type=email], input[type=tel], input[type=date],
input[type=number], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { resize: vertical; min-height: 72px; }

input:focus-visible, select:focus-visible, textarea:focus-visible,
a:focus-visible, button:focus-visible {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.45);
}

input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] {
  border-color: var(--error);
  background: var(--error-bg);
}

.field-error {
  color: var(--error);
  font-size: 12.5px;
  margin-top: 5px;
}
.field-error::before { content: "! "; font-weight: 700; }

.field-note { color: var(--muted); font-size: 12px; margin-top: 5px; }

/* -------------------------------------------------------------------- */
/* Custom radio / checkbox - the triangle mark stands in for a tick     */
/* -------------------------------------------------------------------- */
.choice-row { display: flex; gap: 22px; flex-wrap: wrap; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  cursor: pointer;
}
.choice input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  display: grid;
  place-content: center;
  margin: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex: none;
}
.choice input[type=radio] { border-radius: 50%; }
.choice input::after {
  content: "\25B2";
  font-size: 10px;
  color: var(--white);
  transform: scale(0);
  transition: transform var(--transition);
}
.choice input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.choice input:checked::after { transform: scale(1); }
.choice input:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 169, 59, 0.45);
}

/* -------------------------------------------------------------------- */
/* Conditional reveal panels                                            */
/* -------------------------------------------------------------------- */
.reveal { display: none; margin-top: 14px; }
.reveal.is-open { display: block; }

/* -------------------------------------------------------------------- */
/* Fee estimate                                                         */
/* -------------------------------------------------------------------- */
.fee-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13.5px;
}
.fee-row span:first-child { color: var(--muted); }
.fee-row span:last-child { font-family: var(--font-mono); }
.fee-row.total {
  border-top: 1px solid var(--line-strong);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 15px;
}
.fee-panel__note { font-size: 11.5px; color: var(--muted); margin-top: 10px; }
/* Company form: one block per funding tier */
.fee-tier {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 8px;
}
.fee-tier__title { font-size: 13px; font-weight: 700; padding: 2px 0; }
.fee-tier .fee-row { padding: 3px 0 3px 14px; font-size: 13px; }

/* -------------------------------------------------------------------- */
/* Declaration / T&C                                                    */
/* -------------------------------------------------------------------- */
.tnc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.tnc summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.tnc ol {
  margin: 0;
  padding: 0 16px 16px 32px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.tnc li { margin-bottom: 10px; }

.tnc-visible {
  font-size: 13.5px;
  color: var(--ink-soft);
  padding-left: 20px;
  margin: 14px 0;
}
.tnc-visible li { margin-bottom: 8px; }

.declaration-text {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------------- */
/* Honeypot (bot trap) - hidden from sighted and assistive users alike  */
/* -------------------------------------------------------------------- */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* -------------------------------------------------------------------- */
/* Submit area                                                          */
/* -------------------------------------------------------------------- */
.submit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #000; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary .tri { margin-right: 8px; }
.submit-bar__note { font-size: 12px; color: var(--muted); max-width: 320px; }

/* -------------------------------------------------------------------- */
/* Alert banners (form-level errors)                                    */
/* -------------------------------------------------------------------- */
.alert {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.alert--error {
  background: var(--error-bg);
  border: 1px solid #EFC6C3;
  color: #7A211B;
}
.alert--error ul { margin: 8px 0 0; padding-left: 20px; }
.alert--success {
  background: var(--success-bg);
  border: 1px solid #B9DFC7;
  color: var(--success);
}

/* -------------------------------------------------------------------- */
/* Thank-you page                                                       */
/* -------------------------------------------------------------------- */
.confirm-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
}
.confirm-card .tri-large {
  width: 40px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}
.confirm-card h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 10px;
}
.confirm-card .ref {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.confirm-card .auto-redirect-note {
  color: var(--muted);
  font-size: 12.5px;
  margin: 22px 0 12px;
}
.confirm-card .btn-primary {
  margin-top: 4px;
}

footer.site-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  padding: 30px 20px 50px;
}

/* -------------------------------------------------------------------- */
/* Landing chooser (index.php)                                          */
/* -------------------------------------------------------------------- */
.landing-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 28px 0;
}
@media (max-width: 640px) {
  .landing-choices { grid-template-columns: 1fr; }
}
.landing-choice-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: border-color var(--transition), transform var(--transition);
}
.landing-choice-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.landing-choice-card .tri {
  width: 22px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.landing-choice-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
}
.landing-choice-card p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}
.landing-choice-card .cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

/* -------------------------------------------------------------------- */
/* Trainee cards (company registration - repeatable Part E rows)        */
/* -------------------------------------------------------------------- */
.trainee-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 4px;
  margin-bottom: 16px;
  background: var(--paper);
  position: relative;
}
.trainee-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.trainee-card__header h3 {
  font-family: var(--font-display);
  font-size: 14px;
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trainee-remove-btn {
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.trainee-remove-btn:hover { background: var(--error-bg); }
.add-trainee-btn {
  background: var(--white);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px;
  width: 100%;
  cursor: pointer;
  margin-bottom: 18px;
}
.add-trainee-btn:hover { border-color: var(--accent); }
.trainee-count-note { font-size: 12px; color: var(--muted); margin: -8px 0 16px; }

/* -------------------------------------------------------------------- */
/* Admin portal                                                         */
/* -------------------------------------------------------------------- */
.admin-body { background: var(--paper); min-height: 100vh; }
.admin-topbar {
  background: var(--ink);
  color: var(--white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-topbar .brand { color: var(--white); font-size: 16px; }
.admin-topbar nav { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-topbar nav a {
  color: #C9C6BA;
  text-decoration: none;
  font-size: 13.5px;
}
.admin-topbar nav a:hover, .admin-topbar nav a.is-active { color: var(--accent); }
.admin-topbar .who { font-size: 12.5px; color: #C9C6BA; }
.admin-topbar .who .role-badge {
  background: var(--accent);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 8px;
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  margin-left: 6px;
}
.admin-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.admin-main h1 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 6px;
}
.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  /* Lets a wide admin-table scroll within the card on a narrow screen
     instead of forcing the whole page to scroll horizontally - a
     no-op for cards that don't contain anything wide enough to need it. */
  overflow-x: auto;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 18px 0; }
.admin-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.admin-stat .num { font-family: var(--font-mono); font-size: 26px; font-weight: 700; }
.admin-stat .label { font-size: 12px; color: var(--muted); }

.admin-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--line-strong);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--paper); }
.admin-table a { text-decoration: none; font-weight: 600; }
.admin-table a:hover { text-decoration: underline; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge--individual { background: #EAF1F5; color: #24618A; }
.badge--company { background: #F3EAF5; color: #6A2B8A; }
.badge--super_admin { background: var(--ink); color: var(--accent); }
.badge--admin { background: var(--accent); color: var(--ink); }
.badge--account_manager { background: #EAF1F5; color: #24618A; }
.badge--customer { background: #F3EEF8; color: #5B3F86; }
.badge--user { background: var(--line); color: var(--ink-soft); }
.badge--active { background: var(--success-bg); color: var(--success); }
.badge--inactive { background: var(--error-bg); color: var(--error); }
.badge--pending { background: var(--line); color: var(--muted); }

.login-shell {
  max-width: 400px;
  margin: 60px auto;
  padding: 0 20px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.login-card h1 { font-family: var(--font-display); font-size: 20px; margin: 0 0 4px; }
.login-card p.sub { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.login-card .field { margin-bottom: 16px; }

.secret-display {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--accent);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  text-align: center;
  word-break: break-all;
  margin: 14px 0;
}
.recovery-codes {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--ink);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 14px 0;
}
.warning-banner {
  background: #FFF6E6;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  margin: 14px 0;
}
.btn-secondary {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-danger { color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error-bg); }
.btn-danger-solid {
  background: var(--error);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-danger-solid:hover { background: #9c2a24; }
.btn-danger-solid:active { transform: translateY(1px); }
.detail-grid { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; font-size: 13.5px; margin: 14px 0; }
.detail-grid dt { color: var(--muted); }
.detail-grid dd { margin: 0; }

/* -------------------------------------------------------------------- */
/* Enhancements: [hidden] always wins, info banner, info panel,         */
/* CSV import box, structured Terms and Conditions                      */
/* -------------------------------------------------------------------- */
/* Several components set their own display (flex etc.), which would
   otherwise override the HTML hidden attribute the funding/billing JS uses. */
[hidden] { display: none !important; }

.alert--info {
  background: #EEF4FB;
  border: 1px solid #C6D9EE;
  color: #1F4A78;
}

/* "How do I know if I'm an SME?" - native <details>, so it works without JS. */
.info-panel {
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
}
.info-panel summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.info-panel summary::-webkit-details-marker { display: none; }
.info-panel__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
.info-panel[open] summary { border-bottom: 1px solid var(--line); }
.info-panel__body { padding: 12px 16px 6px; font-size: 13px; color: var(--ink-soft); }
.info-panel__body ol { padding-left: 20px; margin: 8px 0; }
.info-panel__body li { margin-bottom: 6px; }
.info-panel__body p { margin: 8px 0; }

.import-box {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.import-box h3 { font-family: var(--font-display); font-size: 14px; margin: 0 0 6px; }
.import-box p { font-size: 13px; color: var(--ink-soft); margin: 0 0 10px; }
.import-box__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.import-box__actions input[type="file"] { font-size: 12.5px; max-width: 100%; }
.import-box__result { margin-top: 12px; }
.import-box__result .alert { margin-bottom: 0; }
.import-box__result .alert ul { max-height: 220px; overflow: auto; }

/* Structured T&Cs (numbered sections > numbered clauses > bullets) */
.tnc-body { padding: 0 16px 16px; font-size: 12.5px; color: var(--ink-soft); }
.tnc-version { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.tnc-heading { font-family: var(--font-display); font-size: 13.5px; color: var(--ink); margin: 16px 0 6px; }
.tnc-clause { display: flex; gap: 10px; margin: 0 0 8px; }
.tnc-no { flex: none; width: 2.6em; font-variant-numeric: tabular-nums; color: var(--muted); }
.tnc-text { flex: 1; }
.tnc-bullets { margin: -2px 0 8px calc(2.6em + 10px); padding-left: 18px; }
.tnc-bullets li { margin-bottom: 4px; }

/* "Enquire now" notice shown in place of the date list when a course has no upcoming sessions */
.enquire-box { margin-top: 6px; padding: 12px 14px; border: 1px solid var(--accent); background: #FFF8E1; border-radius: 6px; font-size: 14px; color: var(--ink); }
.enquire-box[hidden] { display: none; }
.enquire-box a { font-weight: 600; }
select[hidden] { display: none; }

/* Busy indicator for slow admin actions (data-busy forms) */
.busy-note { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 10px 12px; background: #FFF8E1; border: 1px solid var(--accent); border-radius: 6px; font-size: 13.5px; color: var(--ink); }
.busy-note[hidden] { display: none; }
.spinner { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sapience-spin 0.8s linear infinite; }
@keyframes sapience-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; border-top-color: var(--accent); border-right-color: var(--accent); } }
button.is-busy { opacity: 0.65; cursor: progress; pointer-events: none; }
