/* JHRCA Admission Portal — design refresh aimed at young UPSC aspirants.
 * Confident typography, warm palette, modern UI patterns. */

:root {
  /* --- Palette — matches Jamia Hamdard's institutional brand --- */
  /* "navy" name kept for legacy references, but is now JHU institutional green */
  --navy:        #0a5e3e;     /* JHU deep green */
  --navy-dark:   #064128;
  --navy-soft:   #e1eee8;

  /* "saffron" — JHU warm ochre / gold */
  --saffron:     #c89224;
  --saffron-100: #fef5e0;
  --saffron-200: #fbe6b6;

  --gold:        #b07a1e;
  --gold-100:    #fef0d4;
  --gold-200:    #f4d99c;

  --emerald:     #059669;
  --emerald-100: #d1fae5;
  --rose:        #dc2626;
  --rose-100:    #fee2e2;
  --indigo:      #4f46e5;
  --indigo-100:  #e0e7ff;

  /* Neutrals */
  --ink:         #0a0e27;
  --ink-2:       #1f2937;
  --ink-soft:    #4b5563;
  --mute:        #6b7280;
  --border:      #ece6d8;
  --border-soft: #f3edde;
  --bg:          #fdf8f3;     /* warm cream */
  --bg-2:        #f7f0e3;
  --white:       #ffffff;

  /* Effects */
  --shadow-soft: 0 1px 2px rgba(12,16,32,.04), 0 2px 8px rgba(12,16,32,.05);
  --shadow-lift: 0 8px 28px -6px rgba(12,16,32,.14), 0 4px 12px rgba(12,16,32,.06);
  --shadow-pop:  0 18px 40px -10px rgba(30,58,138,.25), 0 8px 16px rgba(12,16,32,.08);
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  /* Type */
  --font-sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-serif:  'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15.5px;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 1 auto; }

a { color: var(--navy); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--saffron); }
.muted { color: var(--mute); font-weight: 400; }
.small { font-size: 13px; }

::selection { background: var(--saffron-200); color: var(--ink); }

.container        { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* ================================================================
   HEADER — modern with gold accent line + glass effect
   ================================================================ */
.topbar {
  background: rgba(253,248,243,0.85);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--saffron) 50%, var(--gold) 100%);
}
.topbar-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
}

.brand {
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  height: 44px; width: auto; display: block;
  transition: transform 0.18s;
}
.brand:hover .brand-logo { transform: scale(1.03); }
.brand-divider {
  width: 1px; height: 28px; background: var(--border);
  display: inline-block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.brand-text small { font-size: 11px; color: var(--mute); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 640px) {
  .brand-logo { height: 36px; }
  .brand-divider { display: none; }
  .brand-text strong { font-size: 16px; }
}

.topnav { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.topnav a {
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topnav a:hover { color: var(--navy); background: var(--saffron-100); }
.topnav .topnav-cta {
  margin-left: 12px;
  background: var(--ink);
  color: var(--white);
  padding: 11px 22px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(10,14,39,.18);
  transition: 0.18s;
}
.topnav .topnav-cta:hover {
  background: var(--saffron);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234,88,12,.32);
}
.topnav .topnav-cta span { display: inline-block; transition: transform 0.18s; margin-left: 6px; }
.topnav .topnav-cta:hover span { transform: translateX(4px); }

@media (max-width: 900px) {
  .topbar-row { height: 60px; gap: 8px; padding: 0 14px; }
  .brand-logo { height: 34px; }
  .brand-divider { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15px; }
  .topnav a:not(.topnav-cta) { display: none; }
  .topnav .topnav-cta { padding: 8px 14px; font-size: 13px; margin-left: 0; }
}
@media (max-width: 480px) {
  .brand-logo { height: 28px; }
  .brand-text strong { font-size: 13px; }
  .topnav .topnav-cta { padding: 7px 12px; font-size: 12px; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  margin-top: 80px;
  padding: 36px 0 24px;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  text-align: center;
}
.footer a { color: var(--gold-200); }
.footer a:hover { color: var(--saffron); }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 700; }
.gradient-text {
  background: linear-gradient(120deg, var(--saffron), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  font-size: 12px; letter-spacing: 0.16em; font-weight: 700;
  color: var(--saffron);
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; display: inline-block;
  width: 24px; height: 2px; background: currentColor;
}
.lead { font-size: 18px; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; }

.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 90px 0; } }

/* ================================================================
   PARTNERSHIP BANNER — JHU + LevelUp IAS + Ministry of Education
   ================================================================ */
.hero-banner {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  width: 100%;
  overflow: hidden;
}
.hero-banner a { display: block; line-height: 0; width: 100%; }
.hero-banner img {
  display: block; width: 100%; height: auto;
  transition: transform 0.5s ease;
}
.hero-banner a:hover img { transform: scale(1.01); }

/* ================================================================
   HERO — bold, warm, confident
   ================================================================ */
.hero {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, var(--saffron-100) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, var(--navy-soft) 0%, transparent 55%),
    var(--bg);
}
@media (min-width: 768px) { .hero { padding: 100px 0 80px; } }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(10,14,39,.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.45;
}
.hero-inner { position: relative; }
.hero h1 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 .accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--saffron);
}
.hero .lead { max-width: 640px; }

.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin-top: 56px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.hero-stat .num {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 36px; color: var(--navy); line-height: 1;
}
.hero-stat .num small { font-size: 18px; vertical-align: super; color: var(--saffron); margin-left: 2px; }
.hero-stat .label { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-top: 6px; }
.hero-stat .hint  { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; line-height: 1.45; }

