/* ═══════════════════════════════════════════════════════════
   The London College UCK — Online Application
   Design: Refined luxury academic portal
   Typography: Playfair Display + DM Sans
   Palette: Deep Navy · Champagne Gold · Pure White
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Core palette */
  --navy:       #1b1f4b;
  --navy-dk:    #111438;
  --navy-md:    #252968;
  --navy-lt:    #353a85;
  --navy-glass: rgba(27,31,75,.92);
  --gold:       #c9a84c;
  --gold-lt:    #e8cd87;
  --gold-dk:    #a07830;
  --gold-glow:  rgba(201,168,76,.25);
  --cream:      #faf8f3;
  --white:      #ffffff;
  --off:        #f4f5fb;
  --off2:       #eceef8;
  --lgrey:      #dde0f0;
  --mgrey:      #8891b0;
  --text:       #141629;
  --textl:      #5a6182;
  --texts:      #8891b0;

  /* Status */
  --ok:       #0f8a5a;
  --ok-lt:    #e8f7f1;
  --err:      #b5290a;
  --err-lt:   #fdf1ee;
  --warn:     #c07800;
  --warn-lt:  #fef8ec;

  /* Geometry */
  --r:     8px;
  --r2:    14px;
  --r3:    22px;
  --r4:    32px;

  /* Shadows */
  --sh:    0 2px 16px rgba(27,31,75,.07);
  --sh2:   0 8px 40px rgba(27,31,75,.13);
  --sh3:   0 20px 72px rgba(27,31,75,.18);
  --sh-g:  0 8px 32px rgba(201,168,76,.22);

  /* Motion */
  --tr:    .22s cubic-bezier(.4,0,.2,1);
  --tr-s:  .12s cubic-bezier(.4,0,.2,1);
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--off);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--gold-dk); }

/* ── Layout ──────────────────────────────────────────────── */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.main { flex: 1; }

/* ═══════════════════════════════════════════════════════════
   HEADER — Majestic full-width banner
   ═══════════════════════════════════════════════════════════ */
.site-header {
  background:
    linear-gradient(135deg,
      var(--navy-dk)   0%,
      var(--navy)      45%,
      var(--navy-md)   75%,
      var(--navy-lt)   100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,168,76,.3);
}

/* Ambient light blobs */
.site-header::before {
  content: '';
  position: absolute;
  top: -120px; right: -60px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(201,168,76,.12) 0%,
    rgba(201,168,76,.04) 40%,
    transparent 70%);
  pointer-events: none;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -80px; left: 80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(255,255,255,.05) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Gold accent line at bottom */
.header-gold-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--gold)    20%,
    var(--gold-lt) 50%,
    var(--gold)    80%,
    transparent  100%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 96px;
  padding: 0 32px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Brand */
