@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root{
  --ink:#ffffff;
  --ink-soft:#B22222;
  --parchment:#ffffff;
  --parchment-dim:#ffffff;
  --maroon:#B22222;
  --maroon-deep:#0f0f0f;
  --gold:#000000;
  --gold-light:#050505;
  --text-dark:#050505;
  --text-muted:#000000;
  --text-light:#ffffff;
  --success:#2F6D4C;
  --danger:#B22222;
  --radius:14px;
  --shadow-card: 0 30px 60px -25px rgba(20,25,43,0.35);
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Public Sans', sans-serif;
  color:var(--text-dark);
  background:var(--ink);
  min-height:100vh;
}
.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  font-weight:600;
}

/* ---------- Shell / split layout ---------- */
.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px){
  .shell{grid-template-columns:1fr; grid-template-rows:auto 1fr;}
}

.panel-left{
  color:#B22222;
  padding:64px 56px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  position:relative;
  overflow:hidden;
}
@media (max-width: 880px){
  .panel-left{padding:36px 28px 48px;}
  .brand-row{justify-content:center;}
  .brand-logo{margin:0 auto;}
  .headline{width:100%; text-align:center; font-size:8px;}
  .headline em{font-size:8px;}
  .seal-wrap{gap:18px; margin:24px 0 28px;}
  .ribbon-steps{gap:12px; margin-top:60px;}
}

.brand-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:30px;
}

.brand-logo{
  width:320px;
  max-width:100%;
  height:auto;
  display:block;
}
.brand-name{
  font-family:'Fraunces', serif;
  font-size:20px;
  letter-spacing:0.01em;
}
.brand-name b{color:var(--gold-light); font-weight:600;}

.seal-wrap{
  position:relative; z-index:1;
  margin:auto 0;
  display:flex; flex-direction:column; align-items:flex-start; gap:28px;
}
.seal{
  width:96px; height:96px;
  animation: seal-stamp 0.7s cubic-bezier(.2,1.6,.4,1) both;
}
@media (prefers-reduced-motion: reduce){
  .seal{animation:none;}
}
@keyframes seal-stamp{
  0%{ transform:scale(2.4) rotate(-18deg); opacity:0; }
  60%{ transform:scale(0.92) rotate(4deg); opacity:1; }
  100%{ transform:scale(1) rotate(0deg); opacity:1; }
}
.headline{
  font-family:'poppins', sans-serif; font-style:italic; 
  font-weight:400;
  font-size:clamp(32px, 3.4vw, 8px);
  line-height:1.15;
  max-width:none;
  margin:0;
  
}
.headline em{
  
  font-family:'poppins', sans-serif; font-style:italic; 
  font-style:normal;
  color:rgb(0, 0, 0);
  font-weight:600;
}
@media (max-width:880px){
  .headline{font-size:18px;}
  .headline em{font-size:18px;}
}
.subcopy{
  font-size:15px;
  color:rgba(0, 0, 0, 0.72);
  max-width:38ch;
  line-height:1.6;
  margin:0;
}

.ribbon-steps{
  position:relative; z-index:1;
  display:flex; flex-direction:column; gap:10px;
}
.ribbon-step{
  display:flex; align-items:center; gap:10px;
  font-size:13px; color:rgba(0, 0, 0, 0.6);
}
.ribbon-step .dot{
  width:7px; height:7px; border-radius:50%;
  background:rgba(5, 5, 5, 0.28);
  flex:none;
}
.ribbon-step.active .dot{background:#B22222;}
.ribbon-step.active{color:black;}
.ribbon-step.done .dot{background:var(--success);}

/* ---------- Right: parchment form ---------- */
.panel-right{
  background:var(--parchment);
  display:flex; align-items:center; justify-content:center;
  padding:48px 32px;
}
.card{
  width:100%; max-width:400px;
}
.card-eyebrow{color:var(--maroon); margin-bottom:10px;}
.card-title{
  font-family:'Fraunces', serif;
  font-size:28px;
  margin:0 0 8px;
}
.card-sub{
  color:var(--text-muted);
  font-size:14.5px;
  margin:0 0 32px;
  line-height:1.5;
}
.card-sub a, .link{
  color:var(--maroon); font-weight:600; text-decoration:none;
  border-bottom:1px solid rgba(122,36,54,0.35);
}
.card-sub a:hover, .link:hover{border-bottom-color:var(--maroon);}

.field{margin-bottom:18px;}
.field label{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:7px;
}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:14px;}
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"]{
  width:100%;
  padding:12px 14px;
  border:1.5px solid #000000;
  border-radius:9px;
  background:#ffffff;
  font-family:'Public Sans', sans-serif;
  font-size:14.5px;
  color:var(--text-dark);
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus{
  border-color:var(--maroon);
  box-shadow:0 0 0 3px rgba(122,36,54,0.12);
}
input:focus-visible{outline:2px solid var(--maroon); outline-offset:1px;}

