:root{
  --bg:#070d1c;
  --card:#111a2e;
  --card2:#0f1730;
  --text:#e7ecff;
  --muted:#a9b4da;
  --line:rgba(255,255,255,.08);
  --accent:#6ea8fe;
  --ok:#4ade80;
  --bad:#fb7185;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(ellipse 110% 35% at 50% -5%, rgba(200,220,255,.06), transparent 50%),
    radial-gradient(ellipse 80%  60% at 10% 30%, rgba(110,168,254,.13), transparent 60%),
    radial-gradient(ellipse 60%  50% at 90% 45%, rgba(90,130,255,.07),  transparent 55%),
    linear-gradient(to bottom, #070d1c 0%, #0a1428 55%, #0d1a34 100%);
  color:var(--text);
}

.wrap{max-width:1000px;margin:0 auto;padding:18px}
.top{
  position:sticky;top:0;z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.75);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;gap:12px;align-items:center}
.logo{
  width:44px;height:44px;border-radius:12px;
  background: linear-gradient(135deg, rgba(110,168,254,.9), rgba(110,168,254,.25));
  display:grid;place-items:center;
  font-weight:800;letter-spacing:.5px;
  box-shadow: var(--shadow);
}
.title{font-size:16px;font-weight:800}
.subtitle{font-size:12px;color:var(--muted)}
.nav{display:flex;gap:14px;align-items:center}
.nav a{
  color:var(--muted);text-decoration:none;font-weight:600;font-size:13px;
  padding:8px 10px;border-radius:10px;
}
.nav a:hover{color:var(--text);background:rgba(255,255,255,.06)}
.top .wrap{display:flex;justify-content:space-between;align-items:center}

.hero{padding:28px 0 14px}
.hero h1{margin:0 0 10px;font-size:34px;line-height:1.1}
.hero p{margin:0;color:var(--muted);max-width:70ch}

.notice{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background: rgba(255,255,255,.04);
  color:var(--muted);
}

.card{
  margin:18px 0;
  padding:18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17,26,46,.95), rgba(15,23,48,.92));
  box-shadow: var(--shadow);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}
.field{display:flex;flex-direction:column;gap:7px}
.field.wide{grid-column:1 / -1}
label{font-size:13px;font-weight:700}
input,select,textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
}
textarea{min-height:110px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color: rgba(110,168,254,.55); box-shadow: 0 0 0 3px rgba(110,168,254,.12)}
.hint{margin:0;color:var(--muted);font-size:12px}
.muted{color:var(--muted)}
.small{font-size:12px}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor:pointer;
  user-select:none;
  font-size:13px;
  font-weight:650;
}
.chip[aria-pressed="true"]{
  border-color: rgba(110,168,254,.45);
  box-shadow: 0 0 0 3px rgba(110,168,254,.12);
  color: var(--text);
  background: rgba(110,168,254,.10);
}
.chip small{opacity:.85;font-weight:700}

.checks{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.check{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:13px}
.check input{width:auto;margin-top:3px}

.actions{display:flex;gap:12px;align-items:center;margin-top:6px}
button{
  border:0;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  background: linear-gradient(135deg, rgba(110,168,254,.95), rgba(110,168,254,.50));
  color:#071023;
  cursor:pointer;
}
button:disabled{opacity:.55;cursor:not-allowed}
.status{color:var(--muted);font-size:13px}
.status.ok{color:var(--ok)}
.status.bad{color:var(--bad)}

.bullets{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.footer{padding:18px 0 30px;text-align:center}

#website{position:absolute;left:-9999px;opacity:0;height:0;width:0}

@media (max-width: 780px){
  .top .wrap{flex-direction:column;align-items:flex-start;gap:10px}
  .grid{grid-template-columns: 1fr}
  .hero h1{font-size:28px}
}

/* ─── Mountain background ─────────────────────────────────────── */
.mountain-bg{
  position:fixed;bottom:0;left:0;right:0;
  height:42vh;z-index:-1;pointer-events:none;
}
.mountain-bg svg{width:100%;height:100%;display:block;}

/* ─── Step wrapper ────────────────────────────────────────────── */
main{padding-bottom:60px}
.step-wrap{
  max-width:620px;
  margin:28px auto 0;
  padding:0 18px;
}

/* ─── Answer trail (summary chips) ───────────────────────────── */
.answer-trail{
  display:flex;flex-wrap:wrap;gap:8px;
  min-height:14px;margin-bottom:18px;
}
.trail-chip{
  padding:5px 12px;border-radius:999px;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  font-size:12px;color:var(--text);white-space:nowrap;
}
.trail-lbl{color:var(--muted);margin-right:5px;font-weight:600;}

/* ─── Step card ───────────────────────────────────────────────── */
.step-card{
  background:linear-gradient(160deg,rgba(17,26,46,.98),rgba(13,22,46,.97));
  border:1px solid var(--line);
  border-radius:22px;
  padding:30px 26px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  animation:stepIn .22s ease both;
}
@keyframes stepIn{
  from{opacity:0;transform:translateY(14px)}
  to  {opacity:1;transform:translateY(0)}
}
.step-q{font-size:24px;font-weight:800;line-height:1.25;margin:0 0 8px;}
.step-sub{font-size:14px;margin:0 0 20px;color:var(--muted);line-height:1.55}

/* ─── Back button ─────────────────────────────────────────────── */
.back-btn{
  display:inline-flex;align-items:center;gap:6px;
  background:transparent;border:1px solid var(--line);
  color:var(--muted);font-size:12px;font-weight:600;
  padding:6px 12px;border-radius:8px;cursor:pointer;
  margin-bottom:20px;
}
.back-btn:hover{color:var(--text);background:rgba(255,255,255,.05);}

/* ─── Choice grid ─────────────────────────────────────────────── */
.choice-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(175px,1fr));
  gap:10px;margin-top:6px;
}
.choice-btn{
  width:100%;padding:16px 18px;
  border:1px solid var(--line);border-radius:14px;
  background:rgba(255,255,255,.03);color:var(--text);
  text-align:left;font-size:15px;font-weight:600;
  cursor:pointer;transition:border-color .14s,background .14s;
  min-height:54px;line-height:1.35;
}
.choice-btn:hover{border-color:rgba(110,168,254,.45);background:rgba(110,168,254,.07);}
.choice-btn.selected{border-color:rgba(110,168,254,.65);background:rgba(110,168,254,.13);}
.choice-muted{
  background:transparent !important;
  border-color:rgba(255,255,255,.08) !important;
  color:var(--muted) !important;font-size:13px;
}
.choice-muted:hover{color:var(--text) !important;}