.header-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding-right: 28px;
  border-right: 1px solid rgba(255,255,255,.14);
  transition: opacity var(--tr);
}
.header-brand:hover { opacity: .85; }
.header-college {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.header-portal {
  color: var(--gold-lt);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Page title (centre — replaces page-hero) */
.header-page-title {
  text-align: center;
  padding: 20px 0;
}
.header-page-title h1 {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.header-page-sub {
  color: rgba(255,255,255,.58);
  font-size: .8rem;
  display: block;
  margin-top: 5px;
  letter-spacing: .3px;
}

/* Right controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.header-nav a {
  color: rgba(255,255,255,.68);
  font-size: .8rem;
  padding: 7px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all var(--tr-s);
  font-weight: 500;
  letter-spacing: .2px;
}
.header-nav a:hover { color: var(--gold-lt); background: rgba(255,255,255,.07); }
.nav-ext { color: var(--gold) !important; }
.nav-ext:hover { color: var(--gold-lt) !important; }

.header-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(255,255,255,.13);
}
.header-email {
  color: rgba(255,255,255,.55);
  font-size: .75rem;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-signout {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: 6px 18px;
  border-radius: 30px;
  cursor: pointer;
  font-size: .75rem;
  font-weight: 600;
  transition: all var(--tr);
  font-family: inherit;
  letter-spacing: .3px;
}
.btn-signout:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.4);
  color: var(--white);
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 20px; border-radius: var(--r2);
  margin: 14px 0 4px; font-size: .9rem;
  border-left: 4px solid;
  box-shadow: var(--sh);
}
.alert span { flex-shrink: 0; margin-top: 1px; font-size: 1rem; }
.alert-ok   { background: var(--ok-lt);   border-color: var(--ok);   color: #0a5e3c; }
.alert-err  { background: var(--err-lt);  border-color: var(--err);  color: #7d1e0a; }
.alert-warn { background: var(--warn-lt); border-color: var(--warn); color: #7a4c00; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS — Refined with micro-interactions
   ═══════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--navy-dk);
  font-weight: 700; padding: 14px 34px;
  border-radius: var(--r4);
  border: none; cursor: pointer;
  font-size: .93rem; transition: all var(--tr);
  text-decoration: none; font-family: inherit;
  box-shadow: var(--sh-g);
  letter-spacing: .2px;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity var(--tr);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(201,168,76,.4); color: var(--navy-dk); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }
.btn-primary.w100 { display: flex; justify-content: center; width: 100%; border-radius: var(--r2); }

.btn-sec {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--navy); border: 2px solid var(--lgrey);
  padding: 12px 24px; border-radius: var(--r4);
  font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all var(--tr);
  text-decoration: none; font-family: inherit;
}
.btn-sec:hover { border-color: var(--navy); background: var(--navy); color: var(--white); transform: translateY(-1px); }

.btn-submit {
  background: linear-gradient(135deg, var(--navy), var(--navy-md));
  color: var(--white); font-weight: 700;
  padding: 16px 48px; border-radius: var(--r4);
  border: none; cursor: pointer; font-size: 1rem;
  transition: all var(--tr); font-family: inherit;
  box-shadow: 0 6px 24px rgba(27,31,75,.28);
  letter-spacing: .3px;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(27,31,75,.38); }
.btn-submit:disabled { opacity: .4; cursor: not-allowed; }

.btn-del { display: inline-flex; align-items: center; gap: 5px; background: var(--err-lt); color: var(--err); border: 1px solid rgba(181,41,10,.15); padding: 6px 14px; border-radius: var(--r); cursor: pointer; font-size: .82rem; font-weight: 600; transition: all var(--tr); }
.btn-del:hover { background: #f5cec9; }
.btn-del-sm { background: transparent; border: none; color: var(--err); cursor: pointer; font-size: 1rem; padding: 2px 6px; border-radius: 4px; }
.btn-del-sm:hover { background: var(--err-lt); }
.btn-edit-sm { color: var(--navy); font-size: .82rem; font-weight: 600; border: 1.5px solid var(--lgrey); padding: 5px 14px; border-radius: 20px; transition: all var(--tr); display: inline-flex; align-items: center; }
.btn-edit-sm:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-view { color: var(--navy); font-size: .8rem; font-weight: 600; border: 1px solid var(--lgrey); padding: 4px 12px; border-radius: var(--r); }
.btn-ghost-white { display: inline-block; color: var(--white); border: 1.5px solid rgba(255,255,255,.4); padding: 11px 28px; border-radius: var(--r4); font-weight: 600; transition: all var(--tr); letter-spacing: .3px; }
.btn-ghost-white:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7); color: var(--white); transform: translateY(-1px); }
.btn-file { display: inline-block; background: var(--off); border: 1.5px solid var(--lgrey); color: var(--text); padding: 9px 16px; border-radius: var(--r); cursor: pointer; font-size: .88rem; font-weight: 600; transition: background var(--tr); }
.btn-file:hover { background: var(--lgrey); }
.file-hidden { display: none; }
.file-name { font-size: .82rem; color: var(--textl); margin-left: 8px; }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — Login / Register
   ═══════════════════════════════════════════════════════════ */
.auth-page { display: grid; grid-template-columns: 44% 56%; min-height: calc(100vh - 97px); }
.auth-page--reg { grid-template-columns: 1fr; }
.auth-simple-page { display: flex; align-items: center; justify-content: center; padding: 48px 24px; min-height: calc(100vh - 97px); }

/* Left — editorial dark panel */
.auth-left {
  background:
    linear-gradient(160deg,
      var(--navy-dk) 0%,
      var(--navy)    50%,
      #1e234f        100%);
  padding: 72px 56px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 36px;
  position: relative; overflow: hidden;
}
/* Geometric decorations */
.auth-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201,168,76,.1) 0%, transparent 65%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.04) 0%, transparent 65%);
  pointer-events: none;
}
/* Decorative corner line */
.auth-left-deco {
  position: absolute;
  top: 48px; right: 48px;
  width: 60px; height: 60px;
  border-top: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  opacity: .4;
}
.auth-left-deco-b {
  position: absolute;
  bottom: 48px; left: 48px;
  width: 60px; height: 60px;
  border-bottom: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  opacity: .4;
}