/* ---------- Password show/hide toggle ---------- */
.password-wrap{
  position:relative;
}
.password-wrap input[type="password"],
.password-wrap input[type="text"]{
  padding-right:44px;
}
.pw-toggle{
  position:absolute;
  top:50%;
  right:6px;
  transform:translateY(-50%);
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  background:transparent;
  border:none;
  border-radius:7px;
  color:var(--text-muted);
  cursor:pointer;
  padding:0;
}
.pw-toggle:hover{background:rgba(178,34,34,0.08); color:var(--maroon);}
.pw-toggle:focus-visible{outline:2px solid var(--maroon); outline-offset:1px;}
.pw-toggle svg{width:19px; height:19px; pointer-events:none;}

/* ---------- Terms & Conditions / Data Privacy consent checkbox ---------- */
.consent-field{margin-bottom:20px;}
.consent-label{
  display:flex;
  align-items:flex-start;
  gap:10px;
  cursor:pointer;
}
.consent-label input[type="checkbox"]{
  width:16px; height:16px; flex:none;
  margin-top:2px;
  accent-color:var(--maroon);
  cursor:pointer;
}
.consent-label span{
  font-family:'Public Sans', sans-serif;
  font-size:12.5px;
  line-height:1.55;
  color:var(--text-muted);
}
.consent-label span a{
  color:var(--maroon); font-weight:600; text-decoration:none;
  border-bottom:1px solid rgba(122,36,54,0.35);
}
.consent-label span a:hover{border-bottom-color:var(--maroon);}

