@font-face{
  font-family:"STONEHANGE";
  src:
    url("fonts/stonehen.ttf") format("truetype");
  font-display:swap;
}

:root{
  --umu-maroon:#7a0019;
  --umu-yellow:#f2b705;
  --umu-black:#111111;
  --umu-red:#b91c1c;
  --umu-white:#ffffff;
  --umu-gray:#f3f4f6;

  --bg:#ffffff;
  --surface:#ffffff;
  --muted:#5b6472;
  --text:#111827;

  --primary:var(--umu-maroon);
  --accent:var(--umu-yellow);
  --danger:var(--umu-red);
  --success:#15803d;
  --warning:#b45309;

  --border:rgba(17,17,17,.12);
  --shadow:0 10px 30px rgba(17,17,17,.08);

  --font-head:"STONEHANGE", "Stonehenge", Georgia, "Times New Roman", serif;
  --font-body:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:var(--font-body);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(122,0,25,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(242,183,5,.18), transparent 60%),
    var(--bg);
  color:var(--text);
}
a{color:var(--primary); text-decoration:none}
.nav a{color:inherit}
.container{max-width:1100px; margin:0 auto; padding:18px}
.container.application-shell{max-width:1380px}
.container.admin-shell{max-width:min(1860px,98vw)}
.container.narrow{max-width:980px}
.nav{
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  padding:12px 14px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(17,17,17,.10);
  border-radius:18px;
  box-shadow:var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position:sticky;
  top:12px;
  z-index:20;
}
.brand{font-weight:900; letter-spacing:.2px; display:flex; align-items:center; gap:10px}
.nav .logo{width:30px; height:30px; max-width:30px; max-height:30px; object-fit:contain; border-radius:10px; border:1px solid var(--border); box-shadow:0 6px 16px rgba(17,17,17,.08); flex:0 0 auto}
.brand .uni{font-family:var(--font-head)}
.brand .sub{font-size:12px; color:var(--muted); font-weight:700}
.nav-links{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--umu-black);
  padding:10px 12px;
  border-radius:10px;
  cursor:pointer;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(17,17,17,.06);
}
.btn.lg{padding:12px 16px; border-radius:12px; font-size:14px; font-weight:800}
.btn.block{width:100%; justify-content:center; text-align:center}
.btn.primary{background:var(--primary); color:var(--umu-white); border-color:rgba(122,0,25,.35)}
.btn.primary:hover{filter:brightness(1.05)}
.btn.google{background:linear-gradient(180deg, #fff, #fafafa); border-color:rgba(17,17,17,.16); color:#1f2937}
.btn.google:hover{background:#fff}
.auth-option{
  margin-top:14px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(17,17,17,.12);
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  box-shadow:0 12px 24px rgba(17,17,17,.05);
}
.auth-choice-row{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:stretch;
  flex-wrap:nowrap;
}
.auth-choice-btn{
  flex:1 1 0;
  min-height:52px;
  font-weight:900;
  text-align:center;
  white-space:nowrap;
}
.auth-choice-note{
  margin-top:8px;
  font-size:12px;
}
.auth-google-option{
  border-color:rgba(66,133,244,.28);
  background:
    radial-gradient(900px 180px at 0% 0%, rgba(66,133,244,.12), transparent 65%),
    radial-gradient(700px 180px at 100% 0%, rgba(15,157,88,.10), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(255,255,255,.95));
}
.auth-email-option{margin-top:12px}
.auth-email-option.is-collapsed{display:none}
.auth-option-head{display:flex; flex-direction:column; gap:4px; margin-bottom:12px}
.auth-option-tag{
  display:inline-flex;
  align-self:flex-start;
  border-radius:999px;
  padding:4px 10px;
  background:rgba(66,133,244,.12);
  color:#1f4fb8;
  font-size:11px;
  font-weight:900;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.auth-option-tag.secondary{
  background:rgba(122,0,25,.08);
  color:var(--primary);
}
.auth-option-title{
  font-size:18px;
  font-weight:1000;
  color:var(--umu-black);
}
.auth-option-sub{
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.auth-divider{
  position:relative;
  margin:14px 0 2px;
  text-align:center;
}
.auth-divider:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  border-top:1px solid rgba(17,17,17,.12);
}
.auth-divider span{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  padding:0 10px;
  background:var(--surface);
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.auth-google-btn{
  position:relative;
  min-height:52px;
  font-weight:1000;
  font-size:15px;
  border-width:1.5px;
  box-shadow:0 12px 24px rgba(17,17,17,.08);
}
.auth-google-btn .google-mark{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #4285f4, #1a73e8);
  color:#fff;
  font-weight:1000;
  font-size:16px;
  line-height:1;
  box-shadow:0 8px 16px rgba(66,133,244,.22);
}
.auth-google-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 28px rgba(17,17,17,.10);
}
.auth-google-btn:focus{
  outline:2px solid rgba(66,133,244,.35);
  outline-offset:3px;
}
.btn.success{background:var(--success); color:var(--umu-white); border-color:rgba(21,128,61,.35)}
.btn.success:hover{filter:brightness(1.05)}
.btn.danger{background:var(--danger); color:var(--umu-white); border-color:rgba(185,28,28,.35)}
.btn:focus{outline:2px solid rgba(242,183,5,.6); outline-offset:2px}
.btn:disabled{opacity:.6; cursor:not-allowed}
.btn.disabled{opacity:.6; pointer-events:none; cursor:not-allowed}
.grid{display:grid; gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.application-layout{grid-template-columns:minmax(0,1.28fr) minmax(340px,.72fr)}
@media(max-width:900px){.grid.two{grid-template-columns:1fr}}
@media(max-width:900px){.grid.three{grid-template-columns:1fr}}
@media(max-width:900px){.application-layout{grid-template-columns:1fr}}
@media(max-width:700px){
  .container{padding:12px}
  .nav{padding:10px 12px; gap:10px; align-items:flex-start; flex-direction:column}
  .nav .row{width:100%; justify-content:space-between}
  .nav-links{width:100%; justify-content:flex-start}
  .nav-links .btn{padding:8px 10px}
  .brand .sub{display:none}
  .card{padding:12px}
  .title{font-size:20px}
  .flash-stack{top:8px; margin-top:8px}
  .flash{padding:10px 11px; font-size:14px; line-height:1.35}
  input,select,textarea{font-size:16px}
  .auth-shell{padding:10px 0 6px}
  .auth-hero{padding:14px}
  .auth-hero .row{flex-direction:column; align-items:center; text-align:center}
  .auth-logo{width:58px; height:58px}
  .auth-title{font-size:18px}
  .auth-sub{font-size:12px}
  .auth-card{padding:14px}
  .auth-choice-row{gap:8px}
  .auth-choice-btn{min-height:46px; font-size:13px; padding:10px}
  .auth-option{padding:12px}
  .auth-option-title{font-size:16px}
  .auth-google-btn{min-height:50px; font-size:14px}
  .wizard-top{gap:10px}
  .wizard-steps{gap:8px; justify-content:flex-start; overflow-x:auto; padding-bottom:4px}
  .wizard-steps .step{min-width:78px}
  .wizard-steps .lbl{font-size:11px}
  .application-layout{gap:12px}
  .auth-card{max-width:none}
  .hero{gap:12px}
  .wizard-step label.chip{
    width:100%;
    white-space:normal;
    align-items:flex-start;
    line-height:1.35;
    text-align:left;
  }
  .wizard-step label.chip input[type="checkbox"],
  .wizard-step label.chip input[type="radio"]{
    margin-top:3px;
    flex:0 0 auto;
  }
  .wizard-step .choice-row{
    flex-direction:row;
    align-items:stretch;
    gap:8px;
  }
  .wizard-step .choice-row .chip{
    width:calc(50% - 4px);
    flex:1 1 0;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    white-space:normal;
    text-align:center;
    padding:10px 8px;
    min-height:54px;
  }
  .wizard-step .choice-row .chip input[type="radio"]{
    margin-top:0;
  }
  .wizard-step .row{align-items:flex-start}
  .wizard-step .btn{white-space:normal}
  .terms-box{
    width:100%;
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:14px;
    background:rgba(122,0,25,.03);
    color:var(--umu-black);
    font-size:13px;
    line-height:1.45;
  }
  .terms-box input[type="checkbox"]{
    margin-top:3px;
    flex:0 0 auto;
  }
  .surname-field{order:1}
  .other-names-field{order:2}
  .dob-field{order:3}
  .first-name-field{order:4}
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.98));
  border:1px solid var(--border);
  border-radius:16px;
  padding:16px;
  box-shadow:var(--shadow);
}
.title{font-size:22px; font-weight:900; margin:0 0 6px; font-family:var(--font-head)}
.muted{color:var(--muted)}
.field{display:flex; flex-direction:column; gap:6px; margin:10px 0}
.label{font-size:13px; color:var(--umu-black); font-weight:800; letter-spacing:.12px}
.label .req{color:var(--danger); font-weight:900; margin-left:6px}
.req{color:var(--danger); font-weight:900}
input,select,textarea{
  width:100%;
  border:1px solid var(--border);
  background:rgba(255,255,255,.92);
  color:var(--umu-black);
  padding:10px 12px;
  border-radius:12px;
  outline:none;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder{color:rgba(91,100,114,.85)}
input:focus, select:focus, textarea:focus{
  border-color:rgba(242,183,5,.65);
  box-shadow:0 0 0 4px rgba(242,183,5,.18);
  background:#fff;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"]{border-color:rgba(185,28,28,.65)}
input[type="file"]{padding:10px 12px; background:rgba(255,255,255,.92)}
input[type="file"]::file-selector-button{
  border:1px solid var(--border);
  background:rgba(17,17,17,.04);
  color:var(--umu-black);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  margin-right:10px;
  font-weight:800;
}
input[type="file"]::file-selector-button:hover{background:rgba(17,17,17,.06)}
textarea{min-height:90px; resize:vertical}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.chip{display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:rgba(122,0,25,.04); color:var(--muted); font-size:12px}
.kbd{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:12px; padding:2px 6px; border:1px solid var(--border); border-radius:8px; color:var(--muted)}
.flash-stack{
  position:sticky;
  top:78px;
  z-index:28;
  margin:10px 0 4px;
}
.flash-stack .flash{margin:8px 0}
.flash{
  border-radius:12px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-left-width:4px;
  margin:10px 0;
  font-weight:700;
  line-height:1.4;
  box-shadow:0 10px 20px rgba(17,17,17,.08);
}
.flash.success{border-color:rgba(34,197,94,.55); border-left-color:rgba(21,128,61,.95); background:rgba(34,197,94,.14)}
.flash.danger{border-color:rgba(239,68,68,.55); border-left-color:rgba(185,28,28,.95); background:rgba(239,68,68,.14)}
.flash.warning{border-color:rgba(245,158,11,.55); border-left-color:rgba(180,83,9,.95); background:rgba(245,158,11,.14)}
.status-inline{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:18px;
}
.umu-spinner{
  width:14px;
  height:14px;
  border-radius:999px;
  border:2px solid currentColor;
  border-right-color:transparent;
  display:inline-block;
  animation:umuSpin .8s linear infinite;
  flex:0 0 auto;
}
@keyframes umuSpin{
  from{transform:rotate(0deg)}
  to{transform:rotate(360deg)}
}
table{width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--border); border-radius:14px; overflow:hidden; background:rgba(255,255,255,.92)}
th,td{border-bottom:1px solid var(--border); padding:10px 10px; text-align:left; vertical-align:top}
thead th, th{background:rgba(122,0,25,.06); color:var(--umu-black); font-weight:900}
tbody tr:nth-child(even) td{background:rgba(17,17,17,.02)}
tbody tr:hover td{background:rgba(242,183,5,.10)}
.table-wrap{overflow:auto}
.right{margin-left:auto}
.save-indicator{font-size:12px; color:var(--muted)}

.wizard-top{display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:10px}
.wizard-progress{
  flex:1;
  height:10px;
  border-radius:999px;
  background:rgba(17,17,17,.08);
  overflow:hidden;
  min-width:220px;
}
.wizard-progress > div{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--primary), var(--accent));
  transition:width .25s ease;
}
.wizard-steps{display:flex; gap:14px; flex-wrap:wrap; align-items:center; justify-content:space-between; width:100%}
.wizard-steps .step{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  min-width:96px;
}
.wizard-steps .circle{
  width:38px;
  height:38px;
  border-radius:999px;
  border:2px solid rgba(17,17,17,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  color:rgba(17,17,17,.70);
  background:#fff;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.wizard-steps .lbl{
  font-size:12px;
  font-weight:900;
  letter-spacing:.4px;
  color:rgba(17,17,17,.60);
  text-transform:uppercase;
  text-align:center;
}
.wizard-steps .step.active .circle{
  background:var(--primary);
  border-color:rgba(122,0,25,.55);
  color:#fff;
}
.wizard-steps .step.active .lbl{color:var(--primary)}
.wizard-steps .step:hover .circle{transform:translateY(-1px)}
.wizard-steps .step:focus{outline:2px solid rgba(242,183,5,.6); outline-offset:3px; border-radius:12px}
.wizard-step{display:none; animation:fadeIn .2s ease}
.wizard-step.active{display:block}
@keyframes fadeIn{from{opacity:.5; transform:translateY(4px)}to{opacity:1; transform:translateY(0)}}
.wizard-nav{display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:14px}
@media(max-width:700px){.wizard-nav{flex-direction:column}.wizard-nav .btn{width:100%}}

.choice-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.section-head{
  margin:16px 0 10px;
  padding:12px 14px;
  background:var(--umu-gray);
  border-radius:12px;
  position:relative;
  border:1px solid rgba(17,17,17,.10);
}
.section-head:before{
  content:"";
  position:absolute;
  left:0;
  top:10px;
  bottom:10px;
  width:6px;
  border-radius:12px;
  background:linear-gradient(180deg, var(--danger), var(--primary));
}
.section-head .txt{
  margin-left:10px;
  font-weight:1000;
  letter-spacing:.6px;
  text-transform:uppercase;
  color:var(--primary);
}

.banner{
  margin-top:14px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid rgba(17,17,17,.12);
  box-shadow:0 12px 28px rgba(17,17,17,.08);
}
.banner .top{
  padding:12px 14px;
  text-align:center;
  font-weight:900;
  letter-spacing:.4px;
  color:rgba(17,17,17,.75);
}
.banner .headline{
  padding:14px 14px;
  background:#0b0b0b;
  color:var(--accent);
  font-weight:1000;
  text-align:center;
  letter-spacing:1px;
  text-transform:uppercase;
}
.banner .sub{
  padding:12px 14px;
  text-align:center;
  background:rgba(255,255,255,.96);
  color:var(--muted);
}

.auth-shell{
  max-width:920px;
  margin:0 auto;
  padding:22px 0 8px;
}
.auth-hero{
  border-radius:16px;
  padding:18px;
  border:1px solid var(--border);
  background:
    radial-gradient(1000px 520px at 10% 0%, rgba(122,0,25,.18), transparent 60%),
    radial-gradient(1000px 520px at 90% 0%, rgba(242,183,5,.22), transparent 60%),
    rgba(255,255,255,.92);
  box-shadow:var(--shadow);
}
.auth-hero .row{gap:12px}
.auth-logo{width:72px; height:72px; object-fit:contain; border-radius:16px; border:1px solid var(--border); background:#fff}
.auth-title{font-family:var(--font-head); font-weight:1000; font-size:22px; letter-spacing:.2px}
.auth-sub{color:var(--muted); font-weight:800}
.auth-card{max-width:560px; margin:14px auto 0}

.passport-mini{
  width:84px;
  height:84px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--border);
  box-shadow:0 10px 22px rgba(17,17,17,.10);
}
.xbtn{
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  font-weight:900;
  padding:0 4px;
  line-height:1;
}
.xbtn:hover{color:var(--danger)}

.status-banner{border-width:2px}
.status-banner.success{border-color:rgba(34,197,94,.55); background:rgba(34,197,94,.10)}
.status-banner.warning{border-color:rgba(245,158,11,.55); background:rgba(245,158,11,.10)}
.status-banner.danger{border-color:rgba(239,68,68,.55); background:rgba(239,68,68,.10)}

.terms-box{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
  padding:14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:rgba(122,0,25,.03);
  color:var(--umu-black);
  font-size:13px;
  line-height:1.45;
  cursor:pointer;
  width:100%;
  white-space:normal;
}
.terms-box input[type="checkbox"]{
  margin-top:0;
  flex:0 0 auto;
}
.terms-box span{
  display:block;
  width:100%;
}

.home-landing{
  padding:20px;
}
.home-intake-badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(21,128,61,.35);
  background:rgba(22,163,74,.10);
  color:#166534;
  font-weight:1000;
  border-radius:999px;
  padding:10px 14px;
  margin:6px 0 10px;
}
.home-lead{
  font-size:18px;
  line-height:1.5;
  max-width:900px;
  margin:0;
}
.home-top-grid,
.home-bottom-grid{
  margin-top:14px;
}
.home-title-sm{
  font-size:20px;
  margin-bottom:10px;
}
.home-fees{
  border-left:4px solid var(--danger);
  background:linear-gradient(180deg, #fff9f9, #fff);
}
.home-list{
  margin:0;
  padding-left:20px;
  line-height:1.55;
}
.home-receipt-note{
  margin-top:12px;
  font-weight:800;
}
.home-help{
  background:
    radial-gradient(700px 260px at 100% 0%, rgba(242,183,5,.16), transparent 65%),
    #fff;
}
.home-contact-list{
  display:grid;
  gap:10px;
}
.home-contact-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:10px;
  background:rgba(255,255,255,.90);
}
.home-contact-number{
  font-weight:900;
  letter-spacing:.2px;
}
.home-contact-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.home-section{
  box-shadow:none;
}
.home-tip{
  margin-top:10px;
}
@media(max-width:700px){
  .home-landing{
    padding:14px;
  }
  .home-lead{
    font-size:16px;
  }
  .home-title-sm{
    font-size:18px;
  }
  .home-contact-item{
    flex-direction:column;
    align-items:flex-start;
  }
}

.site-footer{
  margin-top:18px;
  padding:12px 0 6px;
  border-top:1px solid var(--border);
  font-size:12px;
  text-align:center;
}

.hero{
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:14px;
  align-items:stretch;
}
@media(max-width:900px){.hero{grid-template-columns:1fr}}
.hero-media{
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--border);
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(122,0,25,.16), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(242,183,5,.22), transparent 60%),
    #fff;
  min-height:240px;
  aspect-ratio: 16 / 10;
  max-height:360px;
  position:relative;
}
.hero-media img{width:100%; height:100%; object-fit:cover; display:block; opacity:.95}
.hero-badge{
  position:absolute;
  left:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--border);
  box-shadow:0 18px 40px rgba(17,17,17,.10);
}
.hero-badge .big{font-weight:1000; font-family:var(--font-head); letter-spacing:.2px}
.hero-badge .small{font-size:12px; color:var(--muted); font-weight:800}

