/* ==========================================================================
   IFDA Career Counsellor Kit — Design System v3
   --------------------------------------------------------------------------
   UI / UX ONLY. No markup, script, workflow, field name, API call or
   calculation is affected by this file. Every selector emitted by
   index.html, counsellor.html, script.js, counsellor.js and ui-effects.js
   is styled here.

   Palette : Deep Teal Academy  ·  teal #0E6E63 · gold #C08A2E · slate ink
   Fonts   : Plus Jakarta Sans (display) · Inter (body)
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
/* --- Brand ------------------------------------------------------------ */
--teal-900: #0A2540;
--teal-800: #0D3557;
--teal-700: #144A75;
--teal-600: #1D63A3;
--teal-500: #2878C8;
--teal-400: #4A95D6;
--teal-100: #DCEBFA;
--teal-50: #EFF6FD;

--gold-700: #9A6C1C;
--gold-600: #C08A2E;
--gold-500: #D8A845;
--gold-200: #F2DFB6;
--gold-50: #FBF4E6;

/* --- Ink & surfaces --------------------------------------------------- */
--ink: #0F1F2E;
--ink-2: #2F4A5F;
--ink-3: #6B8598;
--ink-4: #94A8B8;

--surface: #FFFFFF;
--surface-2: #F8FBFF;
--surface-3: #F1F6FC;
--page: #EAF2FB;

--line: #D9E6F2;
--line-2: #C7D9E8;

/* --- Status ----------------------------------------------------------- */
--ok: #1F7A5A;
--ok-bg: #E8F6F0;
--warn: #B4791B;
--warn-bg: #FBF1DE;
--danger: #C23B33;
--danger-bg: #FBEDEC;

/* --- Shape ------------------------------------------------------------ */
--r-xs: 8px;
--r-sm: 10px;
--r-md: 14px;
--r-lg: 20px;
--r-xl: 26px;
--r-pill: 999px;

/* --- Elevation -------------------------------------------------------- */
--sh-xs: 0 1px 2px rgba(15, 31, 46, .05);
--sh-sm: 0 1px 2px rgba(15, 31, 46, .05), 0 6px 16px -10px rgba(15, 31, 46, .22);
--sh-md: 0 2px 4px rgba(15, 31, 46, .05), 0 16px 34px -18px rgba(15, 31, 46, .28);
--sh-lg: 0 6px 14px rgba(15, 31, 46, .07), 0 28px 60px -26px rgba(15, 31, 46, .38);
--sh-glow: 0 14px 30px -14px rgba(29, 99, 163, .55);
--ring: 0 0 0 3px rgba(29, 99, 163, .18);

/* --- Type ------------------------------------------------------------- */
--font-display: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
--font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

/* --- Motion ----------------------------------------------------------- */
--ease: cubic-bezier(.22, .61, .36, 1);
--ease-out: cubic-bezier(.16, 1, .3, 1);
--spring: cubic-bezier(.34, 1.4, .64, 1);
--t-fast: .16s;
--t: .28s;
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.58;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    radial-gradient(1100px 520px at 88% -12%, rgba(14, 110, 99, .10), transparent 62%),
    radial-gradient(760px 420px at 4% 102%, rgba(192, 138, 46, .09), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -.015em;
  line-height: 1.25;
}

p { margin: 0; }
img { max-width: 100%; }
a { color: var(--teal-600); }

::selection {
  background: rgba(192, 138, 46, .30);
  color: var(--ink);
}

/* Restrained scrollbars in every scroll region */
.course-grid,
.course-select-panel,
.enquiry-list > div,
.journey {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.course-grid::-webkit-scrollbar,
.course-select-panel::-webkit-scrollbar,
.enquiry-list > div::-webkit-scrollbar,
.journey::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.course-grid::-webkit-scrollbar-thumb,
.course-select-panel::-webkit-scrollbar-thumb,
.enquiry-list > div::-webkit-scrollbar-thumb,
.journey::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ==========================================================================
   3. KEYFRAMES
   ========================================================================== */

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px) scale(.995); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes check-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes soft-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 168, 69, .55); } 70% { box-shadow: 0 0 0 10px rgba(216, 168, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(216, 168, 69, 0); } }
@keyframes shimmer { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@keyframes blob-drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(14px, -18px, 0) scale(1.07); } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes float-soft-alt { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-4px) rotate(-2deg); } }
@keyframes pen-write { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 35% { transform: translate(6px, 2px) rotate(3deg); } 70% { transform: translate(-3px, -1px) rotate(-2deg); } }
@keyframes draw-line { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes steam-rise { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-9px); } }
@keyframes road-run { to { stroke-dashoffset: -36; } }
@keyframes flag-wave { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.82); } }
@keyframes ripple-out { to { transform: scale(2.6); opacity: 0; } }
@keyframes logo-sheen { 0% { transform: translateX(-140%) skewX(-18deg); } 60% { transform: translateX(320%) skewX(-18deg); } 100% { transform: translateX(320%) skewX(-18deg); } }
@keyframes msg-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Animatable gauge value (progressive enhancement) */
@property --score {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

/* ==========================================================================
   4. SCROLL REVEAL + RIPPLE  (driven by ui-effects.js)
   ========================================================================== */

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

.ui-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transform: scale(0);
  opacity: .8;
  pointer-events: none;
  animation: ripple-out .6s var(--ease-out) forwards;
}

.clear-btn .ui-ripple,
.back-btn .ui-ripple,
.ghost-link .ui-ripple,
.enquiry-item .ui-ripple {
  background: rgba(14, 110, 99, .18);
}

/* ==========================================================================
   5. BUTTON FOUNDATION
   ========================================================================== */

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  position: relative;   /* ripple anchor */
  overflow: hidden;     /* ripple clip   */
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  filter: saturate(.6);
}