.btn{
  width:100%;
  padding:13px 16px;
  border-radius:9px;
  border:none;
  font-family:'Public Sans', sans-serif;
  font-weight:700;
  font-size:14.5px;
  cursor:pointer;
  transition:transform .1s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary{
  background:var(--maroon);
  color:var(--text-light);
  box-shadow:0 12px 24px -12px rgba(122,36,54,0.55);
}
.btn-primary:hover{background:var(--maroon-deep);}
.btn-primary:active{transform:translateY(1px);}
.btn-primary:disabled{opacity:0.6; cursor:not-allowed; box-shadow:none;}
.btn-ghost{
  background:transparent;
  color:var(--maroon);
  border:1.5px solid rgba(122,36,54,0.3);
}
.btn-ghost:hover{background:rgba(122,36,54,0.06);}

.divider{
  display:flex; align-items:center; gap:12px;
  margin:22px 0; color:var(--text-muted); font-size:12.5px;
}
.divider::before, .divider::after{
  content:""; flex:1; height:1px; background:#ffffff;
}

.alert{
  padding:12px 14px;
  border-radius:9px;
  font-size:13.5px;
  margin-bottom:18px;
  line-height:1.45;
}
.alert-error{background:rgba(181,67,42,0.1); color:var(--danger); border:1px solid rgba(181,67,42,0.25);}
.alert-success{background:rgba(47,109,76,0.1); color:var(--success); border:1px solid rgba(47,109,76,0.25);}

.hidden{display:none !important;}

/* ---------- Verify-email / gate screen ---------- */
.gate-logo{
  width:96px; height:auto; margin-bottom:20px; display:block;
}
.status-tag{
  display:inline-flex; align-items:center; gap:6px;
  font-family:'IBM Plex Mono', monospace;
  font-size:11px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase;
  padding:5px 10px; border-radius:999px;
  background:#F1EFE8; color:#444441;
  margin-bottom:18px;
}
.status-tag.verified{background:rgba(47,109,76,0.14); color:var(--success);}

/* ---------- Forgot-password links ---------- */
.forgot-links{
  display:flex; justify-content:flex-end; gap:12px;
  margin:-8px 0 18px;
  font-size:12.5px;
}
.forgot-links a{color:var(--maroon); font-weight:600; text-decoration:none;}
.forgot-links a:hover{text-decoration:underline;}

/* ---------- Dashboard ---------- */
.dash{display:none; min-height:100vh; background:var(--parchment);}
.dash-shell{display:flex; min-height:100vh;}

/* ---- Sidebar ---- */
.dash-sidebar{
  width:220px; flex:none;
  background:#fff;
  color:var(--text-dark);
  border-right:1.5px solid #000;
  display:flex; flex-direction:column;
  padding:24px 14px;
  position:sticky; top:0; height:100vh;
}
.side-brand{padding:4px 8px 22px;}
.side-logo{width:100%; max-width:150px; height:auto; display:block;}

.tabs-bar{position:relative;}
.tabs{display:flex; flex-direction:column; gap:4px; border-bottom:none; margin-bottom:0; flex-wrap:nowrap; flex:1;}
.tab{
  font-family:'IBM Plex Mono', monospace;
  font-size:13px; letter-spacing:0.05em; text-transform:uppercase; font-weight:600;
  padding:12px 14px; margin-right:0;
  color:var(--text-muted);
  background:none; border:none; border-bottom:none;
  border-radius:9px;
  cursor:pointer; position:relative; top:0;
  text-align:left;
}
.tab:hover{background:rgba(178,34,34,0.08); color:var(--maroon);}
.tab.active{color:#fff; background:var(--maroon); border-bottom-color:transparent;}

.dash-sidebar .signout{
  margin-top:16px;
  color:var(--text-muted);
  border-color:rgba(0,0,0,0.25);
}
.dash-sidebar .signout:hover{color:var(--maroon); border-color:var(--maroon); background:rgba(178,34,34,0.06);}

.dash-main{flex:1; padding:36px 44px 60px; max-width:1500px; margin:0 auto;}

/* Hamburger toggle — hidden on tablet/desktop; sidebar list stays vertical there. */
.tabs-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  width:38px; height:38px;
  border:1.5px solid var(--maroon);
  border-radius:8px;
  background:#FFFDF8;
  cursor:pointer;
  padding:0;
  margin-bottom:16px;
}
.tabs-toggle span{
  display:block; height:2px; width:18px; margin:0 auto;
  background:var(--maroon); border-radius:2px;
}
.tabs-toggle:hover, .tabs-toggle:focus{
  background:#FFFDF8;
  border-color:var(--maroon);
}
.tabs-toggle:hover span, .tabs-toggle:focus span{
  background:var(--maroon);
}

/* Mobile: sidebar collapses to a top bar with a hamburger-triggered dropdown. */
@media (max-width:560px){
  .dash-shell{flex-direction:column;}
  .dash-sidebar{
    width:100%; height:auto; position:relative;
    flex-direction:row; align-items:center; flex-wrap:wrap;
    padding:14px 16px;
  }
  .side-brand{padding:0; margin-right:auto;}
  .side-logo{max-width:110px;}
  .tabs-toggle{display:flex; margin-bottom:0;}
  .tabs{
    display:none;
    flex-direction:column;
    gap:2px;
    position:absolute;
    top:64px; left:16px; right:16px;
    background:#fff;
    border:1.5px solid #000;
    border-radius:10px;
    box-shadow:var(--shadow-card);
    padding:8px;
    z-index:20;
  }
  .tabs.open{display:flex;}
  .dash-sidebar .signout{margin-top:0;}
  .dash-main{padding:24px 18px;}
}

/* ---- Dashboard widgets ---- */
.db-section-title{font-family:'Fraunces', serif; font-size:17px; margin:26px 0 12px;}
.db-banner{
  position:relative; overflow:hidden; border-radius:var(--radius);
  min-height:340px; background:#0d0d0d; color:#fff;
  display:flex; align-items:center;
}
.db-banner-text{position:relative; z-index:2; padding:34px 40px; max-width:55%;}
.db-banner-text h1{font-family:'Fraunces', serif; font-size:30px; margin:8px 0 6px; color:#fff;}
.db-banner-text p{font-size:14px; color:rgba(255,255,255,0.75); margin:0;}
.db-banner-text .eyebrow{color:rgba(255,255,255,0.6);}

.db-carousel{position:absolute; inset:0;}
.db-carousel img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 15%;
  opacity:0; transition:opacity 0.9s ease;
}
.db-carousel img.active{opacity:1;}
.db-carousel::after{
  content:''; position:absolute; inset:0;
}
.db-dots{position:absolute; bottom:14px; left:34px; z-index:3; display:flex; gap:6px;}
.db-dots span{width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,0.35); cursor:pointer;}
.db-dots span.active{background:var(--maroon);}

