/* ACB English Placement — Old Glory Blue + shiny gold */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root{
  --ep-blue:#002868;
  --ep-blue-deep:#001F54;
  --ep-blue-deepest:#001233;
  --ep-blue-light:#1A4480;
  --ep-gold:#D4AF37;
  --ep-gold-bright:#FFD700;
  --ep-gold-shine:#FFEB8A;
  --ep-gold-pale:#FFF8DC;
  --ep-red:#B22234;
  --ep-white:#FFFFFF;
}

.ep-lux{font-family:'EB Garamond',Georgia,serif;color:var(--ep-blue-deep);line-height:1.65}
.ep-lux *{box-sizing:border-box}

.ep-hero{
  background:linear-gradient(145deg,var(--ep-blue-deepest) 0%,var(--ep-blue) 42%,var(--ep-blue-light) 100%);
  border-radius:18px;padding:36px 40px 32px;margin-bottom:28px;
  color:#fff;position:relative;overflow:hidden;
  box-shadow:0 24px 60px -16px rgba(0,18,51,.45);
}
.ep-hero::before{
  content:'';position:absolute;top:-40%;right:-8%;width:320px;height:320px;
  background:radial-gradient(circle,rgba(212,175,55,.22) 0%,transparent 70%);
  pointer-events:none;
}
.ep-hero::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,transparent,#D4AF37 20%,#FFEB8A 50%,#D4AF37 80%,transparent);
}
.ep-eyebrow{
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:#FFD700;font-weight:600;margin-bottom:10px;position:relative;
}
.ep-hero h2{
  font-family:'Playfair Display',serif;font-size:28px;font-weight:700;
  line-height:1.2;margin:0 0 12px;color:#fff;position:relative;
}
.ep-hero p{font-size:17px;color:#c7cfe0;margin:0;line-height:1.7;max-width:720px;position:relative}
.ep-ref{
  display:inline-flex;align-items:center;gap:8px;margin-top:16px;
  padding:8px 14px;border-radius:999px;
  background:rgba(212,175,55,.12);border:1px solid rgba(212,175,55,.35);
  font-size:12px;letter-spacing:.08em;color:#FFEB8A;font-weight:600;
}

.ep-progress{display:flex;gap:0;margin-bottom:28px;position:relative}
.ep-progress::before{
  content:'';position:absolute;top:18px;left:8%;right:8%;height:2px;
  background:linear-gradient(90deg,#e2e8f0,#e2e8f0);z-index:0;
}
.ep-pstep{
  flex:1;text-align:center;position:relative;z-index:1;padding:0 4px;
}
.ep-pstep-dot{
  width:36px;height:36px;border-radius:50%;margin:0 auto 8px;
  display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;
  background:#fff;border:2px solid #e2e8f0;color:#94a3b8;
  transition:all .35s ease;
}
.ep-pstep-label{font-size:11px;font-weight:600;color:#94a3b8;letter-spacing:.04em;text-transform:uppercase}
.ep-pstep.active .ep-pstep-dot{
  background:linear-gradient(135deg,#9A7B0A,#FFD700);
  border-color:#D4AF37;color:#001233;
  box-shadow:0 4px 16px rgba(212,175,55,.4);
}
.ep-pstep.active .ep-pstep-label{color:#002868}
.ep-pstep.done .ep-pstep-dot{background:#f0fdf4;border-color:#86efac;color:#166534}
.ep-pstep.done .ep-pstep-label{color:#166534}

.ep-panel{
  background:#fff;border:1px solid #e8e0d0;border-radius:16px;
  padding:32px 36px;margin-bottom:24px;
  box-shadow:0 12px 40px -12px rgba(14,27,51,.1);
}
.ep-section-title{
  font-family:'Playfair Display',serif;font-size:22px;font-weight:600;
  color:#002868;margin:0 0 6px;
}
.ep-section-sub{font-size:15px;color:#4b5563;margin:0 0 22px}
.ep-panel,.ep-panel p,.ep-panel li{color:#1a2436}
.ep-panel strong{color:#002868}

.ep-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:20px 0}
.ep-stat{
  padding:16px 18px;border-radius:12px;
  background:linear-gradient(135deg,#fbf8f1,#fff);
  border:1px solid #e8e0d0;text-align:center;
}
.ep-stat strong{display:block;font-family:'Playfair Display',serif;font-size:22px;color:#002868}
.ep-stat span{font-size:12px;color:#6b7280;letter-spacing:.04em}

.ep-passage{
  background:linear-gradient(180deg,#fbf8f1 0%,#fff 100%);
  border:1px solid #e8e0d0;border-left:4px solid #D4AF37;
  border-radius:12px;padding:28px 32px;margin-bottom:24px;
  font-size:18px;line-height:1.85;color:#1a2436;
  font-family:'EB Garamond',Georgia,serif;
}
.ep-passage-title{
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:#9A7B0A;font-weight:700;margin-bottom:14px;
}

.ep-q{
  margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid #f0ebe3;
}
.ep-q:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.ep-q-text{
  font-size:17px;font-weight:600;color:#002868;margin-bottom:14px;line-height:1.55;
}
.ep-opts{display:flex;flex-direction:column;gap:10px}
.ep-opt{
  display:flex;align-items:flex-start;gap:12px;padding:14px 18px;
  border:1.5px solid #e8e0d0;border-radius:10px;cursor:pointer;
  transition:all .2s ease;background:#fff;
}
.ep-opt:hover{border-color:#D4AF37;background:#fbf8f1}
.ep-opt input{margin-top:3px;accent-color:#D4AF37;flex-shrink:0}
.ep-opt:has(input:checked){
  border-color:#D4AF37;background:linear-gradient(135deg,#fef9ec,#fff);
  box-shadow:0 4px 14px rgba(212,175,55,.15);
}
.ep-opt-label{font-size:16px;color:#1a2436;line-height:1.5}

.ep-scenario{
  background:linear-gradient(135deg,#fef9ec 0%,#fff 60%);
  border:1.5px solid #D4AF37;border-radius:12px;
  padding:22px 26px;margin-bottom:20px;font-size:17px;line-height:1.75;color:#1a2436;
}
.ep-client{
  background:linear-gradient(135deg,#001233,#002868);
  color:#fff;border-radius:12px;padding:20px 24px;margin-bottom:18px;
  border-left:4px solid #FFD700;font-size:17px;line-height:1.65;
  box-shadow:0 8px 24px rgba(0,18,51,.25);
}
.ep-client-label{
  font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:#FFD700;margin-bottom:8px;font-weight:700;
}
.ep-client-quote{font-style:italic;color:#f0f0f5}

.ep-textarea{
  width:100%;padding:18px 20px;border:1.5px solid #e8e0d0;border-radius:12px;
  font-size:17px;font-family:'EB Garamond',Georgia,serif;line-height:1.7;
  min-height:200px;resize:vertical;transition:border-color .2s,box-shadow .2s;
  background:#fbf8f1;
}
.ep-textarea:focus{
  outline:none;border-color:#D4AF37;
  box-shadow:0 0 0 3px rgba(212,175,55,.15);background:#fff;
}
.ep-hint{font-size:14px;color:#6b7280;margin-top:10px}

.ep-rec-bar{
  display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:16px 0;
  padding:16px 20px;background:#fef2f2;border:1px solid #fecaca;border-radius:12px;
}
.ep-rec-timer{
  font-family:'Playfair Display',serif;font-size:24px;font-weight:700;color:#991b1b;
}

.ep-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px;padding-top:8px}
.ep-btn{
  font-family:'EB Garamond',Georgia,serif;font-size:16px;font-weight:700;
  padding:14px 28px;border-radius:10px;cursor:pointer;border:none;
  transition:all .25s ease;
}
.ep-btn-gold{
  background:linear-gradient(135deg,#9A7B0A,#FFD700);
  color:#001233;box-shadow:0 6px 20px rgba(212,175,55,.35);
}
.ep-btn-gold:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(212,175,55,.45)}
.ep-btn-gold:disabled{opacity:.55;cursor:not-allowed;transform:none}
.ep-btn-outline{
  background:transparent;color:#002868;
  border:1.5px solid #e8e0d0;
}
.ep-btn-outline:hover{border-color:#D4AF37;color:#9A7B0A}
.ep-btn-record{background:#991b1b;color:#fff}
.ep-btn-record:hover{background:#7f1d1d}

.ep-scores{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.ep-score-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:16px 18px;background:#fbf8f1;border:1px solid #e8e0d0;border-radius:10px;
  font-size:16px;color:#1a2436;
}
.ep-score-row span,.ep-score-label{color:#334155!important;font-weight:700;text-transform:capitalize}
.ep-score-row strong,.ep-score-value{color:#002868!important;font-weight:800}
.ep-feedback{
  margin:20px 0;padding:20px 24px;background:#fff;
  border:1px solid #e8e0d0;border-radius:12px;border-left:4px solid #D4AF37;
}
.ep-feedback h4{font-family:'Playfair Display',serif;margin:0 0 12px;font-size:18px;color:#002868}
.ep-feedback p,.ep-feedback li{font-size:15px;line-height:1.65;color:#4b5563}
.ep-dim{margin:8px 0;font-size:15px}
.ep-model{margin-top:14px;padding:14px 16px;background:#fef9ec;border-radius:8px;font-size:15px}
.ep-review-wrong{color:#991b1b;font-size:15px;margin:6px 0}

.ep-loading{
  text-align:center;padding:48px 24px;
}
.ep-loading p{color:#6b7280;font-size:17px;margin-top:12px}
.ep-spinner{
  width:40px;height:40px;margin:0 auto;
  border:3px solid #e8e0d0;border-top-color:#D4AF37;border-radius:50%;
  animation:epSpin .8s linear infinite;
}
@keyframes epSpin{to{transform:rotate(360deg)}}

.ep-cert-card{
  display:flex;gap:18px;align-items:flex-start;margin:16px 0 0;padding:22px 24px;
  background:linear-gradient(180deg,#fff 0%,#fbf8f1 100%);
  border:2px solid #e8e0d0;border-radius:14px;color:#002868;
  box-shadow:0 8px 24px -12px rgba(14,27,51,.12);
}
.ep-cert-seal{
  flex-shrink:0;width:48px;height:48px;display:flex;align-items:center;justify-content:center;
  font-size:22px;color:#9A7B0A;background:#fff8dc;border-radius:50%;
  border:2px solid #D4AF37;
}
.ep-cert-body{flex:1;min-width:0}
.ep-cert-body h3{
  margin:0 0 8px;font-family:'Playfair Display',serif;font-size:20px;font-weight:700;color:#002868;
}
.ep-cert-id{font-size:15px;margin:0 0 14px;color:#334155;font-weight:600}
.ep-cert-id strong{color:#002868;font-weight:800}
.ep-cert-hint{font-size:14px;line-height:1.5;margin:12px 0 0;color:#4b5563}
.ep-cert-hint strong{color:#002868;font-weight:800}
.ep-cert-actions{display:flex;flex-wrap:wrap;gap:10px}
.ep-cert-actions .ep-btn{text-decoration:none}
.ep-cert-card .ep-btn-outline{
  background:#fff;border-color:#c9b896!important;color:#002868!important;font-weight:800;
}
.ep-cert-card .ep-btn-outline:hover{border-color:#D4AF37!important;color:#9A7B0A!important;background:#fffbeb}
.ep-cert-card .ep-scores .ep-score-row,
.ep-panel .ep-scores .ep-score-row{
  background:#fff;border-color:#e8e0d0;color:#002868!important;
}
.ep-cert-card .ep-scores .ep-score-row span,
.ep-panel .ep-scores .ep-score-row span{
  color:#334155!important;font-weight:700;text-transform:capitalize;
}
.ep-cert-card .ep-scores .ep-score-row strong,
.ep-panel .ep-scores .ep-score-row strong{
  color:#002868!important;font-weight:800;font-size:17px;
}

.placement-shell.ep-lux{
  background:linear-gradient(180deg,#f4efe4 0%,#f8f9fb 120px);
  border:1px solid #e8e0d0;border-radius:20px;padding:28px 32px 36px;
  box-shadow:0 20px 50px -20px rgba(14,27,51,.12);
}

@media(max-width:768px){
  .ep-hero{padding:28px 24px}
  .ep-hero h2{font-size:24px}
  .ep-panel{padding:22px 20px}
  .ep-pstep-label{font-size:9px}
  .ep-scores{grid-template-columns:1fr}
}