/* Exam Portal — mobile-first, high contrast, large type */
.ep-wrap{--ep-ink:#111827;--ep-bg:#f3f4f6;--ep-card:#fff;--ep-primary:#1d4ed8;--ep-primary-d:#1e3a8a;--ep-ok:#166534;--ep-bad:#b91c1c;--ep-line:#9ca3af;
	max-width:960px;margin:0 auto;padding:16px;color:var(--ep-ink);font-size:18px;line-height:1.55;box-sizing:border-box}
.ep-wrap *,.ep-quiz *{box-sizing:border-box}
.ep-brand{text-align:center;margin-bottom:16px}
.ep-logo{max-height:80px;width:auto;max-width:100%}
.ep-logo-ph{display:inline-block;padding:18px 32px;border:2px dashed var(--ep-line);font-weight:700;letter-spacing:.1em;color:#374151}
.ep-card{background:var(--ep-card);border:1px solid #d1d5db;border-radius:14px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
.ep-title{font-size:28px;line-height:1.25;margin:0 0 6px;color:var(--ep-ink)}
.ep-sub{font-size:17px;color:#374151;margin:0 0 14px}
.ep-center{text-align:center;margin-top:16px}
.ep-lead{font-size:20px}

/* Steps */
.ep-steps{display:flex;gap:6px;list-style:none;margin:0 0 18px;padding:0}
.ep-steps li{flex:1;text-align:center;font-size:14px;font-weight:700;padding:8px 2px;border-radius:8px;background:#e5e7eb;color:#374151}
.ep-steps li.active{background:var(--ep-primary);color:#fff}
.ep-steps li.done{background:#dcfce7;color:var(--ep-ok)}

/* Form */
.ep-step{border:0;margin:0;padding:0;min-width:0}
.ep-step legend{font-size:23px;font-weight:800;margin-bottom:14px;padding:0}
.ep-field{margin-bottom:18px}
.ep-field label,.ep-label{display:block;font-weight:700;font-size:18px;margin-bottom:6px}
.ep-field input[type=text],.ep-field input[type=tel],.ep-field input[type=email],.ep-field input[type=date],.ep-field select,.ep-field textarea{
	width:100%;min-height:52px;padding:12px 14px;font-size:18px;color:var(--ep-ink);background:#fff;border:2px solid #4b5563;border-radius:10px}
.ep-field input:focus,.ep-field select:focus,.ep-field textarea:focus{outline:3px solid #93c5fd;border-color:var(--ep-primary)}
.ep-choices{display:flex;flex-wrap:wrap;gap:10px}
.ep-field label.ep-choice,.ep-choice{display:flex;align-items:center;gap:10px;font-weight:600;min-height:52px;padding:10px 16px;border:2px solid #4b5563;border-radius:10px;cursor:pointer;background:#fff;margin:0}
.ep-choice input{width:24px;height:24px;flex:none;accent-color:var(--ep-primary)}
.ep-declare{align-items:flex-start;font-weight:600}
.ep-invalid input,.ep-invalid select,.ep-invalid textarea,.ep-invalid .ep-choice{border-color:var(--ep-bad)!important}
.ep-err{display:block;color:var(--ep-bad);font-weight:700;font-size:16px;margin-top:4px}
.ep-alert{background:#fee2e2;color:#7f1d1d;border:2px solid var(--ep-bad);padding:12px 14px;border-radius:10px;margin-bottom:16px;font-weight:700}

/* Buttons */
.ep-btn{display:inline-block;min-height:52px;padding:12px 24px;font-size:18px;font-weight:800;text-align:center;text-decoration:none;color:#fff!important;background:var(--ep-primary);border:0;border-radius:12px;cursor:pointer}
.ep-btn:hover,.ep-btn:focus{background:var(--ep-primary-d)}
.ep-btn:disabled{opacity:.5;cursor:not-allowed}
.ep-btn-alt{background:#374151}
.ep-btn-alt:hover{background:#111827}
.ep-btn-pay{background:var(--ep-ok)}
.ep-btn-pay:hover{background:#14532d}
.ep-nav{display:flex;gap:12px;justify-content:space-between;margin-top:8px}
.ep-nav .ep-btn{flex:1}

/* Dashboard */
.ep-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}
.ep-head .ep-brand{margin:0}
.ep-user{display:flex;gap:14px;align-items:center;font-size:17px}
.ep-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:640px){.ep-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:960px){.ep-grid{grid-template-columns:repeat(3,1fr)}}
.ep-exam h3{font-size:22px;margin:0 0 12px}
.ep-meta{list-style:none;margin:0 0 16px;padding:0}
.ep-meta li{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e5e7eb}
.ep-exam .ep-btn{width:100%}
.ep-badge{display:inline-block;padding:4px 12px;border-radius:999px;font-weight:800;font-size:16px;color:#fff;background:#374151}
.ep-badge.ok{background:var(--ep-ok)}
.ep-badge.no{background:var(--ep-bad)}

/* Quiz overlay */
.ep-quiz{position:fixed;inset:0;z-index:99999;background:#f3f4f6;color:#111827;display:flex;flex-direction:column;overflow:auto;font-size:18px;line-height:1.55}
.ep-quiz[hidden]{display:none}
.ep-quiz-top{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:#111827;color:#fff}
.ep-quiz-title{font-weight:800;font-size:18px;overflow:hidden;text-overflow:ellipsis}
.ep-timer{font-size:30px;font-weight:900;font-variant-numeric:tabular-nums;background:#fff;color:#111827;padding:4px 14px;border-radius:10px}
.ep-timer.warn{background:#facc15;color:#111}
.ep-timer.danger{background:#dc2626;color:#fff;animation:ep-pulse 1s infinite}
@keyframes ep-pulse{50%{opacity:.6}}
.ep-bar{height:8px;background:#d1d5db}
#ep-bar-fill{height:100%;width:0;background:#1d4ed8;transition:width .2s}
.ep-quiz-body{flex:1;width:100%;max-width:820px;margin:0 auto;padding:18px 16px}
.ep-qcount{font-weight:800;color:#1e3a8a;margin-bottom:8px}
.ep-qtext{font-size:22px;font-weight:700;white-space:pre-line;margin-bottom:14px}
.ep-qimg{max-width:100%;height:auto;border-radius:10px;border:1px solid #d1d5db;margin-bottom:14px;display:block}
.ep-options{display:grid;gap:12px}
.ep-opt{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;background:#fff;border:2px solid #4b5563;border-radius:12px;cursor:pointer;font-weight:600}
.ep-opt input{width:26px;height:26px;flex:none;accent-color:#1d4ed8}
.ep-opt.sel{border-color:#1d4ed8;background:#dbeafe}
.ep-quiz-nav{position:sticky;bottom:0;display:flex;gap:10px;padding:12px 16px;background:#fff;border-top:2px solid #d1d5db}
.ep-quiz-nav .ep-btn{flex:1;padding:12px 8px}
.ep-result-card{margin:auto;max-width:480px;width:calc(100% - 32px);text-align:center}
.ep-score{font-size:48px;font-weight:900;margin:8px 0}

.ep-linkbtn{background:none;border:0;padding:8px 4px;font-size:17px;font-weight:700;color:#1d4ed8;text-decoration:underline;cursor:pointer}
.ep-login{max-width:460px;margin:0 auto}

/* Quiz + result overlays live outside .ep-wrap, so they need the colour variables too */
.ep-quiz{--ep-ink:#111827;--ep-bg:#f3f4f6;--ep-card:#fff;--ep-primary:#1d4ed8;--ep-primary-d:#1e3a8a;--ep-ok:#166534;--ep-bad:#b91c1c;--ep-line:#9ca3af}
/* Theme-proof option text size */
.ep-quiz .ep-opt,.ep-quiz .ep-opt span{font-size:20px;line-height:1.4;color:#111827}
.ep-quiz .ep-quiz-nav .ep-btn{color:#fff!important}
.ep-note{padding:10px 12px;background:#fef3c7;border:2px solid #b45309;border-radius:10px;color:#78350f;font-weight:700;margin:0}

.ep-req{color:#b91c1c;font-weight:900}
.ep-opt-hint{font-weight:600;color:#4b5563;font-size:15px}
.ep-steps li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