/* Subtle hero badge above heading */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-100);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(5,150,105,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(5,150,105,.05); }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: 0.18s;
  font-family: var(--font-sans);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: 0 6px 18px rgba(10,14,39,.22);
}
.btn-primary:hover {
  background: var(--saffron); color: var(--white);
  box-shadow: 0 10px 26px rgba(234,88,12,.32);
}
.btn-secondary {
  background: var(--white); color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover {
  background: var(--ink); color: var(--white);
}
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform 0.18s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Mini buttons — used in dense lists/tables (e.g. staff applications list) */
.btn-mini {
  display: inline-block;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  margin-right: 4px;
  transition: 0.12s;
  line-height: 1.4;
}
.btn-mini-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-mini-secondary:hover { background: var(--navy); color: var(--white); }
.btn-mini-ghost { background: transparent; color: var(--ink-soft); border-color: var(--border); }
.btn-mini-ghost:hover { background: var(--bg); color: var(--navy); border-color: var(--navy); }

/* ================================================================
   CARDS
   ================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  transition: 0.2s;
}
.card-lift { box-shadow: var(--shadow-lift); }
.card-hover:hover {
  border-color: var(--saffron-200);
  box-shadow: 0 12px 30px -8px rgba(234,88,12,.18);
  transform: translateY(-2px);
}
.card + .card { margin-top: 18px; }

/* "Feature card" with icon + title + body */
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: 0.2s;
}
.feature-card:hover {
  border-color: var(--saffron-200);
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
}
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--saffron-100), var(--gold-100));
  color: var(--saffron);
  font-size: 22px;
}
.feature-card h3 { color: var(--ink); }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* ================================================================
   FORMS
   ================================================================ */
.input, input.input, select.input, textarea.input {
  width: 100%;
  padding: 13px 16px;
  font-size: 15.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, input.input:focus, select.input:focus, textarea.input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px var(--saffron-100);
}
.field { margin-bottom: 18px; }
.field label, .field > label {
  display: block; font-weight: 600; font-size: 13.5px;
  margin-bottom: 7px; color: var(--ink);
}
.field .help { font-size: 12.5px; color: var(--mute); margin-top: 6px; }
.field .errorlist { color: var(--rose); font-size: 13px; margin: 6px 0 0; padding-left: 18px; }

/* Required / optional markers on labels — inline, alignment-safe */
.req {
  color: var(--rose);
  font-weight: 800;
  font-size: 14px;
  margin-left: 3px;
  vertical-align: baseline;
  /* visually shows "*" — text content in HTML is ignored */
  font-size: 0;
}
.req::after { content: "*"; font-size: 14px; }
.opt {
  color: var(--gold);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  margin-left: 6px;
  vertical-align: baseline;
  /* visually shows "optional" — text content in HTML is ignored */
  font-size: 0;
}
.opt::after { content: "optional"; font-style: italic; font-weight: 500; font-size: 12px; }

/* "Same as ..." toggle — checkbox row that hides downstream fields */
.toggle-row {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: 0.15s;
}
.toggle-row:hover { border-color: var(--navy); }
.toggle-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-row strong { font-weight: 600; color: var(--ink); }

/* "Same as correspondence" — fields stay visible but get a locked look */
.permanent-fields { transition: opacity 0.2s; }
.input.is-locked,
input.is-locked,
select.is-locked,
textarea.is-locked {
  background: var(--bg);
  color: var(--ink-soft);
  cursor: not-allowed;
  opacity: 0.85;
  border-style: dashed;
}

/* Upload card — single document upload with icon + heading + file input */
.upload-card {
  background: var(--white);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  transition: 0.18s;
  position: relative;
}

/* REQUIRED but not yet uploaded — light red */
.upload-card.is-required:not(.is-uploaded):not(.is-uploading) {
  background: var(--rose-100);
  border-color: var(--rose);
  border-style: solid;
}
/* Server-side error (after a failed submit) — also red */
.upload-card:has(ul.errorlist),
.upload-card:has(.errorlist) {
  background: var(--rose-100);
  border-color: var(--rose);
  border-style: solid;
}
.upload-card .errorlist,
.upload-card ul.errorlist {
  color: var(--rose);
  font-weight: 600;
  margin-top: 10px;
}

/* OPTIONAL and not uploaded — neutral white */
.upload-card.is-optional:not(.is-uploaded):not(.is-uploading) {
  background: var(--white);
  border: 1.5px dashed var(--border);
}

/* UPLOADING state — saffron pulse */
.upload-card.is-uploading {
  background: var(--saffron-100);
  border-color: var(--saffron);
  border-style: solid;
}

/* UPLOADED state — light green */
.upload-card.is-uploaded:not(:has(ul.errorlist)):not(:has(.errorlist)) {
  background: var(--emerald-100);
  border-color: var(--emerald);
  border-style: solid;
}