/* Shared "solid action" look for every real action button */
.wizard-btn,
.link-button,
.actions button,
.ai-actions button {
  --btn-bg: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--t) var(--spring),
    box-shadow var(--t) var(--ease),
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.wizard-btn::after,
.link-button:not(.ghost-link)::after,
.actions button::after,
.ai-actions button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform .65s var(--ease-out);
  pointer-events: none;
}

.wizard-btn:hover::after,
.link-button:not(.ghost-link):hover::after,
.actions button:not(:disabled):hover::after,
.ai-actions button:not(:disabled):hover::after { transform: translateX(130%); }

.wizard-btn:hover,
.link-button:hover,
.actions button:not(:disabled):hover,
.ai-actions button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-glow);
}

.wizard-btn:active,
.link-button:active,
.actions button:not(:disabled):active,
.ai-actions button:not(:disabled):active {
  transform: translateY(0) scale(.985);
  box-shadow: var(--sh-xs);
}

button:focus-visible,
.link-button:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--sh-sm);
}

/* Optional leading glyph — hidden by default, opted into per variant */
.wizard-btn::before,
.actions button::before,
.ai-actions button::before,
.link-button::before {
  content: "";
  display: none;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--btn-icon, none) center / contain no-repeat;
  mask: var(--btn-icon, none) center / contain no-repeat;
}

.submit-btn::before,
.link-button::before,
.actions button::before,
.ai-actions button::before { display: block; }

/* ==========================================================================
   6. ENQUIRY PAGE — SHELL
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 38px 22px 76px;
}

.enquiry-form {
  width: min(1420px, 100%);
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  animation: rise-in .6s var(--ease-out) both;
}

/* --------------------------------------------------------------------------
   6.1  Promo / journey panel — the "counselling desk" side
   -------------------------------------------------------------------------- */

.promo-panel {
  position: relative;
  isolation: isolate;
  padding: 34px 28px 30px;
  color: #EAF4F2;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: linear-gradient(158deg, var(--teal-800) 0%, var(--teal-900) 100%);
  overflow: hidden;
}

/* Ruled-notebook texture */
.promo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .05) 0 1px,
    transparent 1px 30px
  );
  pointer-events: none;
}

/* Slow-drifting warm light */
.promo-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -120px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 69, .22), transparent 68%);
  animation: blob-drift 16s var(--ease) infinite;
  pointer-events: none;
}

.promo-panel > * { position: relative; }

/* ---- Brand ---- */

.brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .65);
  position: relative;
  overflow: hidden;
}

.brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: logo-sheen 6s var(--ease) infinite;
  pointer-events: none;
}

.brand img { display: block; height: auto; }

.brand strong {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--teal-800);
  line-height: 1.1;
}

.brand span {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: logo-sheen 5s var(--ease) infinite;
}

/* ---- Intro copy ---- */

.promo-panel > p {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
  max-width: 30ch;
  margin: 0;
}

.promo-tagline {
  margin-top: auto;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(234, 244, 242, .82);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--r-sm);
}

/* ---- Journey stepper ---- */

.journey {
  counter-reset: journey;
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.journey::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  bottom: 30px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08));
}

.journey li {
  position: relative;
  padding: 10px 12px 10px 46px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: rgba(234, 244, 242, .66);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
  animation: fade-in .6s var(--ease-out) both;
}

.journey li:nth-child(1) { animation-delay: .05s; }
.journey li:nth-child(2) { animation-delay: .12s; }
.journey li:nth-child(3) { animation-delay: .19s; }
.journey li:nth-child(4) { animation-delay: .26s; }
.journey li:nth-child(5) { animation-delay: .33s; }

.journey li small {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(234, 244, 242, .48);
  transition: color var(--t) var(--ease);
}

.journey li::before {
  counter-increment: journey;
  content: counter(journey);
  position: absolute;
  left: 5px;
  top: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(234, 244, 242, .78);
  background: rgba(255, 255, 255, .09);
  border: 1.5px solid rgba(255, 255, 255, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transition:
    background-color var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease),
    transform var(--t) var(--spring);
}

.journey li:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.journey li:hover::before { transform: scale(1.06); }

/* Active */
.journey li.active {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.journey li.active small { color: rgba(255, 255, 255, .72); }

.journey li.active::before {
  background: linear-gradient(140deg, var(--gold-500), var(--gold-600));
  border-color: rgba(255, 255, 255, .55);
  color: #23180A;
  transform: scale(1.08);
  animation: dot-pulse 2.4s var(--ease) infinite;
}

/* Completed */
.journey li.completed { color: rgba(255, 255, 255, .88); }
.journey li.completed small { color: rgba(234, 244, 242, .55); }

.journey li.completed::before {
  content: "";
  background: var(--teal-400);
  border-color: rgba(255, 255, 255, .45);
}

.journey li.completed::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  -webkit-mask: var(--ic-check) center / 15px no-repeat;
  mask: var(--ic-check) center / 15px no-repeat;
  animation: check-pop .4s var(--spring) both;
  pointer-events: none;
}

/* ---- Desk illustration ---- */

.desk-scene {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-top: 4px;
  align-self: center;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3));
  opacity: .96;
}

.desk-scene .float-cap { transform-origin: center; animation: float-soft 5.5s var(--ease) infinite; }
.desk-scene .float-note { transform-origin: center; animation: float-soft-alt 6.5s var(--ease) infinite .4s; }
.desk-scene .pen { transform-origin: 100px 90px; animation: pen-write 4.2s var(--ease) infinite; }

.desk-scene .ink-line {
  stroke-dasharray: 60;
  animation: draw-line 2.2s var(--ease-out) forwards;
}

.desk-scene .ink-line + .ink-line { animation-delay: .35s; }
.desk-scene .ink-line + .ink-line + .ink-line { animation-delay: .7s; }

.desk-scene .steam path { animation: steam-rise 2.8s var(--ease) infinite; }
.desk-scene .steam path:last-child { animation-delay: .9s; }