/* ─── Ghost secondary button ──────────────────────────────────── */
.btn-ghost{
  background:transparent;border:1px solid var(--line);
  color:var(--muted);font-weight:600;
}
.btn-ghost:hover{color:var(--text);background:rgba(255,255,255,.05);}

/* ─── Input helpers ───────────────────────────────────────────── */
.input-stack{display:flex;flex-direction:column;gap:14px;margin-top:8px;}
.input-row{margin-top:8px;}
.examiner-rows{display:flex;flex-direction:column;gap:8px;}
.examiner-row{display:flex;gap:8px;}
.examiner-row .ex-name{flex:1 1 auto;}
.examiner-row .ex-role{flex:0 0 130px;}
@media (max-width:520px){
  .examiner-row{flex-direction:column;}
  .examiner-row .ex-role{flex:1 1 auto;}
}
.big-input{
  font-size:30px;font-weight:700;padding:14px 18px;
  text-align:center;max-width:160px;border-radius:14px;
}

/* ─── Attestation box ─────────────────────────────────────────── */
.attest-box{
  margin-top:20px;padding:16px;
  border:1px solid var(--line);border-radius:14px;
  background:rgba(255,255,255,.03);
}
.attest-label,.check-label{
  display:flex;gap:12px;align-items:flex-start;
  font-size:14px;font-weight:600;cursor:pointer;line-height:1.55;
}
.attest-label input,.check-label input{
  width:auto;margin-top:3px;flex-shrink:0;
}

/* ─── Score grid ──────────────────────────────────────────────── */
.score-section{margin-bottom:22px;}
.score-section-title{
  font-size:12px;font-weight:700;text-transform:uppercase;
  letter-spacing:.6px;color:var(--muted);margin:0 0 10px;
}
.score-row{
  display:grid;grid-template-columns:1fr 96px;
  align-items:center;gap:12px;
  padding:8px 0;border-bottom:1px solid var(--line);
}
.score-row:last-child{border-bottom:none;}
.score-label{font-size:13px;line-height:1.4;}
.score-sel{padding:8px 10px;border-radius:8px;}

/* ─── Success screen ──────────────────────────────────────────── */
.success-screen{text-align:center;padding:20px 0 10px;}
.success-icon{
  font-size:52px;margin-bottom:16px;
  display:inline-flex;align-items:center;justify-content:center;
  width:80px;height:80px;border-radius:50%;
  background:rgba(74,222,128,.12);color:var(--ok);
  border:1px solid rgba(74,222,128,.25);
}

/* ─── Progress bar ────────────────────────────────────────────── */
.step-footer{display:flex;align-items:center;gap:12px;margin-top:18px;padding:0 2px;}
.progress-track{flex:1;height:3px;background:rgba(255,255,255,.1);border-radius:99px;overflow:hidden;}
.progress-fill{height:100%;width:0%;background:var(--accent);border-radius:99px;transition:width .4s ease;}
.progress-label{font-size:11px;color:var(--muted);white-space:nowrap;}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width:520px){
  .step-q{font-size:21px;}
  .step-card{padding:22px 18px;}
  .choice-grid{grid-template-columns:1fr;}
  .score-row{grid-template-columns:1fr 88px;}
}