/* Error state from async upload */
.upload-card.is-error {
  background: var(--rose-100);
  border-color: var(--rose);
  border-style: solid;
}
.upload-card-head {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 12px;
}
.upload-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-100); border-radius: 10px;
  font-size: 18px;
}
.upload-card-head h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.upload-card-head p { margin: 4px 0 0; font-size: 12.5px; }
.upload-card input[type="file"] {
  width: 100%; font-size: 13px;
  padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
}
.upload-card input[type="file"]::-webkit-file-upload-button {
  background: var(--ink); color: var(--white);
  border: 0; padding: 7px 14px; border-radius: 6px;
  font-weight: 600; font-size: 12.5px;
  cursor: pointer; margin-right: 12px;
}
.upload-card input[type="file"]:hover::-webkit-file-upload-button { background: var(--saffron); }
.upload-existing {
  margin-top: 8px;
  font-size: 12.5px; color: var(--emerald);
  background: var(--emerald-100); padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Live status banner shown by the async upload JS */
.upload-status {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
}
.upload-status.uploading { background: var(--white); color: var(--saffron); }
.upload-status.success   { background: var(--white); color: #065f46; }
.upload-status.error     { background: var(--white); color: var(--rose); }

/* Live preview — image thumbnail or PDF icon shown immediately on file select */
.upload-preview {
  display: flex; align-items: center; gap: 14px;
  margin-top: 12px;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.upload-preview img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}
.upload-preview .preview-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold-100);
  border-radius: 8px;
  font-size: 28px;
}
.upload-preview .preview-meta { min-width: 0; flex: 1; }
.upload-preview .preview-name {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  word-break: break-all; line-height: 1.3;
}
.upload-preview .preview-size {
  font-size: 12px; color: var(--mute); margin-top: 2px;
}

/* Progress bar during upload */
.upload-progress {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 999px;
  border: 1px solid var(--border);
}
.upload-progress-track {
  flex: 1;
  height: 8px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--gold));
  transition: width 0.18s ease;
  border-radius: 999px;
}
.upload-progress-pct {
  font-size: 12px; font-weight: 700; color: var(--saffron);
  min-width: 40px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Marks row — Marking System wider, Obtained/Out of narrow */
.marks-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .marks-row { grid-template-columns: 1fr; } }

/* Education — per-level section, just a heading + dashed divider */
.edu-section {
  /* uses .form-section base — no card box */
}
.edu-section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.edu-section-head h3 { color: var(--navy); margin: 0; font-size: 18px; }

/* Education accordion — collapsible card per level */
.edu-acc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: 0.18s;
}
.edu-acc.is-required { border-left: 3px solid var(--rose); }
.edu-acc.is-optional { border-left: 3px solid var(--border); }
.edu-acc[open] {
  border-color: var(--navy);
  box-shadow: var(--shadow-lift);
}
.edu-acc[open].is-required { border-left-color: var(--rose); }
.edu-acc-head {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: var(--white);
  transition: background 0.15s;
}
.edu-acc-head:hover { background: var(--bg); }
.edu-acc-head::-webkit-details-marker,
.edu-acc-head::marker { display: none; }
.edu-acc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  color: var(--mute);
  font-size: 14px; font-weight: 700;
  transition: transform 0.18s, color 0.15s;
}
.edu-acc[open] .edu-acc-icon { transform: rotate(90deg); color: var(--navy); }

.edu-acc-title {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.edu-acc-title strong { font-size: 16px; color: var(--ink); }
.edu-acc-summary {
  flex: 1 1 auto;
  text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.edu-acc-body {
  padding: 18px 22px 22px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 24%);
}

.row-tag {
  display: inline-block;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  line-height: 1;
}
.row-tag.req-tag { background: var(--rose-100); color: var(--rose); }
.row-tag.opt-tag { background: #f1efe8; color: var(--mute); }

@media (max-width: 640px) {
  .edu-acc-head { gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
  .edu-acc-summary { flex: 1 0 100%; text-align: left; padding-left: 38px; }
  .edu-acc-body { padding: 14px; }
}

/* Legacy table styles (no longer used, kept harmless) */
.edu-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  overflow-x: auto;
  box-shadow: var(--shadow-soft);
}
.edu-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  font-size: 13.5px;
  font-family: var(--font-sans);
}
.edu-table thead th {
  background: var(--bg);
  padding: 11px 9px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.edu-table tbody td,
.edu-table tbody th {
  padding: 12px 9px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-soft);
}
.edu-table tbody tr:last-child td,
.edu-table tbody tr:last-child th { border-bottom: 0; }

/* Row-header column ("Level") */
.edu-table tbody th.row-header {
  width: 150px;
  background: var(--bg);
  text-align: left;
  font-weight: 700;
  position: relative;
  padding-left: 16px;
}
.edu-table tbody tr.is-required th.row-header { border-left: 3px solid var(--rose); }
.edu-table tbody tr.is-optional th.row-header { border-left: 3px solid var(--border); }
.edu-table .row-header strong {
  display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px;
}
.edu-table .row-tag {
  display: inline-block;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
  line-height: 1;
}
.edu-table .req-tag { background: var(--rose-100); color: var(--rose); }
.edu-table .opt-tag { background: #f1efe8; color: var(--mute); }

/* Compact inputs sized to the cell */
.edu-table input[type="text"],
.edu-table input[type="number"],
.edu-table input:not([type]),
.edu-table select {
  width: 100%; min-width: 100px;
  padding: 8px 10px;
  font-size: 13.5px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
}
.edu-table input[type="text"]:focus,
.edu-table input[type="number"]:focus,
.edu-table input:not([type]):focus,
.edu-table select:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-100);
}
.edu-table input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  accent-color: var(--navy);
  cursor: pointer;
}

/* Column widths */
.edu-table .col-institute { min-width: 200px; }
.edu-table .col-board     { min-width: 170px; }
.edu-table .col-degree    { min-width: 130px; }
.edu-table .col-roll      { min-width: 100px; }
.edu-table .col-marks     { min-width: 90px; width: 90px; }
.edu-table .col-cgpa      { width: 70px; text-align: center; }
.edu-table .col-year      { min-width: 130px; }

.edu-table .col-marks input { min-width: 70px; }
.edu-table .text-center { text-align: center; }

.edu-table tbody tr.is-required td { background: rgba(254,242,242,0.20); }

