.exams-wrap{max-width:900px;margin:2rem auto;padding:clamp(20px,4vw,40px);background:#fff;color:#1d2327;border:1px solid #ddd;border-radius:14px;box-shadow:0 8px 30px #00000010;font-family:inherit}.exams-wrap *{box-sizing:border-box}.exams-wrap header{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #ddd;margin-bottom:25px}.exams-wrap h2{margin-top:0}.timer{padding:10px 14px;border:2px solid currentColor;border-radius:8px;height:max-content}.exams-wrap fieldset{border:0;padding:0;margin:0 0 28px}.exams-wrap legend{font-size:1.1rem;font-weight:700;margin-bottom:12px}.answer{display:flex!important;gap:10px;padding:12px;margin:7px 0;border:1px solid #bbb;border-radius:8px;cursor:pointer}.answer:hover,.answer:focus-within{background:#f6f7f7}.submit,.result button{border:0;border-radius:7px;padding:13px 22px;font:inherit;font-weight:700;cursor:pointer;background:#2271b1;color:#fff}.submit:focus,.result button:focus{outline:3px solid #72aee6;outline-offset:3px}.result{text-align:center;padding:clamp(40px,8vw,80px) 20px;border-radius:14px;color:#fff}.result.pass{background:#167a3e}.result.fail{background:#b42318}.result h2{color:inherit!important;font-size:clamp(2.5rem,8vw,5rem);line-height:1}.result .icon{font-size:4rem;font-weight:900}.result button{background:#fff;color:#222}@media(max-width:600px){.exams-wrap header{display:block}.timer{display:inline-block;margin-bottom:18px}}.reg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.reg-grid label:last-child{grid-column:1/-1}.reg-grid label{font-weight:700}.reg-grid input{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #8c8f94;border-radius:6px;font:inherit}.reg-error{padding:10px;border-left:4px solid #b42318;background:#fff1f0}@media(max-width:600px){.reg-grid{grid-template-columns:1fr}.reg-grid label:last-child{grid-column:auto}}
.personal-result{font-size:1.35rem}.wrong-review{margin:28px auto;text-align:left;max-width:720px;background:#fff;color:#1d2327;border-radius:10px;padding:20px}.wrong-review h3{margin-top:0;color:#1d2327!important}.wrong-item{padding:14px 0;border-top:1px solid #ddd}.wrong-item:first-of-type{border-top:0}.wrong-item h4{margin:0 0 8px;color:#1d2327!important}.wrong-item p{margin:5px 0}.result .wrong-review strong{color:#1d2327}

.result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}.result .certificate-btn{background:#fff;color:#14532d}.result .retry-btn{background:#fff;color:#222}
.exams-wrap input:focus-visible,.exams-wrap button:focus-visible{outline:3px solid currentColor;outline-offset:3px}.exams-wrap [hidden]{display:none!important}@media (forced-colors:active){.answer,.timer,.result,.wrong-review{border:2px solid CanvasText}.result{color:CanvasText;background:Canvas}.submit,.result button{border:2px solid ButtonText}}@media (prefers-reduced-motion:reduce){.exams-wrap *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.written-label{display:block;font-weight:700;margin-bottom:8px}.written-response{display:block;width:100%;min-height:140px;padding:12px;border:1px solid #8c8f94;border-radius:8px;font:inherit;line-height:1.5;resize:vertical}.written-response:focus-visible{outline:3px solid currentColor;outline-offset:3px}.word-count{margin:6px 0 0;text-align:right;font-weight:600}.result.pending{background:#5b4b00}
.exams-wrap button:disabled{cursor:not-allowed;opacity:.7}.submit-status{min-height:1.5em}.reg-error:focus{outline:3px solid currentColor;outline-offset:3px}@media (prefers-contrast:more){.answer,.written-response,.reg-grid input{border-width:2px}.result.pass,.result.fail,.result.pending{border:3px solid currentColor}}

/* v5.0.1: login action spacing */
.exams-login .login-submit{margin-top:20px;}

/* v5.0.2: ExamTaker login form and guaranteed action spacing */
.exams-login-form p{margin:0 0 14px;}
.exams-login-form label{font-weight:700;}
.exams-login-form input[type="text"],.exams-login-form input[type="password"]{display:block;width:100%;max-width:480px;margin-top:6px;padding:11px;border:1px solid #8c8f94;border-radius:6px;font:inherit;}
.exams-login-form .login-submit{margin-top:20px!important;padding-top:0!important;}
.exams-login-form .exams-login-button{margin-top:0!important;}

/* v5.0.3: visible spacing belongs to the button itself so theme paragraph margins cannot collapse it. */
.exams-login-form .login-submit{margin-top:0!important;padding-top:0!important;}
.exams-login-form .exams-login-button{display:block!important;margin-top:20px!important;}


/* v5.1.2: Theme-independent front-end normalization.
   Keep all rules scoped to the plugin so Astra, Kadence, Blocksy,
   GeneratePress, Twenty Twenty-* and other themes cannot restyle exam controls. */
.exams-wrap{
  width:min(100%,900px)!important;
  max-width:900px!important;
  margin:2rem auto!important;
  padding:clamp(20px,4vw,40px)!important;
  background:#fff!important;
  color:#1d2327!important;
  border:1px solid #ddd!important;
  border-radius:14px!important;
  box-shadow:0 8px 30px #00000010!important;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:16px!important;
  line-height:1.5!important;
}
.exams-wrap,.exams-wrap *,.exams-wrap *::before,.exams-wrap *::after{box-sizing:border-box!important;}
.exams-wrap h1,.exams-wrap h2,.exams-wrap h3,.exams-wrap h4,.exams-wrap p,.exams-wrap label,.exams-wrap legend{font-family:inherit!important;letter-spacing:normal!important;text-transform:none!important;}
.exams-wrap h2{font-size:1.75rem!important;line-height:1.25!important;color:#1d2327!important;}
.exams-wrap h3{font-size:1.35rem!important;line-height:1.3!important;color:#1d2327!important;}
.exams-wrap form{margin:0!important;padding:0!important;background:transparent!important;border:0!important;}
.exams-wrap input[type="text"],.exams-wrap input[type="email"],.exams-wrap input[type="password"],.exams-wrap textarea,.exams-wrap select{
  appearance:auto!important;width:100%!important;max-width:100%!important;min-height:44px!important;
  margin:6px 0 0!important;padding:10px 12px!important;background:#fff!important;color:#1d2327!important;
  border:1px solid #8c8f94!important;border-radius:6px!important;box-shadow:none!important;
  font:inherit!important;line-height:1.4!important;
}
.exams-wrap textarea{min-height:140px!important;resize:vertical!important;}
.exams-wrap input[type="radio"],.exams-wrap input[type="checkbox"]{
  appearance:auto!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
  margin:2px 0 0!important;padding:0!important;vertical-align:middle!important;accent-color:#2271b1;
}
.exams-wrap .answer{color:#1d2327!important;text-decoration:none!important;background:#fff!important;}
.exams-wrap .answer:hover,.exams-wrap .answer:focus-within{background:#f6f7f7!important;}
.exams-wrap button.submit,.exams-wrap .result button,.exams-wrap button.exams-login-button{
  appearance:none!important;display:inline-block!important;width:auto!important;min-width:0!important;min-height:44px!important;
  margin:0!important;padding:11px 20px!important;border:2px solid #2271b1!important;border-radius:7px!important;
  background:#2271b1!important;color:#fff!important;box-shadow:none!important;text-shadow:none!important;
  font:700 16px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:normal!important;text-transform:none!important;text-decoration:none!important;cursor:pointer!important;
}
.exams-wrap button.submit:hover,.exams-wrap button.exams-login-button:hover{filter:brightness(.92);}
.exams-wrap button.submit:focus-visible,.exams-wrap .result button:focus-visible,.exams-wrap button.exams-login-button:focus-visible{
  outline:3px solid #72aee6!important;outline-offset:3px!important;
}
/* Required login spacing: force 20px above the actual button regardless of theme form margins. */
.exams-wrap .exams-login-form .login-submit{display:block!important;margin:0!important;padding:0!important;}
.exams-wrap .exams-login-form button.exams-login-button{display:inline-block!important;margin-top:20px!important;}
.exams-wrap .exams-login-form p{margin:0 0 14px!important;padding:0!important;}
.exams-wrap .exams-login-form label,.exams-wrap .reg-grid label{display:block!important;color:#1d2327!important;font-weight:700!important;}
.exams-wrap a{overflow-wrap:anywhere;}
.exams-wrap .result h2,.exams-wrap .result h3,.exams-wrap .result p{color:inherit!important;}
.exams-wrap .result button{background:#fff!important;color:#222!important;border-color:#fff!important;}
.exams-wrap .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
@media(max-width:600px){.exams-wrap{margin:1rem auto!important;border-radius:8px!important}.exams-wrap button.submit,.exams-wrap button.exams-login-button{max-width:100%!important;}}

/* v5.5.2: 12px space between registration fields (including Email) and Start Exam. */
.exams-wrap .exams-registration .reg-grid{margin-bottom:12px!important;}

/* v5.7.9: Staff login Remember Me control - deliberately explicit so themes cannot hide it. */
.exams-wrap .exams-staff-remember{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:16px 0 6px!important;padding:12px 14px!important;border:1px solid #8c8f94!important;border-radius:6px!important;background:#fff!important;color:#1d2327!important;visibility:visible!important;opacity:1!important;}
.exams-wrap .exams-staff-remember input[type="checkbox"]{display:inline-block!important;visibility:visible!important;opacity:1!important;position:static!important;clip:auto!important;clip-path:none!important;pointer-events:auto!important;flex:0 0 18px!important;margin:3px 0 0!important;}
.exams-wrap .exams-staff-remember label{display:flex!important;flex-direction:column!important;gap:2px!important;margin:0!important;color:#1d2327!important;cursor:pointer!important;visibility:visible!important;opacity:1!important;}
.exams-wrap .exams-staff-remember label span{font-size:.9em!important;font-weight:400!important;}
.exams-wrap .exams-remember-help{display:block!important;margin:0 0 16px!important;}


/* v5.8.0: ExamTaker Remember Me control - visible even with aggressive theme form styling. */
.exams-wrap .exams-examtaker-remember{display:flex!important;align-items:flex-start!important;gap:10px!important;margin:16px 0 6px!important;padding:12px 14px!important;border:1px solid #8c8f94!important;border-radius:6px!important;background:#fff!important;color:#1d2327!important;visibility:visible!important;opacity:1!important;}
.exams-wrap .exams-examtaker-remember input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block!important;visibility:visible!important;opacity:1!important;position:static!important;clip:auto!important;clip-path:none!important;pointer-events:auto!important;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;flex:0 0 18px!important;margin:3px 0 0!important;padding:0!important;}
.exams-wrap .exams-examtaker-remember label{display:flex!important;flex-direction:column!important;gap:2px!important;margin:0!important;color:#1d2327!important;font-weight:700!important;cursor:pointer!important;visibility:visible!important;opacity:1!important;}
.exams-wrap .exams-examtaker-remember label span{font-size:.9em!important;font-weight:400!important;}
