/* skill-test.css - styles for skill-test.html (Profenaa Automation) */
.st-page{background:#f4f8ff;min-height:60vh}
.st-hidden{display:none !important}
/* style.css has a global `button{margin-top:30px;width:100%;...}` (for the old enrol popup) - neutralise it here */
.st-card,.st-opt,.st-btn,.st-close{margin:0;width:auto}
.st-modal input{margin:0}
.st-center{justify-content:center}
.st-section{padding:48px 0 70px}
.st-head{max-width:760px;margin:0 auto 34px}
.st-eyebrow{display:inline-block;background:#E7F1FE;color:#06418E;font-weight:700;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;padding:6px 14px;border-radius:99px}
.st-head h2{color:#052F66;font-weight:800;margin:14px 0 10px;font-size:clamp(1.5rem,3.2vw,2.1rem)}
.st-head p{color:#4b5a75;font-size:.95rem;line-height:1.7;margin:0}
.st-g{color:#16a34a;font-weight:700}.st-r{color:#dc2626;font-weight:700}

/* department cards */
.st-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;max-width:1100px;margin:0 auto}
.st-card{background:#fff;border:1px solid #dbe6fb;border-radius:18px;padding:24px 22px;text-align:left;cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;display:flex;flex-direction:column;gap:10px;font:inherit}
.st-card:hover,.st-card:focus-visible{transform:translateY(-5px);box-shadow:0 18px 40px rgba(7,27,89,.16);border-color:#135de5;outline:0}
.st-card-top{display:flex;justify-content:space-between;align-items:center}
.st-chip{display:inline-block;background:#071b59;color:#ffbf47;font-family:monospace,monospace;font-weight:700;font-size:.72rem;letter-spacing:.08em;padding:4px 10px;border-radius:6px}
.st-count{font-size:.72rem;color:#6b7a94;border:1px solid #dbe6fb;border-radius:6px;padding:3px 8px}
.st-card h3{color:#052F66;font-weight:800;font-size:1.25rem;margin:6px 0 0;line-height:1.3}
.st-card p{color:#6b7a94;font-size:.85rem;margin:0;line-height:1.55}
.st-go{margin-top:auto;padding-top:10px;color:#135de5;font-weight:700;font-size:.9rem}
.st-card:hover .st-go i{transform:translateX(4px)}.st-go i{transition:transform .2s}

/* buttons */
.st-btn{background:#071b59;color:#fff;border:2px solid #071b59;border-radius:10px;padding:11px 24px;font:inherit;font-weight:700;font-size:.92rem;cursor:pointer;transition:all .2s}
.st-btn:hover{background:#fff;color:#071b59}
.st-btn:disabled{opacity:.6;cursor:not-allowed}
.st-btn-alt{background:#fff;color:#071b59}
.st-btn-alt:hover{background:#071b59;color:#fff}
.st-btn-block{width:100%;margin-top:6px}
.st-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}

/* popup */
.st-overlay{position:fixed;inset:0;background:rgba(5,16,48,.65);backdrop-filter:blur(3px);z-index:2000;display:flex;align-items:center;justify-content:center;padding:16px}
.st-modal{position:relative;background:#fff;border-radius:18px;padding:30px 28px 26px;width:100%;max-width:430px;box-shadow:0 30px 70px rgba(0,0,0,.35);animation:stPop .22s ease}
@keyframes stPop{from{transform:translateY(14px) scale(.97);opacity:0}to{transform:none;opacity:1}}
.st-modal h3{color:#052F66;font-weight:800;margin:10px 0 4px;font-size:1.4rem}
.st-modal-sub{color:#6b7a94;font-size:.88rem;margin-bottom:14px}
.st-modal label{display:block;font-weight:600;font-size:.82rem;color:#052F66;margin:12px 0 5px}
.st-modal input{width:100%;padding:11px 13px;border:1.5px solid #cfdcf5;border-radius:10px;font:inherit;font-size:.95rem;background:#f8fbff}
.st-modal input:focus{outline:0;border-color:#135de5;background:#fff;box-shadow:0 0 0 3px rgba(19,93,229,.15)}
.st-close{position:absolute;top:10px;right:14px;background:none;border:0;font-size:1.8rem;line-height:1;color:#6b7a94;cursor:pointer}
.st-close:hover{color:#dc2626}
.st-error{color:#dc2626;font-size:.82rem;min-height:1.1em;margin:8px 0 0}

/* test */
.st-test{max-width:820px;margin:0 auto;background:#fff;border:1px solid #dbe6fb;border-radius:20px;padding:28px;box-shadow:0 14px 40px rgba(7,27,89,.08)}
.st-test-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.st-test-top h3{color:#052F66;font-weight:800;margin:8px 0 2px;font-size:1.35rem}
.st-test-top small{color:#6b7a94}
.st-score-pill{background:#E7F1FE;color:#06418E;border-radius:99px;padding:8px 16px;font-size:.88rem;font-weight:600}
.st-progress-wrap{margin:20px 0 6px}
.st-progress-label{display:flex;justify-content:space-between;font-size:.8rem;color:#6b7a94;font-weight:600;margin-bottom:6px}
.st-progress{height:9px;background:#e6eefc;border-radius:99px;overflow:hidden}
.st-progress div{height:100%;width:0;background:linear-gradient(90deg,#135de5,#ffbf47);border-radius:99px;transition:width .35s ease}
.st-qcard{margin-top:22px}
.st-qnum{color:#135de5;font-weight:700;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
.st-qtext{color:#0b1e4a;font-weight:700;font-size:1.12rem;line-height:1.6;margin-bottom:18px;white-space:pre-line;word-break:break-word}
.st-options{display:grid;gap:11px}
.st-opt{display:flex;gap:12px;align-items:flex-start;text-align:left;width:100%;background:#f8fbff;border:2px solid #d6e2f8;border-radius:12px;padding:13px 15px;font:inherit;font-size:.95rem;color:#14264f;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.st-opt:hover:not(:disabled){border-color:#135de5;background:#eef4ff;transform:translateX(3px)}
.st-opt .st-l{flex:0 0 28px;height:28px;border-radius:50%;background:#dbe6fb;color:#06418E;font-weight:800;font-size:.8rem;display:flex;align-items:center;justify-content:center}
.st-opt .st-t{flex:1;padding-top:3px;word-break:break-word}
.st-opt:disabled{cursor:default}
.st-opt.st-correct{background:#dcfce7;border-color:#16a34a;color:#14532d}
.st-opt.st-correct .st-l{background:#16a34a;color:#fff}
.st-opt.st-wrong{background:#fee2e2;border-color:#dc2626;color:#7f1d1d}
.st-opt.st-wrong .st-l{background:#dc2626;color:#fff}
.st-opt.st-dim{opacity:.55}
.st-feedback{min-height:1.4em;margin-top:14px;font-weight:700;font-size:.92rem}
.st-feedback.ok{color:#16a34a}.st-feedback.no{color:#dc2626}

/* result */
.st-result{text-align:center;padding:10px 0 4px}
.st-ring{--p:0;width:150px;height:150px;border-radius:50%;margin:6px auto 16px;display:flex;align-items:center;justify-content:center;
  background:conic-gradient(var(--c,#16a34a) calc(var(--p)*1%),#e6eefc 0)}
.st-ring span{width:116px;height:116px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:1.9rem;color:#052F66}
.st-result h3{color:#052F66;font-weight:800}
.st-result p{color:#4b5a75}
.st-save{font-size:.85rem;font-weight:600}
.st-save.ok{color:#16a34a}.st-save.no{color:#dc2626}

@media (max-width:576px){
  .st-test{padding:18px 14px;border-radius:14px}
  .st-section{padding:30px 0 50px}
  .st-qtext{font-size:1rem}
  .st-modal{padding:26px 18px 20px}
}