/* Error row spans full width */
.edu-table tr.error-row td { padding: 0 9px 8px; background: var(--white); }

@media (max-width: 900px) {
  .edu-table thead th, .edu-table tbody td, .edu-table tbody th { padding: 9px 7px; font-size: 12.5px; }
  .edu-table tbody th.row-header { width: 120px; }
}

/* Currency-prefix wrapped input */
.input-prefix-wrap {
  position: relative;
  display: flex; align-items: stretch;
}
.input-prefix {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--ink-soft);
  font-weight: 700; font-size: 16px;
}
.input-prefix-wrap .input,
.input-prefix-wrap input {
  border-top-left-radius: 0; border-bottom-left-radius: 0;
}

/* Hover info tooltip — used selectively where field meaning could be unclear */
.info-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 1.5px solid var(--mute);
  color: var(--mute);
  border-radius: 50%;
  font-family: 'Times New Roman', serif;
  font-style: italic;
  font-size: 11px; font-weight: 700;
  cursor: help;
  margin-left: 6px;
  vertical-align: baseline;
  position: relative;
  transition: 0.15s;
  user-select: none;
}
.info-tip:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 9px 13px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 12.5px; font-weight: 500;
  font-style: normal;
  white-space: normal;
  width: 260px;
  text-align: left;
  line-height: 1.4;
  letter-spacing: normal;
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}
.info-tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.info-tip:hover::after,
.info-tip:hover::before {
  opacity: 1;
}

/* Field-marker legend at top of form */
.field-legend {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; color: var(--mute); font-weight: 500;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.field-legend .req, .field-legend .opt { margin-left: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.row-name { display: grid; grid-template-columns: 140px 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2, .row-3, .row-name { grid-template-columns: 1fr; } }

.form-section { padding: 24px 0; border-top: 1px dashed var(--border); margin-top: 18px; }
.form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section h3 { color: var(--navy); margin-bottom: 16px; }

/* ================================================================
   PROMINENT QUESTION — eligibility-relevant Yes/No
   ================================================================ */
.prominent-question {
  background: linear-gradient(180deg, var(--saffron-100) 0%, var(--white) 60%);
  border: 1.5px solid var(--saffron-200);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 18px 0 0;
  transition: 0.2s;
}
.prominent-question + .prominent-question { margin-top: 14px; }
.prominent-question.is-yes {
  background: linear-gradient(180deg, var(--navy-soft) 0%, var(--white) 60%);
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(10,94,62,.10);
}
.prominent-question-head {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 14px;
}
.prominent-question-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 2px solid var(--saffron);
  color: var(--saffron);
  border-radius: 50%;
  font-size: 18px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(200,146,36,.20);
}
.prominent-question.is-yes .prominent-question-icon {
  border-color: var(--navy); color: var(--navy);
  box-shadow: 0 2px 6px rgba(10,94,62,.20);
}
.prominent-question h4 {
  font-size: 17px; font-weight: 700; color: var(--ink); margin: 4px 0 0;
  letter-spacing: -0.01em;
}
.prominent-question p { color: var(--ink-soft); margin: 4px 0 0; }

/* Pill toggle for Yes/No — uses input + label adjacent sibling (no :has()) */
.yesno { display: flex; gap: 10px; flex-wrap: wrap; padding-left: 54px; }
.yesno-option { position: relative; cursor: pointer; user-select: none; }
.yesno-option input[type="radio"] {
  position: absolute; opacity: 0;
  width: 0; height: 0; pointer-events: none;
}
.yesno-pill {
  display: inline-block;
  padding: 11px 28px; min-width: 110px; text-align: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 999px;
  font-weight: 600; font-size: 14.5px;
  color: var(--ink-soft);
  transition: 0.15s;
}
.yesno-option:hover .yesno-pill { border-color: var(--navy); color: var(--navy); }
.yesno-option input:focus-visible + .yesno-pill {
  outline: 3px solid var(--saffron-200); outline-offset: 2px;
}
.yesno-option input:checked + .yesno-pill {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10,94,62,.22);
}

.conditional-field {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px dashed var(--navy);
  border-radius: 12px;
  margin-left: 54px;
}
.prominent-question.is-yes .conditional-field { display: block; }
.conditional-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px;
}

@media (max-width: 640px) {
  .prominent-question { padding: 18px; }
  .yesno, .conditional-field { padding-left: 0; margin-left: 0; }
}

/* ================================================================
   TOAST — floating, non-blocking notifications
   ================================================================ */