/* --------------------------------------------------------------------------
   6.2  Form panel
   -------------------------------------------------------------------------- */

.form-panel {
  min-width: 0;
  padding: 30px 34px 38px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 220px);
}

.form-title {
  padding-bottom: 16px;
  margin-bottom: 4px;
}

.form-title h1 {
  position: relative;
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--teal-800);
  padding-bottom: 12px;
  animation: rise-in .55s var(--ease-out) both .1s;
}

.form-title h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 76px;
  height: 4px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-600), var(--gold-500));
  transform-origin: left;
  animation: grow-bar .7s var(--ease-out) both .3s;
}

/* ---- Wizard progress ---- */

.wizard-progress {
  margin-bottom: 26px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-xs);
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-title {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-800);
}

.progress-percent {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--teal-600);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  white-space: nowrap;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 20%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal-500), var(--teal-600) 60%, var(--gold-500));
  transition: width .55s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: shimmer 2.4s var(--ease) infinite;
}

/* ---- Step panels ---- */

.step-panel { display: none; }

.step-panel.active {
  display: block;
  animation: stepIn .45s var(--ease-out) both;
}

.step-heading {
  position: relative;
  margin-bottom: 22px;
  padding: 18px 20px 18px 74px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--surface) 70%);
  border: 1px solid var(--teal-100);
  overflow: hidden;
}

.step-heading::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 138, 46, .14), transparent 70%);
  pointer-events: none;
}

.step-number {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--teal-500), var(--teal-700));
  box-shadow: 0 8px 18px -8px rgba(11, 86, 78, .85);
  animation: pop-in .45s var(--spring) both .12s;
}

.step-heading h2 {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 3px;
}

.step-heading p {
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 68ch;
}

/* ---- Form sections — the "notebook cards" ---- */

.form-section {
  position: relative;
  margin-bottom: 20px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* Bound-notebook spine accent */
.form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--teal-500), var(--gold-500));
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.form-section:hover {
  box-shadow: var(--sh-sm);
  border-color: var(--line-2);
}

.form-section:focus-within {
  border-color: var(--teal-100);
  box-shadow: var(--sh-md);
}

.form-section:hover::before,
.form-section:focus-within::before {
  opacity: 1;
  transform: scaleY(1);
}

.form-section > h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line-2);
}

/* Icon chip */
.form-section > h2::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--teal-50);
  border: 1px solid var(--teal-100);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* Glyph inside the chip */
.form-section > h2::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(50% - 6px);          /* offsets the 12px padding-bottom */
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--teal-600);
  -webkit-mask: var(--section-icon, var(--ic-books)) center / contain no-repeat;
  mask: var(--section-icon, var(--ic-books)) center / contain no-repeat;
  transition: background-color var(--t) var(--ease);
  pointer-events: none;
}

.form-section:focus-within > h2::before {
  background-color: var(--gold-50);
  border-color: var(--gold-200);
}

.form-section:focus-within > h2::after { background: var(--gold-600); }

/* Per-step iconography */
.step-panel[data-step="1"] .form-section:nth-of-type(1) { --section-icon: var(--ic-student); }
.step-panel[data-step="1"] .form-section:nth-of-type(2) { --section-icon: var(--ic-family); }
.step-panel[data-step="2"] .form-section:nth-of-type(1) { --section-icon: var(--ic-cap); }
.step-panel[data-step="2"] .form-section:nth-of-type(2) { --section-icon: var(--ic-spark); }
.step-panel[data-step="3"] .form-section:nth-of-type(1) { --section-icon: var(--ic-clipboard); }
.step-panel[data-step="4"] .form-section:nth-of-type(1) { --section-icon: var(--ic-books); }
.step-panel[data-step="4"] .form-section:nth-of-type(2) { --section-icon: var(--ic-calendar); }
.step-panel[data-step="5"] .form-section:nth-of-type(1) { --section-icon: var(--ic-shield); }

/* ==========================================================================
   7. FORM CONTROLS  (shared by both pages)
   ========================================================================== */

.grid { display: grid; gap: 16px; }

.grid.two { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.compact-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

label {
  display: block;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .012em;
  color: var(--ink-2);
}

.form-section > label { margin-top: 16px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

textarea {
  min-height: 92px;
  line-height: 1.6;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--ink-4);
  font-weight: 400;
}

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="email"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
select:hover,
textarea:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--teal-500);
  background: var(--surface);
  box-shadow: var(--ring);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(190, 64, 56, .14);
}

/* Native select — custom chevron */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2335505E" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9.5 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
}

input[type="date"] { cursor: pointer; }

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .55;
  transition: opacity var(--t-fast) var(--ease);
}

input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* ---- Fieldsets ---- */

fieldset {
  margin: 18px 0 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-3);
}

.form-section fieldset + fieldset { margin-top: 14px; }

legend {
  padding: 3px 11px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--surface);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-pill);
}

/* ---- Choice chips (radio / checkbox) ---- */

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.options label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 15px 9px 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  user-select: none;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--spring),
    box-shadow var(--t-fast) var(--ease);
}

.options label:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
  color: var(--teal-800);
  transform: translateY(-1px);
}

.options label:has(input:checked) {
  border-color: var(--teal-600);
  background: linear-gradient(135deg, var(--teal-50), #fff);
  color: var(--teal-800);
  font-weight: 600;
  box-shadow: 0 6px 16px -10px rgba(11, 86, 78, .9);
}

.options label:has(input:focus-visible) { box-shadow: var(--ring); }

/* Custom control marks */
.options input[type="radio"],
.options input[type="checkbox"],
.course-group-items input[type="checkbox"],
.confirmation-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.8px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}

.options input[type="radio"] { border-radius: 50%; }

.options input[type="checkbox"],
.course-group-items input[type="checkbox"],
.confirmation-box input[type="checkbox"] { border-radius: 5px; }

.options input[type="radio"]:checked {
  border-color: var(--teal-600);
  border-width: 5.5px;
  background: var(--surface);
}

