/* ═══════════════════════════════════════════════════════════════════════════
   ASUBEB Staff Advancement Portal — Master Stylesheet
   Matches uploaded design reference exactly
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Lato:wght@300;400;700&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────────────────────── */
:root {
  --navy:    #0D2B4E;
  --navy2:   #143660;
  --gold:    #B8892A;
  --gold2:   #D4A94A;
  --cream:   #F5F0E8;
  --white:   #FFFFFF;
  --red:     #B71C1C;
  --red-bg:  #FDF3F3;
  --green:   #1B5E20;
  --muted:   #6B7280;
  --border:  #D1C9B8;
  --input-bg:#FAFAF8;
  --shadow:  0 4px 24px rgba(13,43,78,.12);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', Arial, sans-serif;
  background: var(--cream);
  color: var(--navy);
  min-height: 100vh;
}
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.portal-header {
  background: var(--navy);
  padding: 0 32px;
  border-bottom: 4px solid var(--gold);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.portal-header-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; padding: 14px 0;
}
.portal-seal {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .65rem; font-weight: 700;
  color: var(--navy); letter-spacing: .05em;
}
.portal-seal svg { width: 40px; height: 40px; }
.portal-state  { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); font-weight: 700; }
.portal-title  { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--white); line-height: 1.2; }
.portal-sub    { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; letter-spacing: .04em; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 26px; border-radius: 7px;
  font-family: 'Lato', Arial, sans-serif;
  font-size: .88rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .18s; text-decoration: none;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy2); box-shadow: 0 4px 14px rgba(13,43,78,.25); color: var(--white); text-decoration: none; }