.toast-stack {
  position: fixed; bottom: 22px; right: 22px;
  z-index: 100;
  display: flex; flex-direction: column-reverse; gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  box-shadow: var(--shadow-pop);
  font-size: 14px; font-weight: 500;
  max-width: 380px;
  color: var(--ink);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast-info    { border-left-color: var(--navy); }
.toast-success { border-left-color: var(--emerald); color: #065f46; }
.toast-error   { border-left-color: var(--rose);    color: #991b1b; }
@media (max-width: 480px) {
  .toast-stack { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}

/* ================================================================
   STEPPER (form progress) — clickable for free navigation
   ================================================================ */
.stepper {
  display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none;
}
.stepper li {
  flex: 1 1 auto; min-width: 120px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  transition: 0.15s;
}
.stepper li a {
  display: block;
  padding: 10px 12px;
  font-size: 13px; font-weight: 600;
  color: var(--mute);
  text-decoration: none;
  text-align: center;
  border-radius: 10px;
}
.stepper li a:hover { color: var(--navy); background: rgba(0,0,0,0.04); text-decoration: none; }

/* Completion state — applies always; active state overlays via border weight */
.stepper li.is-empty   { background: var(--rose-100);    border-color: #f4b8b8; }
.stepper li.is-empty a { color: var(--rose); }
.stepper li.is-partial   { background: var(--gold-100); border-color: var(--gold-200); }
.stepper li.is-partial a { color: var(--gold); }
.stepper li.is-done   { background: var(--emerald-100); border-color: #6ee7b7; }
.stepper li.is-done a { color: #047857; }

/* Active step — stronger border + lift */
.stepper li.is-active {
  border-width: 2px;
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(10,94,62,.15);
  transform: translateY(-1px);
}
.stepper li.is-active a { color: var(--navy); font-weight: 700; }

/* ================================================================
   PROGRAMME / DASHBOARD CARDS
   ================================================================ */
.programme-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; background: var(--white); box-shadow: var(--shadow-lift);
  position: relative; overflow: hidden;
}
.programme-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--saffron));
}
.programme-card h2 { color: var(--ink); }
.programme-card .meta { color: var(--mute); margin: 8px 0 22px; font-size: 14px; }

/* Pills / tags / status badges */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  font-size: 11.5px; font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-draft     { background: var(--gold-100); color: var(--gold); }
.tag-submitted { background: var(--indigo-100); color: var(--indigo); }
.tag-paid      { background: var(--emerald-100); color: var(--emerald); }
.tag-locked    { background: #f3f4f6; color: var(--mute); }

/* ================================================================
   ADMISSION JOURNEY — vertical timeline with date pills + cards
   ================================================================ */
.journey {
  list-style: none; padding: 0; margin: 44px 0 0;
  position: relative;
}
/* central rail line */
.journey::before {
  content: ""; position: absolute;
  left: 110px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(to bottom,
    var(--navy) 0%,
    var(--navy) 92%,
    var(--saffron) 100%);
  opacity: 0.35;
}
.journey-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 36px;
  align-items: stretch;
  padding-bottom: 26px;
  position: relative;
}
.journey-item:last-child { padding-bottom: 0; }

/* Left rail — date pill + step label */
.journey-rail {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: 6px;
}
.journey-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 92px; height: 92px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(10,94,62,.12);
  position: relative;
  z-index: 1;
  transition: 0.2s;
}
.journey-date .d {
  font-family: var(--font-serif); font-weight: 700;
  font-size: 26px; color: var(--navy); line-height: 1;
  letter-spacing: -0.02em;
}
.journey-date .m {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--mute); text-transform: uppercase;
  margin-top: 4px;
}
/* highlighted date pill (test day, orientation) */
.journey-date.is-highlight {
  background: linear-gradient(140deg, var(--navy), var(--navy-dark));
  border-color: var(--navy-dark);
  box-shadow: 0 8px 24px rgba(10,94,62,.32);
}
.journey-date.is-highlight .d { color: var(--white); }
.journey-date.is-highlight .m { color: var(--saffron-200); }

.journey-end {
  font-family: var(--font-serif); font-style: italic; font-weight: 700;
  font-size: 14px; color: var(--saffron); margin-top: 6px;
}
.journey-step {
  margin-top: 8px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--saffron);
}

.journey-item:hover .journey-date {
  transform: translateY(-2px) scale(1.02);
  border-color: var(--saffron);
}

/* Right card */
.journey-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: 0.2s;
}
.journey-card::before {
  /* small connector arrow from rail to card */
  content: ""; position: absolute;
  left: -10px; top: 30px;
  width: 18px; height: 18px;
  background: var(--white);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}
.journey-item:hover .journey-card {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  border-color: var(--saffron-200);
}
.journey-icon {
  position: absolute; top: -14px; right: 22px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--saffron-100), var(--gold-100));
  border-radius: 12px;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(200,146,36,.20);
}
.journey-card h3 {
  font-size: 20px; color: var(--ink);
  margin: 4px 0 10px; padding-right: 56px;
  letter-spacing: -0.015em;
}
.journey-card p { color: var(--ink-soft); margin: 0; }
.journey-card p + p { margin-top: 8px; }
.journey-card a { color: var(--navy); font-weight: 600; }
.journey-card a:hover { color: var(--saffron); }

/* "Major" steps (test day) — accent stripe on card */
.journey-item.is-major .journey-card {
  border-color: var(--saffron-200);
  background: linear-gradient(180deg, var(--saffron-100) 0%, var(--white) 24%);
}
/* "Final" step (orientation) — gold border */
.journey-item.is-final .journey-card {
  border-color: var(--saffron);
  background: linear-gradient(180deg, var(--saffron-100) 0%, var(--white) 50%);
  box-shadow: 0 12px 32px -8px rgba(200,146,36,.25);
}

/* Nested paper cards inside step 3 */
.paper-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 14px;
}
.paper-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.paper-card .paper-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 4px;
}
.paper-card strong { display: block; font-size: 15.5px; color: var(--ink); }
.paper-card .paper-meta { font-size: 12.5px; color: var(--mute); font-weight: 500; margin: 3px 0 8px; }
.paper-card p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