.note{
  border:1px solid rgba(242,183,5,.50);
  background:rgba(242,183,5,.10);
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  color:var(--umu-black);
}

.stackbar{
  height:12px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(0,0,0,.06);
  border:1px solid var(--border);
  display:flex;
}
.stackbar .seg{height:100%}
.stackbar .seg.success{background:rgba(21,128,61,.85)}
.stackbar .seg.danger{background:rgba(185,28,28,.85)}
.stackbar .seg.warning{background:rgba(245,158,11,.85)}
.stackbar .seg.muted{background:rgba(100,116,139,.55)}

.bars{display:flex; gap:10px; align-items:flex-end; overflow:auto; padding-bottom:6px}
.bar{min-width:64px; height:180px; position:relative; border:1px solid var(--border); border-radius:12px; padding:8px; background:rgba(255,255,255,.85)}
.bar .fill{position:absolute; left:8px; right:8px; bottom:28px; background:linear-gradient(180deg, var(--accent), var(--primary)); border-radius:10px}
.bar .lbl{position:absolute; left:8px; right:8px; bottom:8px; font-size:10px; color:var(--muted); text-align:center}
.bar .val{position:absolute; left:8px; right:8px; top:8px; font-size:11px; color:var(--muted); text-align:center; font-weight:800}