.auth-left-brand { position: relative; z-index: 2; }
.auth-college-name {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.3px;
}
.auth-college-sub {
  display: inline-block;
  color: var(--navy-dk);
  background: var(--gold);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  margin-top: 10px;
}
.auth-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,.5), transparent);
  position: relative; z-index: 2;
}
.auth-left h2 {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  position: relative; z-index: 2;
}
.auth-tagline {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  margin-top: -20px;
  position: relative; z-index: 2;
  line-height: 1.6;
}
.auth-highlights { display: flex; flex-direction: column; gap: 13px; position: relative; z-index: 2; }
.auth-hl-item {
  color: rgba(255,255,255,.78);
  font-size: .88rem;
  display: flex; align-items: center; gap: 14px;
}
.auth-hl-item span {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, rgba(201,168,76,.25), rgba(201,168,76,.1));
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}

/* Right — clean form panel */
.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 64px 56px;
  background: var(--cream);
}
.auth-right--full { padding: 48px 32px; background: var(--cream); }
.auth-card {
  background: var(--white);
  border-radius: var(--r3);
  padding: 52px 50px;
  box-shadow: var(--sh3);
  width: 100%; max-width: 460px;
  position: relative;
  border: 1px solid rgba(27,31,75,.08);
}
/* Gold accent top */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-lt), var(--gold), transparent);
  border-radius: 0 0 3px 3px;
}
.auth-card--wide { max-width: 660px; }
.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
  letter-spacing: -.3px;
}
.auth-sub { color: var(--textl); font-size: .9rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-links { text-align: center; margin-top: 12px; font-size: .87rem; }
.auth-links a { color: var(--navy); font-weight: 600; }
.auth-footer {
  border-top: 1px solid var(--lgrey);
  margin-top: 28px; padding-top: 22px;
  text-align: center; color: var(--textl); font-size: .87rem;
}
.auth-footer a { color: var(--navy); font-weight: 700; }
.auth-footer a:hover { color: var(--gold-dk); }

/* ── Form controls ───────────────────────────────────────── */
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label {
  font-size: .82rem; font-weight: 600;
  color: var(--textl); letter-spacing: .3px;
  text-transform: uppercase;
}
.fc {
  border: 1.5px solid var(--lgrey); border-radius: var(--r2);
  padding: 12px 16px; font-size: .93rem; font-family: inherit;
  color: var(--text); background: var(--white);
  transition: border-color var(--tr), box-shadow var(--tr); width: 100%;
}
.fc:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27,31,75,.08); }
.fc:hover:not(:focus) { border-color: var(--mgrey); }
textarea.fc { resize: vertical; min-height: 108px; }
.fhint { font-size: .77rem; color: var(--texts); margin-top: 2px; }
.fnote { color: var(--textl); font-size: .9rem; margin-bottom: 14px; }
.frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.frow-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.date-row { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 8px; }
.cb-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: var(--text); line-height: 1.5; }
.cb-label input { margin-top: 3px; accent-color: var(--navy); flex-shrink: 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .fc { padding-right: 46px; }
.pw-eye { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: .95rem; padding: 0; color: var(--mgrey); }
.wc-bar { font-size: .78rem; color: var(--textl); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════
   APP LAYOUT — Sidebar + content
   ═══════════════════════════════════════════════════════════ */
.app-layout {
  display: flex; gap: 28px;
  max-width: 1280px; margin: 32px auto;
  padding: 0 32px; align-items: flex-start;
}
.app-main { flex: 1; min-width: 0; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.app-form { display: flex; flex-direction: column; gap: 22px; }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: 248px; flex-shrink: 0;
  background: var(--white);
  border-radius: var(--r3);
  box-shadow: var(--sh2);
  overflow: hidden;
  position: sticky; top: 20px;
  border: 1px solid rgba(27,31,75,.07);
}
/* Sidebar header */
.sidebar-ref {
  background: linear-gradient(160deg, var(--navy-dk), var(--navy-md));
  padding: 22px 18px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sidebar-ref::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(201,168,76,.15), transparent 60%);
  pointer-events: none;
}
.sidebar-ref::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.sidebar-ref-label {
  font-size: .62rem; font-weight: 700;
  color: rgba(255,255,255,.45);
  display: block; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: 2px;
  position: relative; z-index: 1;
}
.sidebar-ref-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; color: var(--gold-lt);
  font-size: 1.1rem; letter-spacing: .5px;
  position: relative; z-index: 1;
}
.sidebar-submitted {
  background: var(--ok); color: var(--white);
  text-align: center; padding: 8px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .5px;
}
.sidebar-section-hd {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--texts); padding: 16px 18px 7px;
}
.sidebar-nav { padding-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  font-size: .84rem; color: var(--textl);
  transition: all var(--tr-s);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover {
  background: var(--off);
  color: var(--navy);
  border-left-color: rgba(27,31,75,.2);
}
.sidebar-link.active {
  background: linear-gradient(90deg, rgba(201,168,76,.1), rgba(201,168,76,.02));
  border-left-color: var(--gold);
  color: var(--navy); font-weight: 600;
}
.sidebar-link.done { color: var(--text); }
.sidebar-link.done .s-icon { color: var(--ok); font-weight: 700; }
.s-icon {
  font-size: .74rem; min-width: 16px; text-align: center;
  color: var(--lgrey);
}
.sidebar-help {
  padding: 14px 18px;
  border-top: 1px solid var(--lgrey);
  font-size: .78rem; color: var(--textl);
  background: var(--off);
}
.sidebar-help a { color: var(--navy); font-weight: 600; }
.sidebar-help a:hover { color: var(--gold-dk); }

/* ═══════════════════════════════════════════════════════════
   FORM SECTIONS
   ═══════════════════════════════════════════════════════════ */
.fs {
  background: var(--white);
  border-radius: var(--r3);
  padding: 32px 34px;
  box-shadow: var(--sh);
  display: flex; flex-direction: column; gap: 20px;
  border: 1px solid rgba(27,31,75,.06);
  transition: box-shadow var(--tr);
}
.fs:hover { box-shadow: var(--sh2); }
.fsh {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.12rem; font-weight: 600;
  color: var(--navy);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--lgrey);
  display: flex; align-items: center; gap: 10px;
}
.fsh::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--lgrey), transparent);
  margin-left: 4px;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD — Application overview cards
   ═══════════════════════════════════════════════════════════ */