@media (max-width: 640px) {
  .journey { padding-left: 0; }
  .journey::before { left: 26px; }
  .journey-item { grid-template-columns: 56px 1fr; gap: 18px; padding-bottom: 22px; }
  .journey-rail { padding-top: 4px; }
  .journey-date { width: 52px; height: 52px; border-radius: 14px; }
  .journey-date .d { font-size: 16px; }
  .journey-date .m { font-size: 9px; margin-top: 2px; }
  .journey-end { display: none; }
  .journey-step { font-size: 9.5px; margin-top: 6px; }
  .journey-card { padding: 18px 18px 16px; }
  .journey-card::before { display: none; }
  .journey-card h3 { padding-right: 48px; font-size: 17px; }
  .journey-icon { width: 32px; height: 32px; font-size: 16px; top: -10px; right: 14px; }
  .paper-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   TIMELINE (schedule)
   ================================================================ */
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.timeline-item {
  position: relative;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: 0.2s;
}
.timeline-item:hover { border-color: var(--saffron-200); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.timeline-item .when {
  font-family: var(--font-serif); font-weight: 700; font-style: italic;
  color: var(--navy); font-size: 22px; line-height: 1.1;
}
.timeline-item .what {
  margin-top: 8px; font-size: 14px; color: var(--ink-soft);
}
.timeline-item .phase {
  display: inline-block;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--saffron); margin-bottom: 6px;
}

/* ================================================================
   FEE COMPARISON — simple side-by-side table
   ================================================================ */
.fee-compare {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.fee-compare table {
  width: 100%; border-collapse: collapse;
}
.fee-compare thead th {
  padding: 22px 20px;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.fee-compare thead .fc-label { background: var(--white); }
.fee-compare thead .fc-merit { background: var(--saffron-100); }
.fee-compare thead .fc-sfs   { background: var(--navy-soft); }
.fee-compare .fc-cat {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.fee-compare thead .fc-merit .fc-cat { color: var(--saffron); }
.fee-compare thead .fc-sfs   .fc-cat { color: var(--navy); }
.fee-compare .fc-seats {
  font-size: 12px; color: var(--mute); margin-top: 4px;
  font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}

.fee-compare tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.fee-compare tbody tr:last-child td { border-bottom: 0; }
.fee-compare tbody td.fc-label {
  text-align: left;
  font-weight: 600; color: var(--ink); font-size: 15px;
  width: 50%;
}
.fee-compare tbody td.fc-label small {
  display: block;
  font-size: 12px; font-weight: 400; color: var(--mute);
  margin-top: 2px;
}
.fee-compare tbody td.fc-amount {
  text-align: center;
  font-family: var(--font-serif); font-weight: 700;
  font-size: 20px; color: var(--navy);
  letter-spacing: -0.01em;
}
.fee-compare tbody td.fc-amount small {
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 500; color: var(--mute);
  letter-spacing: 0;
}

.fee-compare tbody tr.fc-highlight {
  background: linear-gradient(90deg, var(--saffron-100) 0%, var(--saffron-100) 50%, var(--navy-soft) 50%, var(--navy-soft) 100%);
}
.fee-compare tbody tr.fc-highlight td.fc-label {
  background: var(--white);
}
.fee-compare tbody tr.fc-highlight td.fc-amount {
  font-size: 24px;
}

@media (max-width: 720px) {
  .fee-compare thead .fc-cat { font-size: 18px; }
  .fee-compare tbody td { padding: 12px 14px; font-size: 13.5px; }
  .fee-compare tbody td.fc-amount { font-size: 17px; }
  .fee-compare tbody tr.fc-highlight td.fc-amount { font-size: 19px; }
}

/* ================================================================
   FEE TABS (Merit / SFS) — legacy, retained for backward compat
   ================================================================ */
.fee-tabs {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-soft);
}
.fee-tab-headers { display: flex; gap: 8px; margin-bottom: 18px; }
.fee-tab-headers button {
  flex: 1; padding: 14px 20px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 14px; color: var(--ink-soft);
  transition: 0.15s;
}
.fee-tab-headers button.is-active {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.fee-tab-pane { display: none; }
.fee-tab-pane.is-active { display: block; }
.fee-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px;
}
.fee-table th, .fee-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.fee-table th { color: var(--mute); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.fee-table td.amount { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 16px; text-align: right; }

/* ================================================================
   ALERTS / TABLES (existing form pages still use these)
   ================================================================ */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-weight: 600; }

.alert {
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 14px; border: 1px solid;
}
.alert-info    { background: var(--navy-soft); border-color: #c7d8ff; color: var(--navy); }
.alert-success { background: var(--emerald-100); border-color: #6ee7b7; color: #065f46; }
.alert-warning { background: var(--gold-100); border-color: #fcd34d; color: #92400e; }
.alert-error   { background: var(--rose-100); border-color: #fca5a5; color: #991b1b; }

/* OTP input — single field (legacy / fallback) */
.otp-input {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700;
  letter-spacing: 0.5em; text-align: center; padding-left: 24px;
  color: var(--navy);
}

/* Eligibility gate — full-screen modal-style overlay */
.eligibility-overlay {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--saffron-100) 100%);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 20px;
}
.eligibility-card {
  background: var(--white);
  border-radius: 18px;
  padding: 32px 36px;
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-pop);
  border: 1px solid var(--border);
}
.eligibility-section {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px 20px;
}
.eligibility-section h2 {
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.eligibility-list {
  padding-left: 22px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.eligibility-list li { margin-bottom: 6px; line-height: 1.5; }
.eligibility-list ul { margin: 4px 0 4px 0; padding-left: 22px; }

.eligibility-confirm {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: var(--gold-100);
  border: 2px solid var(--gold-200);
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 16px;
}
.eligibility-confirm input[type="checkbox"] {
  width: 22px; height: 22px;
  margin: 0; flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
  margin-top: 2px;
}
.eligibility-confirm span { font-size: 14.5px; color: var(--ink); line-height: 1.5; }

.eligibility-actions {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.eligibility-actions .btn-primary:disabled {
  background: var(--mute);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 640px) {
  .eligibility-card { padding: 22px 18px; border-radius: 14px; }
  .eligibility-actions { flex-direction: column-reverse; }
  .eligibility-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* FAQ accordion (Help page) */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: 0.15s;
}
.faq-item[open] { border-color: var(--navy); box-shadow: var(--shadow-soft); }
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-size: 14.5px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px; color: var(--mute);
  transition: transform 0.18s, color 0.15s;
  flex-shrink: 0; margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--navy); }
.faq-item summary:hover { background: var(--bg); }
.faq-item .faq-body {
  padding: 0 18px 16px;
  color: var(--ink-soft);
  font-size: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.faq-item .faq-body ul { padding-left: 22px; margin: 8px 0; }
.faq-item .faq-body li { margin-bottom: 4px; }
.faq-item .faq-body p { margin: 8px 0; }

/* Review page — uploaded document checklist */
.review-uploads { margin-top: 8px; }
.review-doc-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.review-doc-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}
.review-doc-list li .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.review-doc-list li.is-uploaded {
  background: var(--emerald-100);
  color: #065f46;
}
.review-doc-list li.is-uploaded .dot {
  background: var(--emerald);
  color: var(--white);
}
.review-doc-list li.is-uploaded .dot::after { content: "✓"; }
.review-doc-list li.is-missing {
  background: var(--rose-100);
  color: var(--rose);
}
.review-doc-list li.is-missing .dot {
  background: var(--rose);
  color: var(--white);
}
.review-doc-list li.is-missing .dot::after { content: "✗"; }
.review-doc-list li .muted { word-break: break-all; }

/* Inline doc cells — name | thumbnail/icon | filename | view link */
.review-doc-list li .doc-name {
  font-weight: 600;
  flex: 0 0 auto;
  min-width: 220px;
}
.review-doc-list li .doc-thumb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--white);
  flex-shrink: 0;
}
.review-doc-list li .doc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-doc-list li .doc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  font-size: 22px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.review-doc-list li .doc-filename {
  flex: 1 1 auto;
  font-size: 12.5px;
  color: var(--ink-soft);
  word-break: break-all;
  min-width: 0;
}
.review-doc-list li.is-uploaded .doc-filename { color: #047857; opacity: 0.85; }
.review-doc-list li.is-missing .doc-filename { color: var(--rose); font-style: italic; }
.review-doc-list li .doc-link {
  flex-shrink: 0;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 12px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  text-decoration: none;
  transition: 0.15s;
}
.review-doc-list li .doc-link:hover {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 640px) {
  .review-doc-list li { gap: 8px; }
  .review-doc-list li .doc-name { min-width: 100%; flex: 1 1 100%; }
  .review-doc-list li .doc-thumb,
  .review-doc-list li .doc-icon { width: 36px; height: 36px; }
}

/* OTP — 6 separate digit boxes */
.otp-boxes {
  display: flex; gap: 10px;
  margin-top: 6px;
  justify-content: space-between;
  max-width: 420px;
}
.otp-boxes input {
  flex: 1 1 0;
  width: 0; min-width: 0;
  aspect-ratio: 1 / 1.15;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  caret-color: var(--saffron);
  transition: 0.15s;
  -moz-appearance: textfield;
}
.otp-boxes input::-webkit-outer-spin-button,
.otp-boxes input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-boxes input:focus {
  outline: none;
  border-color: var(--saffron);
  box-shadow: 0 0 0 4px var(--saffron-100);
  transform: translateY(-1px);
}
.otp-boxes input:not(:placeholder-shown),
.otp-boxes input[value]:not([value=""]) {
  border-color: var(--navy);
}
@media (max-width: 480px) {
  .otp-boxes { gap: 6px; }
  .otp-boxes input { font-size: 24px; border-radius: 10px; }
}

/* ================================================================
   CTA BANNER (closing call-to-action)
   ================================================================ */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  text-align: center;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(234,88,12,.35), transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(217,119,6,.25), transparent 55%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); }
.cta-banner h2 .accent { font-family: var(--font-serif); font-style: italic; color: var(--gold-200); }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 14px auto 28px; max-width: 540px; }
.cta-banner .btn-primary {
  background: var(--white); color: var(--ink);
}
.cta-banner .btn-primary:hover { background: var(--saffron); color: var(--white); }

/* ================================================================
   DASHBOARD layout — left sidebar + main (no top bar above)
   ================================================================ */
.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--border);
  padding: 24px 18px 18px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; align-self: flex-start;
  height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 6px 18px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 var(--saffron);
}
.sidebar-brand-name { font-weight: 800; color: var(--navy); font-size: 15px; }
.sidebar-brand-sub { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; }