.dropdown-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  border:1px solid var(--border);
  border-radius:14px;
  padding:6px;
  max-height:240px;
  overflow:auto;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 40px rgba(17,17,17,.12);
  z-index:40;
  display:none;
}
.dropdown-menu.open{display:block}
.dropdown{position:relative}
.dropdown-item{
  width:100%;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  padding:10px 10px;
  border-radius:12px;
  cursor:pointer;
}
.dropdown-item:hover{
  background:rgba(122,0,25,.06);
  border-color:rgba(122,0,25,.18);
}
.dropdown-empty{padding:10px}

.prog-choices{display:grid; gap:12px}
.choice-card{
  border:1px dashed rgba(17,17,17,.20);
  border-radius:14px;
  padding:12px;
  background:rgba(122,0,25,.02);
}

.chatbot{
  position:static;
}
.chatbot-launcher{
  position:fixed;
  right:16px;
  bottom:18px;
  z-index:60;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(122,0,25,.25);
  background:linear-gradient(180deg, var(--primary), #5d0014);
  color:#fff;
  border-radius:999px;
  padding:12px 16px;
  box-shadow:0 16px 34px rgba(122,0,25,.24);
  font-weight:900;
  cursor:pointer;
}
.chatbot-launcher-text{
  display:inline-block;
}
.chatbot-launcher-icon{
  width:28px;
  height:28px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:1000;
}
.chatbot-panel{
  position:fixed;
  right:16px;
  bottom:74px;
  z-index:61;
  width:min(264px, calc(100vw - 24px));
  height:min(54vh, 440px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 60px rgba(17,17,17,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chatbot-panel[hidden]{
  display:none !important;
}
.chatbot-head{
  position:relative;
  z-index:20;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-bottom:1px solid rgba(17,17,17,.08);
  background:
    radial-gradient(900px 280px at 10% 0%, rgba(122,0,25,.12), transparent 55%),
    radial-gradient(900px 280px at 90% 0%, rgba(242,183,5,.16), transparent 55%),
    rgba(255,255,255,.98);
}
.chatbot-title{font-weight:1000; font-family:var(--font-head); font-size:18px}
.chatbot-sub{font-size:12px; color:var(--muted); margin-top:4px; line-height:1.4}
.chatbot-close{
  position:relative;
  z-index:30;
  border:1px solid rgba(17,17,17,.10);
  background:rgba(255,255,255,.85);
  color:var(--umu-black);
  width:30px;
  height:30px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  font-weight:900;
  flex:0 0 auto;
  box-shadow:0 6px 14px rgba(17,17,17,.08);
}
.chatbot-close:hover{border-color:rgba(185,28,28,.28); color:var(--danger)}
.chatbot-messages{
  padding:14px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1 1 auto;
  min-height:0;
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(255,255,255,.97));
}
.chatbot-msg{
  max-width:90%;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid var(--border);
  box-shadow:0 8px 18px rgba(17,17,17,.05);
  white-space:pre-wrap;
  word-break:break-word;
  line-height:1.5;
}
.chatbot-msg.user{
  margin-left:auto;
  background:rgba(122,0,25,.08);
  border-color:rgba(122,0,25,.16);
}
.chatbot-msg.bot{
  margin-right:auto;
  background:#fff;
}
.chatbot-msg .meta{
  display:block;
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
  font-weight:700;
}
.chatbot-suggestions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:8px;
}
.chatbot-suggestions button{
  border:1px solid rgba(17,17,17,.12);
  background:rgba(17,17,17,.03);
  color:var(--text);
  border-radius:999px;
  padding:6px 10px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.chatbot-suggestions button:hover{background:rgba(17,17,17,.06)}
.chatbot-form{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px 12px;
  border-top:1px solid rgba(17,17,17,.08);
  background:rgba(255,255,255,.98);
}
.chatbot-form input{
  flex:1;
  min-width:0;
}
.chatbot-quick{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  padding:0 12px 10px;
}
.chatbot-quick button{
  border:1px solid rgba(122,0,25,.16);
  background:rgba(122,0,25,.04);
  color:var(--primary);
  border-radius:999px;
  padding:6px 9px;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.chatbot-quick button:hover{background:rgba(122,0,25,.08)}
.chatbot.is-open .chatbot-launcher{
  display:inline-flex;
  bottom: calc(var(--chatbot-panel-height, 440px) + 86px);
}
.chatbot.is-open .chatbot-launcher{
  right:16px;
}
@media (max-width: 700px){
  .chatbot-launcher{
    right:10px;
    bottom:10px;
    padding:10px 12px;
    gap:8px;
  }
  .chatbot-launcher-text{display:none}
  .chatbot-panel{
    right:10px;
    bottom:68px;
    width:calc(100vw - 20px);
    height:min(58vh, 520px);
  }
  .chatbot.is-open .chatbot-launcher{
    bottom: calc(var(--chatbot-panel-height, 520px) + 78px);
    right:10px;
  }
}