.submitted-bar {
  background: linear-gradient(135deg, var(--ok-lt), #d8f3ea);
  border: 1px solid rgba(15,138,90,.25);
  border-radius: var(--r2); padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 24px;
  box-shadow: var(--sh);
}
.sub-tick {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--ok), #12a268);
  color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15,138,90,.3);
}
.dashboard-intro {
  background: var(--white); border-radius: var(--r3);
  padding: 28px 32px; box-shadow: var(--sh);
  margin-bottom: 24px;
  border: 1px solid rgba(27,31,75,.06);
  position: relative; overflow: hidden;
}
.dashboard-intro::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--navy-md), var(--gold));
}
.dashboard-intro h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--navy); margin-bottom: 8px;
  letter-spacing: -.2px;
}
.dashboard-intro p { color: var(--textl); font-size: .92rem; }

.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pc {
  background: var(--white);
  border-radius: var(--r2);
  padding: 20px 22px;
  box-shadow: var(--sh);
  display: flex; align-items: flex-start; gap: 16px;
  transition: all var(--tr);
  border: 1px solid rgba(27,31,75,.06);
  border-left: 4px solid var(--lgrey);
  color: var(--text);
  position: relative; overflow: hidden;
}
.pc::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,31,75,.02), transparent);
  opacity: 0; transition: opacity var(--tr);
  pointer-events: none;
}
.pc:hover { box-shadow: var(--sh2); transform: translateY(-3px); color: var(--text); }
.pc:hover::after { opacity: 1; }
.pc--done { border-left-color: var(--ok); }
.pc-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 1px; }
.pc-body { flex: 1; }
.pc-body h3 { font-size: .9rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.pc-body p { font-size: .78rem; color: var(--textl); line-height: 1.5; }
.pc-badge { align-self: flex-start; margin-top: 2px; }
.badge-done {
  background: linear-gradient(135deg, var(--ok), #0fa568);
  color: var(--white); font-size: .7rem; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  letter-spacing: .3px;
  box-shadow: 0 2px 8px rgba(15,138,90,.25);
}
.badge-todo {
  color: var(--navy-lt); font-size: .8rem; font-weight: 600;
  white-space: nowrap; opacity: .8;
}

/* ── Records / tables ────────────────────────────────────── */
.records-list { display: flex; flex-direction: column; gap: 10px; }
.record-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--off); border: 1px solid var(--lgrey);
  border-radius: var(--r2); padding: 14px 18px;
  transition: all var(--tr);
}
.record-card:hover { box-shadow: var(--sh); background: var(--white); }
.record-info { display: flex; flex-direction: column; gap: 2px; }
.record-info strong { font-size: .9rem; color: var(--navy); }
.record-info span { font-size: .8rem; color: var(--textl); }
.table-wrap { overflow-x: auto; border-radius: var(--r2); box-shadow: var(--sh); }
.dtable { width: 100%; border-collapse: collapse; font-size: .88rem; }
.dtable thead tr { background: linear-gradient(135deg, var(--navy), var(--navy-md)); }
.dtable th { color: var(--white); padding: 12px 16px; text-align: left; font-size: .78rem; font-weight: 600; letter-spacing: .4px; }
.dtable td { padding: 11px 16px; border-bottom: 1px solid var(--lgrey); background: var(--white); }
.dtable tr:last-child td { border-bottom: none; }
.dtable tbody tr { transition: background var(--tr-s); }
.dtable tbody tr:hover td { background: var(--off); }
.docs-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.doc-item { display: flex; align-items: center; gap: 12px; background: var(--off); border: 1px solid var(--lgrey); border-radius: var(--r2); padding: 11px 16px; transition: all var(--tr-s); }
.doc-item:hover { background: var(--white); box-shadow: var(--sh); }
.doc-name { flex: 1; font-size: .88rem; color: var(--navy); font-weight: 500; }
.file-pick-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Photo ───────────────────────────────────────────────── */
.photo-upload-wrap { display: flex; gap: 28px; align-items: flex-start; }
.photo-preview { width: 120px; height: 150px; border: 2px dashed var(--lgrey); border-radius: var(--r2); overflow: hidden; flex-shrink: 0; background: var(--off); display: flex; align-items: center; justify-content: center; transition: border-color var(--tr); }
.photo-preview:hover { border-color: var(--navy); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { color: var(--mgrey); font-size: .78rem; text-align: center; padding: 8px; }
.photo-upload-side { flex: 1; }

/* ── Review ──────────────────────────────────────────────── */
.review-box {
  background: var(--white); border-radius: var(--r2);
  padding: 24px 28px; box-shadow: var(--sh);
  margin-bottom: 16px; border: 1px solid rgba(27,31,75,.06);
  transition: box-shadow var(--tr);
}
.review-box:hover { box-shadow: var(--sh2); }
.review-hd {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--lgrey);
}
.review-hd h3 {
  font-size: .95rem; font-weight: 600;
  color: var(--navy); font-family: 'Playfair Display', serif;
}
.review-dl { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: .88rem; }
.review-dl dt { font-weight: 600; color: var(--textl); }
.review-dl dd { color: var(--text); }
.review-missing { color: var(--warn); font-size: .88rem; }