.sidebar-nav { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: 0.12s;
}
.sidebar-link:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.sidebar-link.is-active {
  background: var(--ink); color: var(--white); font-weight: 600;
}
.sidebar-link.is-active:hover { background: var(--saffron); color: var(--white); }
.sidebar-link-muted { color: var(--mute); }
.sidebar-ico { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.sidebar-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px;
  white-space: nowrap;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.sidebar-link.is-active .sidebar-badge { background: rgba(255,255,255,0.18); color: var(--white); }
.sidebar-badge-draft     { background: var(--gold-100); color: var(--gold); }
.sidebar-badge-submitted { background: var(--indigo-100); color: var(--indigo); }
.sidebar-badge-paid      { background: var(--emerald-100); color: var(--emerald); }
.sidebar-badge-cancelled { background: var(--rose-100); color: var(--rose); }

.sidebar-substeps {
  list-style: none; padding: 4px 0 4px 32px; margin: 2px 0 6px;
  display: flex; flex-direction: column; gap: 1px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
.sidebar-substeps li a {
  display: block; font-size: 13px; padding: 6px 10px;
  color: var(--mute); border-radius: 6px; text-decoration: none;
}
.sidebar-substeps li a:hover { color: var(--navy); background: var(--bg); }
.sidebar-substeps li.is-active a { color: var(--saffron); font-weight: 600; background: var(--saffron-100); }
.sidebar-substeps li.is-done a::before { content: "✓ "; color: var(--emerald); font-weight: 700; }

.sidebar-divider { height: 1px; background: var(--border); margin: 12px 0; }

.sidebar-user {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--saffron-200), var(--gold-200));
  color: var(--saffron);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.sidebar-user-meta { min-width: 0; }
.sidebar-user-name { font-weight: 600; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-mobile { font-size: 12px; color: var(--mute); }

.dashboard-main { background: var(--bg); min-width: 0; }
.dashboard-main-inner { max-width: 940px; margin: 0 auto; padding: 36px 28px; }

@media (max-width: 900px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0;
    height: auto;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    flex-direction: row; align-items: center; gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-brand { display: none; }
  .sidebar-nav {
    flex-direction: row; flex-wrap: nowrap; gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .sidebar-link { white-space: nowrap; padding: 7px 11px; font-size: 12.5px; flex-shrink: 0; }
  .sidebar-link .sidebar-ico { width: 14px; height: 14px; }
  .sidebar-substeps, .sidebar-divider, .sidebar-badge { display: none; }
  .sidebar-user {
    margin-top: 0; padding-top: 0; border-top: 0;
    flex-shrink: 0;
    gap: 6px;
  }
  .sidebar-user-meta { display: none; }
  .sidebar-user-avatar { width: 30px; height: 30px; font-size: 12px; }
  .dashboard-main-inner { padding: 22px 16px; }
}

/* ================================================================
   STAFF (admin) layout
   ================================================================ */
body.staff-body { background: #f5f1ea; }

.staff-topbar {
  background: var(--ink); color: var(--white);
  position: sticky; top: 0; z-index: 50;
}
.staff-topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 22px; height: 60px;
}
.staff-brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none; font-weight: 600;
}
.staff-brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--saffron); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.staff-brand-name { font-size: 15px; }
.staff-brand-name small { color: var(--saffron-200); font-weight: 500; }
.staff-topbar-right { display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,0.85); }
.staff-topbar-right .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.25); }
.staff-topbar-right .btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.staff-shell { min-height: calc(100vh - 60px); }
.staff-shell.staff-shell-grid {
  display: grid; grid-template-columns: 230px 1fr;
}
.staff-sidebar {
  background: var(--white); border-right: 1px solid var(--border);
  padding: 18px 14px;
  position: sticky; top: 60px; align-self: flex-start;
  height: calc(100vh - 60px); overflow-y: auto;
}
.staff-nav { display: flex; flex-direction: column; gap: 2px; }
.staff-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-soft); border-radius: 10px;
  text-decoration: none;
}
.staff-link:hover { background: var(--bg); color: var(--navy); text-decoration: none; }
.staff-link.is-active { background: var(--ink); color: var(--white); font-weight: 600; }
.staff-link.is-active:hover { background: var(--saffron); color: var(--white); }
.staff-link-muted { color: var(--mute); font-size: 13px; }

