/* ECC B03 quizzes (MV3, 2026-11-18). Every selector is rooted by the .ecc-quiz class. No !important except the closed-dialog
   guard, which matches the ecc-forms guard for .ecc-modal shells. Colours/type follow the existing uatstage form modals
   (ecc-form.css: #ED0000 / #D60000 buttons, Roboto) so the quiz looks like the other "Test Your Skills" dialogs. */
.ecc-quiz .ecc-quiz__modal:not(.is-open) { display: none !important; }
.ecc-quiz .ecc-quiz__modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(0, 0, 0, .6); padding: 16px; overflow: auto; overscroll-behavior: contain; }
.ecc-quiz .ecc-quiz__modal.is-open { display: flex; }
.ecc-quiz .ecc-quiz__box { position: relative; box-sizing: border-box; background: #fff; color: #111; width: 100%; max-width: 808px; max-height: 100%; overflow: auto; padding: 24px 24px 28px; border-radius: 4px; font-family: Roboto, sans-serif; }
.ecc-quiz .ecc-quiz__box--inline { max-width: none; max-height: none; overflow: visible; padding: 0; border-radius: 0; background: transparent; }
.ecc-quiz .ecc-quiz__close { position: absolute; top: 4px; right: 4px; min-width: 44px; min-height: 44px; font-size: 28px; line-height: 1; background: none; border: 0; color: #111; cursor: pointer; }
.ecc-quiz .ecc-quiz__close:focus-visible, .ecc-quiz .ecc-quiz__btn:focus-visible, .ecc-quiz .ecc-quiz__choice input:focus-visible + label { outline: 3px solid #1a73e8; outline-offset: 2px; }
.ecc-quiz .ecc-quiz__title { margin: 0 48px 16px 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: #111; }
.ecc-quiz .ecc-quiz__step[hidden] { display: none; }
/* lead form kept laid out (ecc-forms gives a non-visible lent form back to its page card) but out of view while questions show */
.ecc-quiz .ecc-quiz__step.ecc-quiz__step--parked { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.ecc-quiz .ecc-quiz__lead .ecc-form { margin: 0; }
.ecc-quiz .ecc-quiz__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ecc-quiz .ecc-quiz__btn { min-height: 48px; padding: 10px 22px; font: 600 17px/1.2 Roboto, sans-serif; border: 1px solid #ED0000; border-radius: 0; cursor: pointer; }
.ecc-quiz .ecc-quiz__btn--primary { background: #ED0000; color: #fff; }
.ecc-quiz .ecc-quiz__btn--primary:hover { background: #D60000; border-color: #D60000; }
.ecc-quiz .ecc-quiz__btn--primary:disabled { opacity: .55; cursor: progress; }
.ecc-quiz .ecc-quiz__btn--secondary { background: #fff; color: #111; border-color: #8c8f94; }
.ecc-quiz .ecc-quiz__btn--secondary:hover { border-color: #111; }
.ecc-quiz .ecc-quiz__msg { margin: 12px 0 0; color: #C02B0A; font-size: 15px; }
.ecc-quiz .ecc-quiz__list { list-style: none; margin: 0; padding: 0; }
.ecc-quiz .ecc-quiz__q { margin: 0 0 22px; padding: 0; }
.ecc-quiz .ecc-quiz__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.ecc-quiz .ecc-quiz__legend { display: block; width: 100%; margin: 0 0 10px; padding: 0; font-size: 16px; line-height: 1.45; font-weight: 700; color: #111; white-space: normal; }
.ecc-quiz .ecc-quiz__choices { display: grid; gap: 8px; }
.ecc-quiz .ecc-quiz__choice { display: flex; align-items: flex-start; gap: 10px; }
.ecc-quiz .ecc-quiz__choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #ED0000; cursor: pointer; }
.ecc-quiz .ecc-quiz__choice label { flex: 1 1 auto; font-size: 15px; line-height: 1.45; color: #333; cursor: pointer; }
.ecc-quiz .ecc-quiz__result { margin: 8px 0 0; font-size: 18px; line-height: 1.5; color: #111; }
.ecc-quiz .ecc-quiz__step--result:focus { outline: none; }
@media (max-width: 767px) {
  .ecc-quiz .ecc-quiz__modal { padding: 8px; align-items: flex-start; }
  .ecc-quiz .ecc-quiz__box { padding: 16px 16px 20px; }
  .ecc-quiz .ecc-quiz__title { font-size: 19px; }
  .ecc-quiz .ecc-quiz__btn { flex: 1 1 auto; }
  .ecc-quiz .ecc-quiz__legend { font-size: 15px; }
}