/* ═══════════════════════════════════════════════════════════
   SUCCESS / CONFIRMATION
   ═══════════════════════════════════════════════════════════ */
.success-page {
  background: var(--white);
  border-radius: var(--r3);
  padding: 72px 44px;
  text-align: center;
  box-shadow: var(--sh3);
  border: 1px solid rgba(27,31,75,.06);
  position: relative; overflow: hidden;
}
.success-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ok), #14c97b, var(--ok));
}
.success-tick {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--ok), #14c97b);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700;
  margin: 0 auto 28px;
  box-shadow: 0 12px 40px rgba(15,138,90,.3);
}
.success-page h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem; font-weight: 600;
  color: var(--navy); margin-bottom: 10px; letter-spacing: -.3px;
}
.success-ref {
  color: var(--textl); margin-bottom: 6px; font-size: .95rem;
}
.success-ref strong { font-size: 1.2rem; color: var(--navy); }
.ps-ref { font-size: .92rem; color: var(--textl); margin-bottom: 20px; }
.ps-ref strong { color: var(--navy); font-size: 1rem; font-weight: 700; }
.success-page > p { color: var(--textl); max-width: 520px; margin: 0 auto 10px; }
.success-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

.ps-warning-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--warn-lt); border: 1px solid rgba(192,120,0,.2);
  border-left: 4px solid var(--warn);
  border-radius: var(--r2); padding: 16px 20px;
  margin: 22px 0; font-size: .9rem; color: #7a4c00; text-align: left;
}
.ps-warning-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