.staff-main { padding: 28px 32px 60px; min-width: 0; }
.staff-page-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px; flex-wrap: wrap; margin-bottom: 22px;
}
.staff-page-header h1 { font-size: 26px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  transition: 0.2s;
}
.stat-card:hover { border-color: var(--saffron-200); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.stat-card .label {
  text-transform: uppercase; font-size: 11px; letter-spacing: 0.12em;
  color: var(--mute); font-weight: 700;
}
.stat-card .value { font-family: var(--font-serif); font-size: 32px; font-weight: 700; color: var(--ink); margin-top: 4px; line-height: 1; }
.stat-card .delta { font-size: 12px; color: var(--mute); margin-top: 6px; }
.stat-card.is-paid .value { color: var(--emerald); }
.stat-card.is-revenue .value { color: var(--saffron); }

.data-table {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; width: 100%; border-collapse: collapse; font-size: 14px;
}
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border-soft); }
.data-table th { background: var(--bg); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table a { color: var(--navy); font-weight: 600; }
.data-table a:hover { color: var(--saffron); }

.staff-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.staff-filters .input { width: auto; min-width: 220px; }

.pagination { display: flex; gap: 6px; margin-top: 18px; align-items: center; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 8px; font-size: 13px; }
.pagination a { background: var(--white); border: 1px solid var(--border); color: var(--ink-soft); text-decoration: none; }
.pagination a:hover { background: var(--bg); color: var(--navy); }
.pagination .current { background: var(--ink); color: var(--white); font-weight: 600; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.pill-draft     { background: var(--gold-100); color: var(--gold); }
.pill-submitted { background: var(--indigo-100); color: var(--indigo); }
.pill-paid      { background: var(--emerald-100); color: var(--emerald); }
.pill-cancelled, .pill-failed { background: var(--rose-100); color: var(--rose); }
.pill-created   { background: #e0e7ff; color: #3730a3; }
.pill-attempted { background: var(--gold-100); color: var(--gold); }

@media (max-width: 900px) {
  .staff-shell.staff-shell-grid { grid-template-columns: 1fr; }
  .staff-sidebar {
    position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border);
    padding: 10px 14px;
  }
  .staff-nav { flex-direction: row; flex-wrap: nowrap; gap: 4px; overflow-x: auto; }
  .staff-link { white-space: nowrap; padding: 8px 10px; font-size: 13px; }
}

/* ================================================================
   UTILITIES
   ================================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