.options input[type="checkbox"]:checked,
.course-group-items input[type="checkbox"]:checked,
.confirmation-box input[type="checkbox"]:checked {
  border-color: var(--teal-600);
  background-color: var(--teal-600);
  background-image: var(--ic-check-w);
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  animation: check-pop .3s var(--spring);
}

.options input:focus-visible,
.course-group-items input:focus-visible,
.confirmation-box input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* "Other → specify" inline field */
.inline-other {
  gap: 8px;
  padding-right: 8px;
}

.inline-other input[type="text"] {
  width: 122px;
  margin-top: 0;
  padding: 5px 11px;
  font-size: 12.5px;
  border-radius: var(--r-pill);
  border-width: 1px;
}

/* ==========================================================================
   8. ASSESSMENT STEP
   ========================================================================== */

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.assessment-grid > label { grid-column: 1 / -1; }

.assessment-card {
  padding: 18px 18px 16px;
  background: linear-gradient(170deg, var(--surface-3), var(--surface) 60%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition:
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}

.assessment-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal-100);
  box-shadow: var(--sh-md);
}

.assessment-card:focus-within {
  border-color: var(--teal-400);
  box-shadow: var(--sh-sm);
}

.assessment-card > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--teal-800);
  margin-bottom: 14px;
}

.assessment-card > label::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: var(--gold-600);
  -webkit-mask: var(--ic-target) center / contain no-repeat;
  mask: var(--ic-target) center / contain no-repeat;
}

.assessment-card .options {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.assessment-card .options label {
  border-radius: var(--r-sm);
  justify-content: flex-start;
}

/* ==========================================================================
   9. COURSE PICKER (enquiry step 4)
   ========================================================================== */

.course-search-input {
  margin-bottom: 14px;
  padding-left: 42px;
  background-image: var(--ic-search);
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 16px;
}

.course-grid {
  max-height: 340px;
  overflow-y: auto;
  padding: 14px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.course-group { animation: fade-in .4s var(--ease-out) both; }

.course-grid .course-group:nth-child(2) { animation-delay: .04s; }
.course-grid .course-group:nth-child(3) { animation-delay: .08s; }
.course-grid .course-group:nth-child(4) { animation-delay: .12s; }
.course-grid .course-group:nth-child(n+5) { animation-delay: .16s; }

.course-group-label {
  position: sticky;
  top: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--teal-700);
  background: var(--surface-3);
}

.course-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}

.course-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-group-items label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 14px 9px 11px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--spring),
    box-shadow var(--t-fast) var(--ease);
}

.course-group-items label:hover {
  border-color: var(--teal-400);
  background: var(--teal-50);
  color: var(--teal-800);
  transform: translateY(-1px);
}

.course-group-items label:has(input:checked) {
  border-color: var(--teal-700);
  background: linear-gradient(135deg, var(--teal-600), var(--teal-700));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px -10px rgba(11, 86, 78, .95);
}

.course-group-items label:has(input:checked) input[type="checkbox"] {
  border-color: rgba(255, 255, 255, .85);
  background-color: rgba(255, 255, 255, .2);
}

.course-empty,
.course-loading {
  margin: 0;
  padding: 26px 16px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
}

.course-loading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 9px;
  vertical-align: -2px;
  border: 2px solid var(--line-2);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* Legacy single-select course cards (kept for compatibility) */
.course-card {
  position: relative;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}

.course-card:hover {
  border-color: var(--teal-400);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.course-card.selected {
  border-color: var(--teal-600);
  background: var(--teal-50);
  color: var(--teal-800);
}

.course-card.selected::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-600) var(--ic-check-w) center / 11px no-repeat;
  animation: check-pop .3s var(--spring);
}

/* ==========================================================================
   10. CALLOUTS + STEP ACTIONS
   ========================================================================== */

.recommendation-box {
  position: relative;
  margin-bottom: 20px;
  padding: 18px 20px 18px 58px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--gold-50), var(--surface) 72%);
  border: 1px solid var(--gold-200);
  overflow: hidden;
}

.recommendation-box::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 20px;
  width: 22px;
  height: 22px;
  background: var(--gold-700);
  -webkit-mask: var(--ic-spark) center / contain no-repeat;
  mask: var(--ic-spark) center / contain no-repeat;
}

.recommendation-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-700);
  margin-bottom: 5px;
}

.recommendation-box p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.confirmation-box {
  margin: 22px 0;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--teal-50), var(--surface) 75%);
  border: 1px solid var(--teal-100);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.confirmation-box:has(input:checked) {
  border-color: var(--teal-500);
  box-shadow: 0 10px 26px -18px rgba(11, 86, 78, .9);
}

.confirmation-box label {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  cursor: pointer;
}

.confirmation-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-2);
}

.left-actions,
.right-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.mini-progress-text {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
}

/* Button variants */
.submit-btn {
  --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --btn-fg: #23180A;
  --btn-icon: var(--ic-check);
  padding-inline: 28px;
}

.submit-btn:hover { box-shadow: 0 14px 30px -14px rgba(192, 138, 46, .85); }

.clear-btn,
.back-btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink-2);
  border-color: var(--line-2);
  box-shadow: none;
}

.clear-btn:hover,
.back-btn:hover {
  --btn-bg: var(--surface-3);
  --btn-fg: var(--teal-800);
  border-color: var(--teal-400);
  box-shadow: var(--sh-sm);
}

.clear-btn { --btn-fg: var(--ink-3); }

.clear-btn:hover {
  --btn-fg: var(--danger);
  border-color: rgba(190, 64, 56, .4);
}

/* ---- Form status message ---- */

.form-message {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ok);
}

.form-message:not(:empty) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: var(--ok-bg);
  border: 1px solid rgba(23, 120, 78, .22);
  animation: msg-pop .4s var(--spring) both;
}

