:root{--exam-blue:#123d73;--exam-gold:#f4b41a;--exam-ink:#172033;--exam-muted:#667085;--exam-bg:#f4f7fb}
.exam-page{background:var(--exam-bg);min-height:100vh}
.exam-topbar{min-height:72px;padding:14px clamp(18px,4vw,60px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-bottom:1px solid #e7ebf2;position:sticky;top:0;z-index:20}
.exam-topbar a{color:var(--exam-blue);font-weight:700;text-decoration:none}.exam-topbar span{color:var(--exam-muted)}
.exam-shell{width:min(980px,calc(100% - 28px));margin:36px auto 80px}
.exam-intro,.exam-result{background:#fff;border-radius:26px;padding:clamp(28px,5vw,58px);box-shadow:0 20px 60px rgba(24,45,78,.10);text-align:center}
.exam-intro h1,.exam-result h1{margin:8px 0 12px;color:var(--exam-ink);font-size:clamp(32px,5vw,52px)}
.exam-intro>p,.exam-result>p{color:var(--exam-muted);font-size:18px;max-width:650px;margin:0 auto 28px}
.exam-intro.compact{padding:28px;margin-bottom:22px;text-align:left}.exam-intro.compact h1{font-size:30px}.exam-intro.compact>p{margin:0 0 18px;max-width:none}
.exam-rules,.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:30px 0}
.exam-rules div,.result-grid div{padding:20px;border-radius:18px;background:#f6f8fc;display:flex;flex-direction:column;gap:5px}.exam-rules strong,.result-grid strong{font-size:28px;color:var(--exam-blue)}.exam-rules span,.result-grid span{color:var(--exam-muted)}
.exam-progress{height:10px;background:#e8edf5;border-radius:999px;overflow:hidden}.exam-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--exam-blue),var(--exam-gold));transition:width .25s}
.questions-list{display:block}.exam-question{display:none;grid-template-columns:52px 1fr;gap:18px;background:#fff;border-radius:20px;padding:clamp(24px,4vw,42px);box-shadow:0 12px 38px rgba(24,45,78,.10);min-height:360px}.exam-question.is-active{display:grid;animation:examIn .22s ease-out}@keyframes examIn{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}
.question-number{width:46px;height:46px;border-radius:14px;background:var(--exam-blue);color:#fff;display:grid;place-items:center;font-weight:800;font-size:18px}.question-body h2{margin:5px 0 20px;color:var(--exam-ink);font-size:20px;line-height:1.45}.question-body>img{display:block;max-width:100%;max-height:360px;object-fit:contain;border-radius:14px;margin:0 0 18px}
.answer-options{display:grid;gap:10px}.answer-options label{display:block;cursor:pointer}.answer-options input{position:absolute;opacity:0;pointer-events:none}.answer-options span{display:block;padding:15px 17px;border:2px solid #e7ebf2;border-radius:13px;color:#344054;transition:.18s}.answer-options span:hover{border-color:#9db2ce;background:#f8fbff}.answer-options input:checked+span{border-color:var(--exam-blue);background:#edf4ff;color:var(--exam-blue);font-weight:700}.answer-options input:focus-visible+span{outline:3px solid rgba(244,180,26,.35)}
.exam-live-stats{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:var(--exam-muted);font-size:14px;flex-wrap:wrap}.skip-counter{padding:7px 11px;border-radius:999px;background:#fff4d6;color:#805b00}.exam-navigation{display:grid;grid-template-columns:1fr auto auto 1fr;align-items:center;gap:14px;margin-top:18px;padding:16px 20px;background:#fff;border:1px solid #e4e9f1;border-radius:18px;box-shadow:0 14px 40px rgba(20,40,70,.12)}.exam-navigation>span{text-align:center;color:var(--exam-muted);font-weight:700}.exam-navigation .btn:first-child{justify-self:start}.exam-navigation .btn:nth-last-child(-n+2){justify-self:end}.exam-navigation [hidden]{display:none!important}.exam-navigation button:disabled{opacity:.45;cursor:not-allowed}.skip-button{background:#fff4d6;border:1px solid #f4c95d;color:#805b00}.skip-button:hover{background:#ffe8a6}
.result-symbol{width:80px;height:80px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;font-size:42px;font-weight:900}.passed .result-symbol{background:#dcfce7;color:#15803d}.failed .result-symbol{background:#fee2e2;color:#b42318}.result-score strong{font-size:42px;color:var(--exam-blue)}.result-grid{grid-template-columns:repeat(4,1fr)}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.result-actions form{margin:0}
@media(max-width:700px){.exam-topbar strong{display:none}.exam-shell{margin-top:20px}.exam-rules{grid-template-columns:1fr 1fr}.result-grid{grid-template-columns:1fr 1fr}.exam-question{grid-template-columns:1fr;padding:20px;min-height:0}.question-number{width:40px;height:40px}.exam-live-stats{align-items:flex-start;flex-direction:column}.exam-navigation{grid-template-columns:1fr 1fr}.exam-navigation>span{grid-column:1/-1;grid-row:1}.exam-navigation .btn{width:100%;justify-content:center!important}}



.answer-options label.answer-correct span{
  border-color:#1f9d55;
  background:#ecfdf3;
  color:#166534;
  font-weight:800;
  box-shadow:0 0 0 3px rgba(31,157,85,.08);
}

.answer-options label.answer-wrong span{
  border-color:#dc3545;
  background:#fff1f2;
  color:#b42318;
  font-weight:800;
  box-shadow:0 0 0 3px rgba(220,53,69,.07);
}

.answer-options label.answer-wrong span{
  color:#b42318;
  font-weight:800;
}

.answer-options input:disabled{
  cursor:not-allowed;
}

.answer-options label:has(input:disabled){
  cursor:default;
}

.answer-feedback{
  margin-top:24px;
  padding:20px 22px;
  border-radius:18px;
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:1rem;
  line-height:1.5;
  animation:examFeedbackIn .25s ease;
}

.answer-feedback strong{
  font-size:1.08rem;
}

.answer-feedback.correct{
  background:#ecfdf3;
  border:1px solid #a7f3d0;
  color:#166534;
}

.answer-feedback.wrong{
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#9f1239;
}

.answer-feedback.wrong span{
  margin-top:5px;
  color:#667085;
  font-size:.9rem;
}

.answer-feedback.wrong p{
  margin:0;
  color:#166534;
  font-weight:800;
}

.question-skipped{
  opacity:.82;
}

.question-skipped .question-number{
  background:#f4b41a;
  color:#172033;
}

@keyframes examFeedbackIn{
  from{
    opacity:0;
    transform:translateY(8px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.question-code{
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-bottom:12px;
    padding:6px 11px;
    border-radius:8px;
    background:#eef4fb;
    color:#123d73;
    font-size:13px;
    font-weight:600;
    letter-spacing:.3px;
}

.question-code strong{
    color:#172033;
    font-weight:800;
}