/* ── Form table (side-by-side labels) ────────────────────── */
.form-table { width: 100%; border-collapse: collapse; }
.form-table tr + tr td { padding-top: 14px; }
.form-table-label { text-align: right; padding-right: 20px; white-space: nowrap; color: var(--textl); font-size: .82rem; font-weight: 600; width: 200px; vertical-align: middle; text-transform: uppercase; letter-spacing: .3px; }
.form-table-input { vertical-align: middle; }
.fc--wide { width: 360px; }
.fc--md   { width: 220px; }
.fc--sm   { width: 120px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer {
  background:
    linear-gradient(160deg, var(--navy-dk), var(--navy));
  color: rgba(255,255,255,.5);
  margin-top: 72px;
  border-top: 1px solid rgba(201,168,76,.2);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding: 56px 0 44px;
}
.footer-brand {
  color: var(--white);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; font-size: 1.05rem; margin-bottom: 12px;
}
.footer-gold-line {
  width: 40px; height: 2px;
  background: var(--gold);
  margin-bottom: 14px; border-radius: 2px;
}
.site-footer p { font-size: .84rem; line-height: 1.9; }
.site-footer h4 {
  color: var(--white); font-size: .78rem; font-weight: 700;
  margin-bottom: 14px; letter-spacing: 1.2px; text-transform: uppercase;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.45); font-size: .84rem; transition: color var(--tr); }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0; font-size: .77rem;
  color: rgba(255,255,255,.22);
  display: flex; justify-content: space-between; align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@@media (max-width: 1100px) {
  .header-nav { display: none; }
  .progress-grid { grid-template-columns: 1fr; }
}
@@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .app-layout { flex-direction: column; padding: 0 16px; }
  .sidebar { width: 100%; position: static; }
  .frow-2, .frow-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .photo-upload-wrap { flex-direction: column; }
  .fc--wide, .fc--md, .fc--sm { width: 100%; }
  .header-inner { grid-template-columns: 1fr auto; gap: 16px; padding: 16px 20px; min-height: auto; }
  .header-page-title { display: none; }
  .wrap { padding: 0 20px; }
}
@@media (max-width: 480px) {
  .auth-card { padding: 36px 24px; }
  .auth-right { padding: 32px 20px; }
  .fs { padding: 22px 18px; }
  .header-college { font-size: 1rem; }
  .dashboard-intro { padding: 20px 22px; }
}