.btn-gold    { background: var(--gold);  color: var(--white); }
.btn-gold:hover { background: var(--gold2); box-shadow: 0 4px 14px rgba(184,137,42,.3); color: var(--white); text-decoration: none; }
.btn-green   { background: var(--green); color: var(--white); }
.btn-green:hover { background: #2E7D32; color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.btn-danger  { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #C62828; color: var(--white); text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: .78rem; }
.btn-block { width: 100%; display: block; text-align: center; }

/* ─── LANDING ────────────────────────────────────────────────────────────── */
.landing { max-width: 860px; margin: 0 auto; padding: 40px 24px 60px; }

.landing-hero { text-align: center; padding: 44px 0 32px; }
.landing-hero .kicker {
  display: inline-block; background: var(--gold); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 2px; margin-bottom: 14px;
}
.landing-hero h2 {
  font-family: 'Playfair Display', serif; font-size: 2.4rem;
  color: var(--navy); line-height: 1.2; margin-bottom: 12px;
}
.landing-hero p { font-size: 1rem; color: var(--muted); max-width: 540px; margin: 0 auto; line-height: 1.65; }

/* ─── WARNING BOX ────────────────────────────────────────────────────────── */
.warning-box {
  background: var(--red-bg);
  border: 2px solid var(--red);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 28px 0 36px;
  position: relative;
  overflow: hidden;
}
.warning-box::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px; background: var(--red);
}
.warning-box .w-title {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--red); margin-bottom: 10px;
}
.warning-box .w-title svg { width: 22px; height: 22px; flex-shrink: 0; }
.warning-box p  { font-size: .9rem; color: #7f1d1d; line-height: 1.65; margin-bottom: 8px; }
.warning-box p:last-child { margin-bottom: 0; }
.warning-box ul { padding-left: 20px; margin-top: 6px; }
.warning-box ul li { font-size: .88rem; color: #7f1d1d; line-height: 1.7; }
.warning-box strong { font-weight: 700; }

/* locked portal variant */
.warning-box.portal-locked { background: #FFF3CD; border-color: #D4A94A; }
.warning-box.portal-locked::before { background: #D4A94A; }
.warning-box.portal-locked .w-title { color: #7A5C10; }
.warning-box.portal-locked p { color: #5C4A00; }

/* ─── PROCESS CARDS ──────────────────────────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 20px; margin-top: 8px;
}
.proc-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: 12px; padding: 28px 22px;
  cursor: pointer; text-align: center;
  transition: all .22s ease; position: relative; overflow: hidden;
  text-decoration: none; display: block;
}
.proc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transition: transform .22s ease;
}
.proc-card.p-promotion::after  { background: var(--navy); }
.proc-card.p-conversion::after { background: var(--gold); }
.proc-card.p-confirm::after    { background: var(--green); }
.proc-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow); text-decoration: none; }
.proc-card:hover::after { transform: scaleX(1); }
.proc-card:hover .proc-icon { transform: scale(1.1); }

.proc-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; transition: transform .22s;
}
.p-promotion .proc-icon  { background: #E8EEF6; }
.p-conversion .proc-icon { background: #FDF5E4; }
.p-confirm .proc-icon    { background: #E8F5E9; }
.proc-icon svg { width: 28px; height: 28px; }
.p-promotion .proc-icon svg  { stroke: var(--navy); }
.p-conversion .proc-icon svg { stroke: var(--gold); }
.p-confirm .proc-icon svg    { stroke: var(--green); }

.proc-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 8px; }
.p-promotion h3  { color: var(--navy); }
.p-conversion h3 { color: #7A5C10; }
.p-confirm h3    { color: var(--green); }
.proc-card p { font-size: .83rem; color: var(--muted); line-height: 1.55; }

.proc-badge {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px;
  border-radius: 20px; margin-bottom: 12px;
}
.p-promotion .proc-badge  { background: #E8EEF6; color: var(--navy); }
.p-conversion .proc-badge { background: #FDF5E4; color: #7A5C10; }
.p-confirm .proc-badge    { background: #E8F5E9; color: var(--green); }

/* ─── FORM SHELL ─────────────────────────────────────────────────────────── */
.form-shell { max-width: 780px; margin: 0 auto; padding: 32px 24px 60px; }
.page-content { max-width: 860px; margin: 0 auto; padding: 16px 24px 60px; }

/* breadcrumb pill */
.proc-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px;
  cursor: pointer; transition: opacity .15s; text-decoration: none;
}
.proc-label:hover { opacity: .75; text-decoration: none; }
.proc-label svg { width: 14px; height: 14px; }
.lbl-promotion  { background: #E8EEF6; color: var(--navy); }
.lbl-conversion { background: #FDF5E4; color: #7A5C10; }
.lbl-confirm    { background: #E8F5E9; color: var(--green); }

/* ─── STEP BAR ───────────────────────────────────────────────────────────── */
.step-bar, .step-bar-inner {
  display: flex; align-items: flex-start; gap: 0;
  margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; width: 100%;
}
.step-bar-wrap { margin-bottom: 16px; }
.step-bar-wrap .step-bar-inner { margin-bottom: 0; }
.step-col { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 60px; }
.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
  border: 2.5px solid var(--border);
  background: var(--white); color: var(--muted);
  transition: all .25s;
}
.step-dot.step-done   { background: var(--navy); border-color: var(--navy); color: var(--white); }
.step-dot.step-active { border-color: var(--gold); color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(184,137,42,.15); }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 16px 4px 0; transition: background .25s; min-width: 12px; }
.step-line.step-done  { background: var(--navy); }
.step-lbl  { font-size: .68rem; color: var(--muted); margin-top: 5px; text-align: center; line-height: 1.3; }
.step-lbl.step-active { color: var(--gold); font-weight: 700; }
.step-lbl.step-done   { color: var(--navy); }

/* ─── FORM CARD ──────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(13,43,78,.06);
}
.form-card-header {
  background: var(--navy); padding: 18px 28px;
  display: flex; align-items: center; gap: 12px;
}
.form-card-header h2,
.form-card-header { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--white); }
.form-card-header.hdr-gold  { background: linear-gradient(135deg,#7A5C10,var(--gold)); }
.form-card-header.hdr-green { background: linear-gradient(135deg,var(--green),#2E7D32); }
.step-count { margin-left: auto; font-size: .75rem; color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: .06em; }

.form-card-body, .form-body { padding: 28px; }
.form-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; background: #F7F4EE; border-top: 1.5px solid var(--border);
}

/* ─── FIELDS ─────────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 22px; }
.field-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }

label {
  display: block; font-size: .8rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 6px;
}
label .req  { color: var(--red); margin-left: 2px; }
label .hint { font-size: .72rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; display: block; margin-top: 1px; }

input[type=text], input[type=email], input[type=tel],
input[type=date], input[type=number], input[type=password],
select, textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 7px;
  background: var(--input-bg);
  font-family: 'Lato', Arial, sans-serif; font-size: .9rem; color: var(--navy);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,137,42,.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
textarea { resize: vertical; min-height: 80px; }
input[readonly] { background: #F3F0EA; color: var(--muted); cursor: not-allowed; }
.form-control { /* alias */ width: 100%; }

/* validation messages */
.val-msg { display: block; font-size: .78rem; color: var(--red); margin-top: 4px; font-weight: 600; }

/* radio / check */
.radio-row, .radio-group { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 6px; }
.radio-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.radio-item input[type=radio] { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.radio-item span, .radio-item { font-size: .9rem; }

/* ─── SECTION TITLES ─────────────────────────────────────────────────────── */
.sec-title {
  font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--navy);
  margin-bottom: 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold); display: inline-block;
}
.sec-div { border: none; border-top: 1.5px solid var(--border); margin: 28px 0; }

/* ─── INFO / ALERT NOTES ─────────────────────────────────────────────────── */
.info-note {
  background: #EEF3FB; border: 1px solid #B3C6E0; border-radius: 6px;
  padding: 10px 14px; font-size: .82rem; color: var(--navy2); line-height: 1.55; margin-top: 8px;
}
.alert-danger  { background: var(--red-bg); border: 1.5px solid var(--red);   border-radius: 7px; padding: 12px 16px; font-size: .88rem; color: #7f1d1d; }
.alert-success { background: #E8F5E9;       border: 1.5px solid #4CAF50;      border-radius: 7px; padding: 12px 16px; font-size: .88rem; color: var(--green); }
.alert-info    { background: #EEF3FB;       border: 1.5px solid #90B4D8;      border-radius: 7px; padding: 12px 16px; font-size: .88rem; color: var(--navy2); }

/* ─── TABLES ─────────────────────────────────────────────────────────────── */
.data-table, .qual-table {
  width: 100%; border-collapse: collapse; font-size: .84rem;
}
.data-table th, .qual-table th {
  background: var(--navy); color: var(--white);
  padding: 10px 12px; text-align: left; font-weight: 700;
  font-size: .75rem; letter-spacing: .05em; text-transform: uppercase;
}
.data-table td, .qual-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tr:last-child td, .qual-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td, .qual-table tr:nth-child(even) td { background: #FAFAF7; }
.qual-table input, .qual-table select { padding: 7px 10px; font-size: .82rem; }

/* ─── UPLOAD ZONE ────────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 8px;
  padding: 16px; text-align: center; cursor: pointer;
  background: var(--input-bg); transition: border-color .18s, background .18s;
  position: relative;
}
.upload-zone:hover { border-color: var(--gold); background: #FFFDF5; }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-zone .uz-label { font-size: .8rem; color: var(--muted); }
.upload-zone .uz-icon svg { width: 24px; height: 24px; stroke: var(--muted); margin-bottom: 6px; }

.upload-row {
  display: grid; grid-template-columns: 160px 1fr auto;
  align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.upload-row:last-child { border-bottom: none; }
.upload-row .doc-name { font-size: .85rem; font-weight: 700; color: var(--navy); }
.upload-row .doc-type { font-size: .75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* ─── REVIEW / DECLARATION ───────────────────────────────────────────────── */
.review-section { margin-bottom: 24px; }
.review-section h4, .review-section-title {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.review-grid { }
.review-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #E8E4DC; font-size: .87rem; }
.review-row:last-child { border-bottom: none; }
.rv-key { color: var(--muted); flex: 0 0 220px; }
.rv-val { color: var(--navy); font-weight: 700; text-align: right; }

.declaration-box { background: #FFF8E7; border: 2px solid var(--gold); border-radius: 10px; padding: 20px; margin-top: 8px; }
.declaration-box p { font-size: .9rem; color: #5C4A00; line-height: 1.7; margin-bottom: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; margin-top: 10px; }
.check-item input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.check-item span { font-size: .88rem; color: var(--navy); line-height: 1.5; }

/* ─── DASHBOARD STATUS BANNER ────────────────────────────────────────────── */
.status-banner {
  background: var(--navy); color: var(--white); border-radius: 12px;
  padding: 24px 28px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.status-main { flex: 1; min-width: 160px; }
.status-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.status-value { font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700; color: var(--gold2); }
.status-detail { flex: 2; font-size: .83rem; color: rgba(255,255,255,.75); line-height: 1.8; }
.status-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sl-pending    { color: var(--gold); font-weight: 700; font-size: .95rem; }
.sl-eligible   { color: #4CAF50;    font-weight: 700; font-size: .95rem; }
.sl-ineligible { color: var(--red); font-weight: 700; font-size: .95rem; }
.shortlist-panel { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 20px 24px; margin-bottom: 24px; }
.shortlist-panel h3 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 10px; color: var(--navy); }
.shortlist-reason { margin-top: 10px; font-size: .85rem; color: var(--muted); background: #F7F4EE; padding: 10px 14px; border-radius: 6px; }
.admin-remark-box { background: #FFF8E7; border: 2px solid var(--gold); border-radius: 10px; padding: 20px 24px; margin-top: 24px; }
.admin-remark-box h4 { font-family: 'Playfair Display', serif; margin-bottom: 10px; color: #7A5C10; }

/* ─── VERIFY GATE (Default.aspx) ─────────────────────────────────────────── */
.verify-gate { max-width: 540px; margin: 48px auto; padding: 0 24px; }
.verify-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.verify-card-header { background: var(--navy); padding: 20px 28px; }
.verify-card-header h2 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); }
.verify-card-header p  { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.verify-card-body { padding: 28px; }

/* ─── AUTH PAGES (Login / ChangePassword / Credentials) ─────────────────── */
.auth-body { background: var(--cream); }
.auth-wrap { max-width: 520px; margin: 0 auto; padding: 40px 24px 60px; }
.auth-header {
  background: var(--navy); padding: 24px 28px;
  border-radius: 10px 10px 0 0; border-bottom: 4px solid var(--gold);
  display: flex; align-items: center; gap: 16px;
}
.auth-seal {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .6rem; font-weight: 700; color: var(--navy); letter-spacing: .04em;
}
.auth-state { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); font-weight: 700; margin-bottom: 2px; }
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--white); line-height: 1.2; }
.auth-sub   { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.auth-card  { background: var(--white); border: 1.5px solid var(--border); border-top: none; box-shadow: var(--shadow); }
.auth-card-hdr  { padding: 24px 28px 12px; }
.auth-card-hdr h2 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.auth-card-hdr p  { font-size: .83rem; color: var(--muted); }
.auth-card-body { padding: 16px 28px 28px; }
.auth-link  { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 16px; }
.auth-link a { color: var(--navy); font-weight: 700; }
.auth-footer { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 24px; }

/* credentials box */
.cred-box { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.cred-header { background: var(--navy); padding: 16px 24px; font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--white); border-bottom: 3px solid var(--gold); }
.cred-body  { padding: 24px; }
.cred-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.cred-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cred-table tr:last-child td { border-bottom: none; }
.cred-table td:first-child { color: var(--muted); width: 160px; }
.cred-table td:last-child  { color: var(--navy); font-weight: 700; }

/* ─── ADMIN ──────────────────────────────────────────────────────────────── */
.admin-header { background: var(--navy); color: var(--white); padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 1.25rem; }
.admin-content   { max-width: 1100px; margin: 0 auto; padding: 28px 24px 60px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 20px 22px; text-align: center; }
.stat-num  { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--navy); font-weight: 700; }
.stat-lbl  { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.filter-bar { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.admin-panel { background: var(--white); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.admin-panel-hdr { background: var(--navy); color: var(--white); padding: 14px 20px; font-family: 'Playfair Display', serif; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; }

/* ─── SUCCESS SCREEN ─────────────────────────────────────────────────────── */
.success-screen { text-align: center; padding: 60px 24px; }
.success-icon   { width: 80px; height: 80px; border-radius: 50%; background: #E8F5E9; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.success-icon svg { width: 40px; height: 40px; stroke: var(--green); stroke-width: 2.5; }
.success-screen h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); margin-bottom: 10px; }
.success-screen p  { color: var(--muted); font-size: .95rem; max-width: 420px; margin: 0 auto 28px; line-height: 1.65; }
.ref-box { background: var(--navy); color: var(--white); display: inline-block; padding: 12px 28px; border-radius: 8px; font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 28px; }
.ref-box span { font-size: .75rem; display: block; opacity: .6; margin-bottom: 2px; letter-spacing: .08em; text-transform: uppercase; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.page-footer { text-align: center; font-size: .75rem; color: var(--muted); padding: 28px 0; border-top: 1px solid var(--border); margin-top: 40px; }


/* ── Qualification tab spacing ──────────────────────────── */
.form-card-body .qual-tabs-wrap { margin-top: 20px; }
.sec-title { font-family: 'Playfair Display', serif; font-size: .95rem;
  color: var(--navy); font-weight: 700; border-bottom: 2px solid var(--gold);
  padding-bottom: 5px; display: inline-block; margin-bottom: 14px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .portal-header { padding: 0 16px; }
  .landing-hero h2 { font-size: 1.7rem; }
  .process-grid { grid-template-columns: 1fr; }
  .form-shell, .page-content { padding: 20px 16px 50px; }
  .form-card-body, .form-body { padding: 20px 16px; }
  .form-nav { padding: 16px; }
  .field-row, .field-row.three { grid-template-columns: 1fr; }
  .upload-row { grid-template-columns: 1fr; gap: 6px; }
  .rv-key { flex: 0 0 140px; }
  .status-banner { flex-direction: column; align-items: flex-start; }
}