.form-message:not(:empty)::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  background: var(--ok);
  -webkit-mask: var(--ic-check) center / contain no-repeat;
  mask: var(--ic-check) center / contain no-repeat;
}

/* ==========================================================================
   11. COUNSELLOR DASHBOARD — SHELL
   ========================================================================== */

.dashboard-page {
  width: min(1560px, 100%);
  margin: 0 auto;
  padding: 26px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ---- Hero header ---- */

.dashboard-header {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 26px 30px;
  border-radius: var(--r-xl);
  color: #EAF4F2;
  background: linear-gradient(140deg, var(--teal-800) 0%, var(--teal-900) 100%);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: rise-in .55s var(--ease-out) both;
}

/* Ruled-paper texture, echoing the counselling notebook */
.dashboard-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .05) 0 1px,
    transparent 1px 28px
  );
  pointer-events: none;
}

.dashboard-header::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -90px;
  top: -180px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 69, .22), transparent 68%);
  animation: blob-drift 18s var(--ease) infinite;
  pointer-events: none;
}

.dashboard-header > * { position: relative; }

.dashboard-header > div:first-child { min-width: 0; }

.dashboard-header p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  padding: 4px 12px 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-500);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-pill);
}

.dashboard-header p::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--gold-500);
  -webkit-mask: var(--ic-cap) center / contain no-repeat;
  mask: var(--ic-cap) center / contain no-repeat;
}

.dashboard-header h1 {
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 800;
  color: #fff;
}

/* Career-roadmap artwork */
.roadmap-art {
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 180px;
  height: auto;
  opacity: .95;
}

.roadmap-art .road {
  stroke-dasharray: 1 8;
  animation: road-run 3.4s linear infinite;
}

.roadmap-art .stop {
  transform-origin: center;
  animation: float-soft 4.6s var(--ease) infinite;
}

.roadmap-art .stop:nth-of-type(2) { animation-delay: .3s; }
.roadmap-art .stop:nth-of-type(3) { animation-delay: .6s; }
.roadmap-art .stop:nth-of-type(4) { animation-delay: .9s; }
.roadmap-art .stop:nth-of-type(5) { animation-delay: 1.2s; }

.roadmap-art .flag path:last-child {
  transform-origin: 292px 8px;
  animation: flag-wave 1.9s var(--ease) infinite;
}

/* ---- Header actions ---- */

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.link-button {
  --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --btn-fg: #23180A;
  --btn-icon: var(--ic-plus);
  padding: 11px 20px;
  min-height: 44px;
  font-size: 13.5px;
}

.link-button.ghost-link {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-fg: #EAF4F2;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: none;
}

.link-button.ghost-link:hover {
  --btn-bg: rgba(255, 255, 255, .16);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9);
}

#loadDemoData { --btn-icon: var(--ic-refresh); }
.link-button.ghost-link[href] { --btn-icon: var(--ic-grid); }

/* ==========================================================================
   12. DASHBOARD LAYOUT
   ========================================================================== */

.dashboard-layout {
  display: grid;
  grid-template-columns: 322px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* ---- Enquiry list (sticky rail) ---- */

.enquiry-list {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 40px);
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  animation: rise-in .55s var(--ease-out) both .08s;
}

.enquiry-list h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-800);
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line-2);
}

.enquiry-list h2::before {
  content: "";
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  align-self: center;
  border-radius: 9px;
  background-color: var(--teal-50);
  border: 1px solid var(--teal-100);
}

.enquiry-list h2::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: calc(50% - 6.5px);        /* offsets the 13px padding-bottom */
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  background: var(--teal-600);
  -webkit-mask: var(--ic-student) center / contain no-repeat;
  mask: var(--ic-student) center / contain no-repeat;
  pointer-events: none;
}

.enquiry-list > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
}

/* ---- Enquiry cards ---- */

.enquiry-list .enquiry-item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  row-gap: 1px;
  width: 100%;
  padding: 13px 14px 13px 13px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    transform var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
  animation: slide-up .45s var(--ease-out) both;
}

.enquiry-list .enquiry-item:nth-child(1) { animation-delay: .04s; }
.enquiry-list .enquiry-item:nth-child(2) { animation-delay: .09s; }
.enquiry-list .enquiry-item:nth-child(3) { animation-delay: .14s; }
.enquiry-list .enquiry-item:nth-child(4) { animation-delay: .19s; }
.enquiry-list .enquiry-item:nth-child(5) { animation-delay: .24s; }
.enquiry-list .enquiry-item:nth-child(n+6) { animation-delay: .28s; }

/* Student avatar */
.enquiry-list .enquiry-item::before {
  content: "";
  grid-row: 1 / -1;
  grid-column: 1;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background-color: var(--teal-50);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230E6E63" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="3.6"/><path d="M4.5 20.5c0-3.8 3.4-5.9 7.5-5.9s7.5 2.1 7.5 5.9"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px;
  border: 1px solid var(--teal-100);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* Active left rail */
.enquiry-list .enquiry-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--teal-500), var(--gold-500));
  opacity: 0;
  transform: scaleY(.3);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.enquiry-list .enquiry-item:hover {
  border-color: var(--teal-400);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.enquiry-list .enquiry-item:hover::after {
  opacity: .6;
  transform: scaleY(1);
}

.enquiry-list .enquiry-item.active {
  border-color: var(--teal-600);
  background: linear-gradient(135deg, var(--teal-50), var(--surface) 70%);
  box-shadow: 0 10px 26px -18px rgba(11, 86, 78, .95);
}

.enquiry-list .enquiry-item.active::after {
  opacity: 1;
  transform: scaleY(1);
}

.enquiry-list .enquiry-item.active::before {
  background-color: var(--teal-600);
  border-color: var(--teal-700);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="3.6"/><path d="M4.5 20.5c0-3.8 3.4-5.9 7.5-5.9s7.5 2.1 7.5 5.9"/></svg>');
}

.enquiry-item strong {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-800);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enquiry-item span {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.enquiry-item span::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--ink-4);
  -webkit-mask: var(--ic-phone) center / contain no-repeat;
  mask: var(--ic-phone) center / contain no-repeat;
}