.db-finance-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.db-finance-card{
  background:#fff; border:1.5px solid #000; border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow-card);
}
.db-finance-card.highlight{border-color:var(--maroon);}
.db-finance-amount{font-size:26px; font-weight:700; font-family:'Fraunces', serif;}
.db-finance-label{font-size:12.5px; color:var(--text-muted); margin-top:3px;}

.db-columns{display:grid; grid-template-columns:1.5fr 1fr; gap:18px; margin-top:24px;}
@media (max-width:800px){.db-finance-grid, .db-columns{grid-template-columns:1fr;}}

.db-team-row{display:flex;}
.db-team-row .db-avatar{
  width:38px; height:38px; border-radius:50%;
  background:#f1efe8; border:2px solid #fff;
  display:grid; place-items:center; font-size:12px; font-weight:700;
  margin-left:-10px; box-shadow:0 0 0 1px #000;
}
.db-team-row .db-avatar:first-child{margin-left:0;}

.notice-row{padding:12px 0; border-bottom:1px solid #eee;}
.notice-row:last-child{border-bottom:none;}
.notice-row .notice-title{font-size:13px; font-weight:700; display:flex; align-items:center; gap:6px;}
.notice-row .notice-title .pin{color:var(--maroon); font-size:10px;}
.notice-row .notice-body{font-size:12.5px; color:var(--text-muted); margin-top:3px; line-height:1.5;}
.notice-row .notice-meta{font-size:10.5px; color:#999; margin-top:4px;}
.notice-row.full{background:#fff; border:1.5px solid #000; border-radius:10px; padding:16px; margin-bottom:12px; box-shadow:var(--shadow-card);}

.appt-status{font-size:10px; font-weight:700; text-transform:uppercase; padding:3px 8px; border-radius:20px; background:#eee; color:#555;}
.appt-status.confirmed{background:rgba(178,34,34,0.12); color:var(--maroon);}

.tab-panel{display:none;}
.tab-panel.active{display:block;}

.stub-card{
  background:#ffffff;
  border:1.5px solid #000000;
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow-card);
}
.stub-card h3{
  font-family:'Fraunces', serif; font-size:19px; margin:0 0 8px;
}
.stub-card p{color:var(--text-muted); font-size:14px; line-height:1.6; margin:0 0 18px;}
.stub-empty{
  border:1.5px dashed #000000; border-radius:10px;
  padding:22px; text-align:center; color:var(--text-muted); font-size:13.5px;
}

.stub-card-header{
  display:flex; align-items:flex-start; justify-content:space-between; gap:16px;
}
.btn-inline{
  width:auto; padding:9px 16px; font-size:12.5px; flex:none; white-space:nowrap;
}
@media (max-width:480px){
  .stub-card-header{flex-direction:column;}
  .btn-inline{width:100%;}
}

.profile-field input[type="text"],
.profile-field input[type="number"],
.profile-field select{
  padding:8px 10px;
  font-size:14px;
  margin-top:2px;
  width:100%;
  border:1.5px solid #000000;
  border-radius:9px;
  background:#ffffff;
  font-family:'Public Sans', sans-serif;
  color:var(--text-dark);
}
.profile-field .val-locked{
  color:var(--text-muted); font-weight:500; font-style:italic;
}
.profile-edit-actions{
  display:flex; gap:10px; margin-top:22px;
}
.profile-edit-actions .btn{width:auto; padding:11px 22px;}

.profile-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px 24px; margin-bottom:22px;}
@media (max-width:600px){.profile-grid{grid-template-columns:1fr;}}
.profile-field .eyebrow{color:var(--text-muted); display:block; margin-bottom:4px;}
.profile-field .val{font-size:15px; font-weight:600;}

.signout{
  font-family:'IBM Plex Mono', monospace; font-size:12px; letter-spacing:0.05em;
  text-transform:uppercase; color:rgba(3, 3, 3, 0.75);
  background:none; border:1px solid rgba(14, 13, 13, 0.3); border-radius:999px;
  padding:8px 16px; cursor:pointer;
}
.signout:hover{background:rgba(178,34,34,0.06); color:var(--maroon); border-color:var(--maroon);}

.spinner{
  width:16px; height:16px; border-radius:50%;
  border:2px solid rgba(246,241,228,0.4); border-top-color:#fff;
  display:inline-block; vertical-align:middle; margin-right:8px;
  animation:spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}

/* ---------- Registration: "pick a school first" progressive form ---------- */
.profile-field.span-2{grid-column:1 / -1;}
.school-gate-hint{
  grid-column:1 / -1;
  border:1.5px dashed var(--maroon);
  border-radius:10px;
  padding:14px 16px;
  font-size:13px;
  color:var(--maroon);
  background:rgba(178,34,34,0.05);
}
.profile-field .req-star{color:var(--maroon); margin-left:2px;}
/* ---------- Cookie consent banner ---------- */
.cookie-banner{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:999;
  background:var(--maroon-deep);
  color:#fff;
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  box-shadow:0 -10px 30px -10px rgba(0,0,0,0.4);
}
.cookie-text{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:rgba(255,255,255,0.85);
  max-width:640px;
}
.cookie-text a{
  color:#fff; font-weight:600; text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,0.5);
}
.cookie-text a:hover{border-bottom-color:#fff;}
.cookie-accept{
  width:auto;
  padding:10px 24px;
  flex:none;
}
@media (max-width:560px){
  .cookie-banner{flex-direction:column; align-items:stretch; text-align:center;}
  .cookie-accept{width:100%;}
}

/* ---------------- STEP 2: STUDENT INFORMATION (standalone page) ---------------- */
.step2-page{
  min-height:100vh;
  width:100%;
  background:#fff;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 20px;
}
.step2-card{
  width:100%;
  max-width:620px;
  background:#fdfdfd;
  border:1px solid #e4e4e4;
  border-radius:14px;
  padding:36px 40px 40px;
  box-shadow:0 4px 24px rgba(0,0,0,.04);
}
.step2-heading{
  font-size:20px;
  font-weight:800;
  letter-spacing:.3px;
  color:var(--maroon);
  margin:0 0 18px;
  padding-bottom:14px;
  border-bottom:2.5px solid var(--maroon);
}
.step2-card .field label{
  font-weight:700;
  color:#222;
  font-size:14px;
}
.step2-card .field input[type="text"],
.step2-card .field select{
  border:1px solid #d8d8d8;
  background:#fff;
  border-radius:8px;
  padding:11px 12px;
  font-size:14px;
}
.step2-card .field input[type="text"]::placeholder{
  color:#9a9a9a;
}
.radio-row{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  margin-top:4px;
}
.radio-row label{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  font-weight:400;
  color:var(--text-dark);
  cursor:pointer;
}
.radio-row input[type="radio"]{
  accent-color:var(--maroon);
  width:15px;
  height:15px;
}
.req-star{color:var(--maroon); margin-left:2px;}
.name-preview-banner{
  background:var(--maroon);
  color:#fff;
  text-align:center;
  font-weight:700;
  letter-spacing:.3px;
  padding:12px 14px;
  border-radius:9px;
  min-height:20px;
}
.profile-field .name-preview{
  background:var(--maroon);
  color:#fff;
  text-align:center;
  font-weight:700;
  padding:10px 12px;
  border-radius:8px;
}
.step2-actions{
  display:flex;
  gap:12px;
  margin-top:18px;
}
.step2-actions .btn{flex:1;}

/* ---------------- TYPE-AHEAD SUGGESTION LISTS ---------------- */
.suggest-wrap{ position:relative; }
.suggest-list{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  z-index:50;
  margin-top:2px;
  max-height:180px;
  overflow-y:auto;
  background:#fff;
  border:1px solid #d8d8d8;
  border-radius:8px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}
.suggest-list.visible{ display:block; }
.suggest-item{
  padding:9px 12px;
  font-size:14px;
  cursor:pointer;
  color:#222;
}
.suggest-item:hover,
.suggest-item.active{
  background:var(--maroon);
  color:#fff;
}
.profile-field .suggest-list{
  border-radius:6px;
}