.enquiry-item small {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
  line-height: 1.4;
}

.enquiry-item small::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(216, 168, 69, .2);
  transition: background-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.enquiry-item.active small::before {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(23, 120, 78, .18);
}

.empty-small {
  margin: 0;
  padding: 26px 14px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
  background: var(--surface-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
}

/* ==========================================================================
   13. REVIEW PANEL
   ========================================================================== */

.review-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: rise-in .55s var(--ease-out) both .14s;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 64px 28px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
}

.empty-state::before {
  content: "";
  width: 54px;
  height: 54px;
  background: var(--line-2);
  -webkit-mask: var(--ic-clipboard) center / contain no-repeat;
  mask: var(--ic-clipboard) center / contain no-repeat;
}

#reviewForm {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ---- Student header strip ---- */

.review-title {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px 20px 76px;
  background: linear-gradient(135deg, var(--teal-50), var(--surface) 65%);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}

.review-title::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background-color: var(--teal-600);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="3.6"/><path d="M4.5 20.5c0-3.8 3.4-5.9 7.5-5.9s7.5 2.1 7.5 5.9"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 23px;
  box-shadow: 0 8px 18px -8px rgba(11, 86, 78, .85);
}

.review-title p {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
  padding: 3px 11px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--surface);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-pill);
}

.review-title p::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(18, 137, 124, .18);
}

.review-title h2 {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  color: var(--teal-800);
}

.review-title > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.review-title > span::before {
  content: "";
  width: 13px;
  height: 13px;
  background: var(--ink-4);
  -webkit-mask: var(--ic-clock) center / contain no-repeat;
  mask: var(--ic-clock) center / contain no-repeat;
}

/* ---- Snapshot cards ---- */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.detail-grid article {
  position: relative;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.detail-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--teal-500), var(--gold-500));
  opacity: .35;
  transition: opacity var(--t) var(--ease);
}

.detail-grid article:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--sh-md);
}

.detail-grid article:hover::before { opacity: 1; }

.detail-grid h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--line-2);
}

.detail-grid h3::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-color: var(--teal-50);
  border: 1px solid var(--teal-100);
}

.detail-grid h3::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(50% - 5.5px);        /* offsets the 11px padding-bottom */
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: var(--teal-600);
  -webkit-mask: var(--card-icon, var(--ic-student)) center / contain no-repeat;
  mask: var(--card-icon, var(--ic-student)) center / contain no-repeat;
  pointer-events: none;
}

.detail-grid article:nth-child(1) { --card-icon: var(--ic-student); }
.detail-grid article:nth-child(2) { --card-icon: var(--ic-cap); }

.detail-grid p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--surface-3);
}

.detail-grid p:last-of-type { border-bottom: 0; }

.detail-grid b {
  min-width: 108px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.course-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-800);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--spring), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.course-tags span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--teal-500);
  -webkit-mask: var(--ic-books) center / contain no-repeat;
  mask: var(--ic-books) center / contain no-repeat;
}

.course-tags span:hover {
  transform: translateY(-2px);
  background: var(--teal-600);
  color: #fff;
  border-color: var(--teal-700);
}

.course-tags span:hover::before { background: #fff; }

.course-tags p {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   14. REVIEW BLOCKS
   ========================================================================== */

.review-block {
  position: relative;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}

.review-block:hover {
  box-shadow: var(--sh-sm);
  border-color: var(--line-2);
}

.review-block:focus-within {
  border-color: var(--teal-100);
  box-shadow: var(--sh-md);
}

.review-block h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-800);
  margin-bottom: 18px;
  padding-bottom: 13px;
  border-bottom: 1px dashed var(--line-2);
}

.review-block h3::before {
  content: "";
  flex: 0 0 auto;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: var(--teal-50);
  border: 1px solid var(--teal-100);
}

.review-block h3::after {
  content: "";
  position: absolute;
  left: 8px;
  top: calc(50% - 6.5px);        /* offsets the 13px padding-bottom */
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background: var(--teal-600);
  -webkit-mask: var(--block-icon, var(--ic-clipboard)) center / contain no-repeat;
  mask: var(--block-icon, var(--ic-clipboard)) center / contain no-repeat;
  pointer-events: none;
}

#reviewForm > .review-block:nth-child(4) { --block-icon: var(--ic-clipboard); }
#reviewForm > .review-block:nth-child(5) { --block-icon: var(--ic-chart); }
#reviewForm > .review-block:nth-child(6) { --block-icon: var(--ic-route); }

/* ---- AI block ---- */

.ai-block {
  --block-icon: var(--ic-ai);
  background:
    linear-gradient(135deg, var(--gold-50) 0%, var(--surface) 62%),
    var(--surface);
  border-color: var(--gold-200);
  overflow: hidden;
}

.ai-block::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 168, 69, .18), transparent 70%);
  pointer-events: none;
}

.ai-block h3 { color: var(--gold-700); }

.ai-block h3::before {
  background-color: var(--gold-50);
  border-color: var(--gold-200);
}

.ai-block h3::after { background: var(--gold-700); }

.ai-hint {
  position: relative;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 92ch;
  margin-bottom: 16px;
}

.ai-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

#generateAI {
  --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  --btn-fg: #23180A;
  --btn-icon: var(--ic-ai);
}

#generateAI:hover { box-shadow: 0 14px 30px -14px rgba(192, 138, 46, .85); }

/* ---- Status pills ---- */

.ai-status,
.pdf-status {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.ai-status:not(:empty),
.pdf-status:not(:empty) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  animation: msg-pop .35s var(--spring) both, soft-pulse 2s var(--ease) infinite .35s;
}

.ai-status:not(:empty)::before,
.pdf-status:not(:empty)::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--line-2);
  border-top-color: var(--teal-600);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.ai-status.success,
.pdf-status.success {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: rgba(23, 120, 78, .25);
  animation: msg-pop .35s var(--spring) both;
}

.ai-status.success::before,
.pdf-status.success::before {
  border: 0;
  background: var(--ok);
  -webkit-mask: var(--ic-check) center / contain no-repeat;
  mask: var(--ic-check) center / contain no-repeat;
  animation: none;
}

.ai-status.error,
.pdf-status.error {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: rgba(190, 64, 56, .25);
  animation: msg-pop .35s var(--spring) both;
}

.ai-status.error::before,
.pdf-status.error::before {
  border: 0;
  border-radius: 50%;
  background: var(--danger);
  -webkit-mask: none;
  mask: none;
  animation: none;
}

/* ---- Review field grid ---- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.review-grid > label {
  animation: fade-in .4s var(--ease-out) both;
}

.review-grid > label:nth-child(1) { animation-delay: .02s; }
.review-grid > label:nth-child(2) { animation-delay: .05s; }
.review-grid > label:nth-child(3) { animation-delay: .08s; }
.review-grid > label:nth-child(4) { animation-delay: .11s; }
.review-grid > label:nth-child(5) { animation-delay: .14s; }
.review-grid > label:nth-child(6) { animation-delay: .17s; }
.review-grid > label:nth-child(7) { animation-delay: .2s; }
.review-grid > label:nth-child(8) { animation-delay: .23s; }

.wide-field {
  display: block;
  margin-top: 16px;
}

/* ==========================================================================
   15. SEARCHABLE COURSE SELECT (dashboard combobox)
   ========================================================================== */

.course-select-label {
  position: relative;
  min-width: 0;
}

.course-select-label:has(.course-select.open) {
  z-index: 60;
}

.course-select {
  position: relative;
  margin-top: 7px;
  min-width: 0;
}

.course-select-input {
  margin-top: 0;
  padding-left: 40px;
  padding-right: 38px;
  background-image: var(--ic-search);
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 15px;
  cursor: text;
}

.course-select::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  background: var(--ink-4);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9.5 6 6 6-6"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9.5 6 6 6-6"/></svg>') center / contain no-repeat;
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
  pointer-events: none;
}

.course-select.open::after {
  transform: translateY(-50%) rotate(180deg);
  background: var(--teal-600);
}

.course-select-panel {
  position: absolute;
  z-index: 70;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 264px;
  overflow-y: auto;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.course-select.open > .course-select-panel {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none;
}

.course-select-group + .course-select-group { margin-top: 6px; }

.course-select-group-label {
  position: sticky;
  top: -8px;
  z-index: 1;
  display: block;
  padding: 7px 10px 5px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--teal-700);
  background: var(--surface);
}

.course-select-option {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), padding-left var(--t-fast) var(--ease);
}

.course-select-option:hover {
  background: var(--teal-50);
  color: var(--teal-800);
  padding-left: 16px;
}

.course-select-option.active {
  background: var(--teal-600);
  color: #fff;
  font-weight: 600;
}

.course-select-empty {
  padding: 20px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   16. EMPLOYABILITY SCORE
   ========================================================================== */

.score-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, var(--surface-3), var(--surface) 70%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.score-gauge {
  --size: 116px;
  position: relative;
  flex: 0 0 auto;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--teal-500) 0deg,
    var(--teal-600) calc(var(--score) * 3.6deg),
    var(--line) calc(var(--score) * 3.6deg)
  );
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -16px rgba(16, 34, 43, .8);
}

.score-gauge::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 1px 3px rgba(16, 34, 43, .07);
}

.score-gauge strong {
  position: relative;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  color: var(--teal-800);
  font-variant-numeric: tabular-nums;
}

.score-gauge span {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-4);
}

.score-summary > div:last-child { min-width: 200px; flex: 1; }

.score-summary b {
  display: inline-block;
  margin-bottom: 6px;
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-800);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-pill);
}

.score-summary p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 62ch;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
}

.score-grid > label {
  padding: 13px 15px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

.score-grid > label:hover { border-color: var(--line-2); }

.score-grid > label:focus-within {
  border-color: var(--teal-400);
  box-shadow: var(--sh-sm);
}

.score-grid input[type="number"] {
  margin-top: 6px;
  padding: 8px 11px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-800);
  font-variant-numeric: tabular-nums;
}

/* Live meter injected by ui-effects.js */
.score-meter {
  display: block;
  height: 6px;
  margin-top: 9px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  border: 1px solid var(--line);
  overflow: hidden;
}

.score-meter i {
  display: block;
  height: 100%;
  transform: scaleX(var(--fill, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-600));
  transition: transform .5s var(--ease-out), background .3s var(--ease);
}

.score-meter.low i { background: linear-gradient(90deg, #D98A4E, var(--danger)); }
.score-meter.high i { background: linear-gradient(90deg, var(--teal-400), var(--ok)); }

/* ==========================================================================
   17. STICKY ACTION BAR + REPORT PREVIEW
   ========================================================================== */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.actions.sticky-actions {
  position: sticky;
  bottom: 14px;
  z-index: 30;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-md);
  animation: slide-up .5s var(--ease-out) both .2s;
}

#downloadPdf {
  --btn-bg: var(--surface);
  --btn-fg: var(--teal-800);
  --btn-icon: var(--ic-download);
  border-color: var(--line-2);
  box-shadow: none;
}

#downloadPdf:hover {
  --btn-bg: var(--teal-50);
  --btn-fg: var(--teal-800);
  border-color: var(--teal-400);
  box-shadow: var(--sh-sm);
}

.actions button[type="submit"] { --btn-icon: var(--ic-save); }

.sticky-actions .pdf-status { margin-right: auto; }

.report-preview {
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
}

.report-preview .empty-state {
  border-radius: var(--r-lg);
}

.preview-notice {
  margin-bottom: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: var(--r-md);
  background: #f7f1ff;
  color: #4c1d95;
  font-size: 13px;
  font-weight: 700;
}

.ai-report-frame {
  display: block;
  width: 100%;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-md);
}

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */

/* --- Large laptop --- */
@media (max-width: 1200px) {
  .enquiry-form { grid-template-columns: 300px minmax(0, 1fr); }
  .dashboard-layout { grid-template-columns: 288px minmax(0, 1fr); }
  .form-panel { padding: 28px 26px 34px; }
}

/* --- Tablet --- */
@media (max-width: 1000px) {
  .page { padding: 24px 16px 60px; }

  .enquiry-form {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
  }

  .promo-panel {
    padding: 26px 22px 22px;
    gap: 18px;
  }

  .promo-panel > p { max-width: none; }

  /* Journey becomes a horizontal rail */
  .journey {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
  }

  .journey::before {
    left: 24px;
    right: 24px;
    top: 21px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
  }

  .journey li {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 46px 10px 10px;
    text-align: center;
    scroll-snap-align: start;
    font-size: 13px;
  }

  /* Centred with calc rather than translateX, so the completed-tick
     pop animation (which animates transform) can't knock it off-centre. */
  .journey li::before,
  .journey li.completed::after {
    left: calc(50% - 15px);
    top: 4px;
    transform: none;
    width: 30px;
    height: 30px;
  }

  .journey li.active::before { transform: scale(1.08); }
  .journey li:hover::before { transform: scale(1.06); }

  .journey li small { font-size: 10.5px; }

  .desk-scene { max-width: 230px; }

  .promo-tagline { margin-top: 0; }

  .form-panel { padding: 26px 22px 32px; }

  /* Dashboard stacks */
  .dashboard-page { padding: 20px 16px 70px; }

  .dashboard-layout { grid-template-columns: 1fr; }

  .enquiry-list {
    position: static;
    max-height: none;
  }

  .enquiry-list > div {
    max-height: 300px;
  }

  .roadmap-art { order: 3; max-width: 100%; }

  .header-actions { margin-left: 0; }
}

/* --- Large phone --- */
@media (max-width: 720px) {
  .page { padding: 16px 12px 52px; }

  .enquiry-form { border-radius: var(--r-md); }

  .promo-panel { padding: 22px 18px 18px; }

  .promo-panel > p { font-size: 15.5px; }

  .brand { padding: 10px 14px; }

  .brand img { width: 150px; }

  .desk-scene { max-width: 200px; }

  .form-panel { padding: 22px 16px 28px; }

  .form-title { padding-bottom: 12px; }

  .wizard-progress { padding: 12px 13px; }

  .progress-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .step-heading { padding: 16px 16px 16px 66px; }
  .step-number { left: 14px; width: 38px; height: 38px; }

  .form-section { padding: 18px 16px 20px; }

  .form-section > h2 { font-size: 14px; }

  .grid.two,
  .compact-grid { grid-template-columns: 1fr; }

  fieldset { padding: 12px 12px 14px; }

  .options label,
  .course-group-items label { font-size: 12.5px; padding: 8px 13px 8px 10px; }

  .assessment-grid { grid-template-columns: 1fr; }

  .course-grid { max-height: 300px; padding: 12px; }

  .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
  }

  .left-actions,
  .right-actions {
    justify-content: center;
    width: 100%;
  }

  .wizard-btn { flex: 1 1 auto; justify-content: center; }

  .mini-progress-text { order: -1; }

  /* Dashboard */
  .dashboard-page { padding: 14px 12px 60px; gap: 16px; }

  .dashboard-header {
    padding: 20px 18px;
    border-radius: var(--r-lg);
    gap: 16px;
  }

  .header-actions { width: 100%; }

  .header-actions .link-button { flex: 1 1 auto; }

  .enquiry-list { padding: 16px 14px; border-radius: var(--r-md); }

  .review-title {
    padding: 18px 18px 18px 68px;
    border-radius: var(--r-md);
  }

  .review-title::after { left: 16px; width: 38px; height: 38px; }

  .detail-grid { grid-template-columns: 1fr; }

  .detail-grid article { padding: 18px 16px; }

  .detail-grid p { flex-direction: column; gap: 2px; }

  .detail-grid b { min-width: 0; }

  .review-block { padding: 18px 16px 20px; border-radius: var(--r-md); }

  .review-grid { grid-template-columns: 1fr; }

  .score-summary {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 18px 16px;
  }

  .score-gauge { --size: 100px; align-self: center; }

  .score-grid { grid-template-columns: 1fr 1fr; }

  .actions.sticky-actions {
    bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: var(--r-md);
  }

  .actions.sticky-actions button { width: 100%; }

  .sticky-actions .pdf-status {
    margin-right: 0;
    justify-content: center;
  }

  .ai-report-frame { min-height: 380px; border-radius: var(--r-md); }
}

/* --- Small phone --- */
@media (max-width: 420px) {
  .form-panel { padding: 18px 12px 24px; }
  .form-section { padding: 16px 12px 18px; }
  .step-heading { padding: 14px 14px 14px 60px; }
  .step-number { left: 12px; width: 34px; height: 34px; font-size: 12.5px; }
  .journey li { min-width: 118px; }
  .score-grid { grid-template-columns: 1fr; }
  .review-title h2 { font-size: 19px; }
  .dashboard-header h1 { font-size: 23px; }
}

/* ==========================================================================
   19. ACCESSIBILITY — REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  .will-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   20. PRINT
   ========================================================================== */

@media print {
  body { background: #fff; }
  .promo-panel,
  .header-actions,
  .actions,
  .wizard-progress,
  .step-actions { display: none !important; }
  .enquiry-form,
  .review-block,
  .detail-grid article { box-shadow: none; border-color: #ccc; }
  .step-panel { display: block !important; }
}
