/* driver-takequestions.css
 * Desktop-first styling for /driverexam/takequestions and /driverexam/checkquestions,
 * with responsive breakpoints below.
 * Mobile-inspired rounded cards.
 * Keeps JS/data hooks from takequestions.php.
 * Common rules live in driver-take-shared.css, which is loaded before this file.
 */
 
 /* Top navigation + hero */
 
 .practice-exam-header {
     width: min(100% - 3rem, 64rem);
     margin: 0 auto 1.25rem;
     padding-top: 1.5rem;
 }
 
 .practice-exam-nav {
     display: grid;
     grid-template-columns: auto auto minmax(0, 1fr) auto;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 1rem;
     padding: 0.85rem 1rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 999rem;
     background: rgba(255, 255, 255, 0.9);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .practice-exam-nav a {
     display: inline-flex;
     align-items: center;
     min-height: 2.35rem;
     padding: 0.6rem 0.9rem;
     border-radius: 999rem;
     color: #150e60;
     font-size: 0.88rem;
     font-weight: 900;
     line-height: 1;
     text-decoration: none;
 }
 
 .practice-exam-nav a:hover,
 .practice-exam-nav a:focus,
 .practice-exam-nav a.is-active {
     background: #e0f7fc;
     color: #0f0a45;
     text-decoration: none;
 }
 
 .practice-exam-nav-spacer {
     min-width: 0;
 }
 
 .practice-exam-brandbar {
     margin-bottom: 1rem;
 }
 
 .practice-exam-brand {
     display: inline-flex;
     align-items: baseline;
     color: #150e60;
     font-size: 1.25rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: -0.04em;
     text-decoration: none;
 }
 
 .practice-exam-brand:hover,
 .practice-exam-brand:focus {
     color: #150e60;
     text-decoration: none;
 }
 
 .practice-exam-brand span {
     font-weight: 500;
 }
 
 .practice-exam-hero {
     display: grid;
     grid-template-columns: minmax(0, 1fr) 10rem;
     gap: 1rem;
     align-items: end;
     padding: 2.35rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2.5rem;
     background: linear-gradient(135deg, rgba(21, 14, 96, 0.94), rgba(0, 194, 224, 0.84)), #150e60;
     color: #ffffff;
     box-shadow: 0 1.5rem 4rem rgba(21, 14, 96, 0.14);
 }
 
 .practice-exam-kicker {
     display: inline-flex;
     align-items: center;
     min-height: 2rem;
     margin-bottom: 1rem;
     padding: 0.45rem 0.75rem;
     border-radius: 999rem;
     background: rgba(255, 255, 255, 0.18);
     color: #ffffff;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: 0.08em;
     text-transform: uppercase;
 }
 
 .practice-exam-title {
     max-width: 42rem;
     margin: 0;
     color: #ffffff;
     font-size: clamp(3rem, 5vw, 5rem);
     font-weight: 900;
     line-height: 0.9;
     letter-spacing: -0.075em;
     text-transform: uppercase;
 }
 
 .practice-exam-text {
     max-width: 42rem;
     margin: 1rem 0 0;
     color: rgba(255, 255, 255, 0.94);
     font-size: 1.02rem;
     font-weight: 700;
     line-height: 1.46;
 }
 
 .practice-exam-mini {
     min-height: 8.5rem;
     padding: 1rem;
     border-radius: 2rem;
     background: rgba(255, 255, 255, 0.92);
     color: #150e60;
 }
 
 .practice-exam-mini span {
     display: block;
     margin-bottom: 0.75rem;
     color: #5b6b8c;
     font-size: 0.74rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }
 
 .practice-exam-mini strong {
     display: block;
     color: #150e60;
     font-size: 3.5rem;
     font-weight: 900;
     line-height: 0.9;
     letter-spacing: -0.08em;
 }

 /* Slim top row (title + timer) instead of a big banner while actively
    taking questions, so the question itself and its Next button fit on
    screen without scrolling past a big banner on every single question. */

 .practice-exam-toprow {
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: space-between;
     gap: 0.75rem;
     width: min(100% - 3rem, 64rem);
     margin: 0 auto 0.5rem;
     padding-top: 0.6rem;
 }

 .practice-exam-toprow-title {
     min-width: 0;
     overflow: hidden;
     color: #150e60;
     font-size: 1.15rem;
     font-weight: 900;
     letter-spacing: -0.01em;
     text-overflow: ellipsis;
     text-transform: uppercase;
     white-space: nowrap;
 }

 .practice-exam-timer.practice-exam-timer-inline {
     display: inline-flex;
     flex-shrink: 0;
     align-items: baseline;
     gap: 0.4rem;
     min-height: 0;
     padding: 0.5rem 0.9rem;
     border-radius: 999rem;
     background: #d1fae5;
     color: #065f46;
 }

 .practice-exam-timer.practice-exam-timer-inline span {
     font-size: 0.62rem;
     font-weight: 900;
     letter-spacing: 0.04em;
     text-transform: uppercase;
 }

 .practice-exam-timer.practice-exam-timer-inline strong {
     font-size: 1.15rem;
     letter-spacing: -0.02em;
 }

 /* Result hero */
 
 .practice-result-hero {
     width: min(100% - 3rem, 64rem);
     margin: 0 auto 1.25rem;
     padding: 2rem;
     border: 0.0625rem solid rgba(21, 14, 96, 0.16);
     border-radius: 2.5rem;
     background: rgba(255, 255, 255, 0.94);
     color: #150e60;
     box-shadow: 0 1.5rem 4rem rgba(21, 14, 96, 0.12);
     text-align: center;
 }
 
 .practice-result-hero .driverexam-question-summary-kicker {
     display: inline-flex;
     align-items: center;
     min-height: 2rem;
     margin-bottom: 1rem;
     padding: 0.45rem 0.75rem;
     border-radius: 999rem;
     background: #e0f7fc;
     color: #0f0a45;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     letter-spacing: 0.08em;
     text-transform: uppercase;
 }
 
 .practice-result-hero .driverexam-question-summary-score {
     color: #fb7185;
     font-size: clamp(4rem, 9vw, 7rem);
     font-weight: 900;
     line-height: 0.9;
     letter-spacing: -0.08em;
 }
 
 .practice-result-hero.is-pass .driverexam-question-summary-score {
     color: #d4f634;
 }
 
 .practice-result-hero .driverexam-question-summary-headline {
     margin: 0.85rem 0 0;
     color: #150e60;
     font-size: clamp(2.1rem, 4vw, 3.5rem);
     font-weight: 900;
     line-height: 0.95;
     letter-spacing: -0.06em;
     text-transform: uppercase;
 }

 .practice-result-hero .driverexam-question-summary-text {
     margin: 1rem 0 0;
     color: #5b6b8c;
     font-size: 1rem;
     font-weight: 700;
     line-height: 1.45;
 }
 
 .driverexam-history-current {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 0.75rem;
     margin-top: 1.25rem;
     text-align: left;
 }
 
 .driverexam-history-stat {
     min-height: 5.5rem;
     padding: 0.95rem 1rem;
     border-radius: 1.5rem;
     background: #f2fbfd;
 }
 
 .driverexam-history-stat span {
     display: block;
     margin-bottom: 0.55rem;
     color: #5b6b8c;
     font-size: 0.74rem;
     font-weight: 900;
     line-height: 1.1;
     text-transform: uppercase;
 }
 
 .driverexam-history-stat strong {
     display: block;
     color: #150e60;
     font-size: 1.35rem;
     font-weight: 900;
     line-height: 1;
 }
 
 .driverexam-history-stat.is-good {
     background: #d1fae5;
 }

 .driverexam-history-stat.is-bad {
     background: #ffe4e6;
 }

 .driverexam-history-stat strong.driverexam-question-summary-text-overtime {
     color: #fb7185;
 }
 
 /* Form and timer */

 .driverexam-alert-info {
     display: flex;
     align-items: center;
     justify-content: space-between;
     flex-wrap: wrap;
     gap: 1rem;
     background: #e0f7fc;
     color: #4c1d95;
     width: min(100% - 3rem, 64rem);
     margin: 0 auto 1.25rem;
 }

 .driverexam-alert-info .driverexam-btn {
     flex-shrink: 0;
 }
 
 .driverexam-question-runtime.driverexam-run-timer {
     display: grid;
     grid-template-columns: minmax(0, 1fr) auto;
     grid-template-areas:
         "label value"
         "note note";
     gap: 0.55rem 1rem;
     align-items: center;
     margin: 0 0 1.25rem;
     padding: 1rem;
     border-radius: 1.75rem;
     background: rgba(255, 255, 255, 0.94);
     box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
 }
 
 .driverexam-question-runtime-label {
     grid-area: label;
     color: #5b6b8c;
     font-size: 0.78rem;
     font-weight: 900;
     line-height: 1;
     text-transform: uppercase;
 }
 
 .driverexam-question-runtime-value {
     grid-area: value;
     justify-self: end;
     min-width: 5.5rem;
     padding: 0.75rem 1rem;
     border-radius: 999rem;
     background: #d1fae5;
     color: #065f46;
     font-size: 1rem;
     font-weight: 900;
     line-height: 1;
     text-align: center;
 }
 
 .driverexam-question-runtime-note {
     grid-area: note;
     padding: 0.85rem 1rem;
     border-radius: 1.25rem;
     background: #f2fbfd;
     color: #5b6b8c;
     font-size: 0.95rem;
     font-weight: 800;
     line-height: 1.35;
 }
 
 .driverexam-run-timer.is-overtime .driverexam-question-runtime-value {
     background: #ffe4e6;
     color: #9f1239;
 }
 
 .driverexam-run-timer.is-overtime .driverexam-question-runtime-note {
     background: #fff1f2;
     color: #9f1239;
 }
 
 /* Hero timer variant */
 .practice-exam-timer {
     background: #d1fae5;
 }
 
 .practice-exam-timer strong {
     color: #065f46;
     font-size: 2.35rem;
     letter-spacing: -0.05em;
 }
 
 .practice-exam-timer small {
     display: block;
     margin-top: 0.55rem;
     color: #065f46;
     font-size: 0.76rem;
     font-weight: 800;
     line-height: 1.25;
 }
 
 .practice-exam-timer.is-warning {
     background: #fef3c7;
 }
 
 .practice-exam-timer.is-warning strong,
 .practice-exam-timer.is-warning small {
     color: #92400e;
 }
 
 .practice-exam-timer.is-overtime {
     background: #ffe4e6;
 }
 
 .practice-exam-timer.is-overtime strong,
 .practice-exam-timer.is-overtime small {
     color: #9f1239;
 }
 
 .practice-exam-timer.is-no-limit {
     background: #e0f7fc;
 }
 
 .practice-exam-timer.is-no-limit strong,
 .practice-exam-timer.is-no-limit small {
     color: #0f0a45;
 }

 /* Responsive */

 @media (max-width: 768px) {
     .practice-exam-header,
     .practice-exam-toprow,
     .practice-result-hero,
     .driverexam-question-flow,
     .driverexam-question-empty,
     .driverexam-review-footer {
         width: min(100% - 2rem, 64rem);
     }

     .practice-exam-toprow-title {
         font-size: 1rem;
     }

     .practice-exam-nav {
         grid-template-columns: minmax(0, 1fr);
         justify-items: start;
         gap: 0.35rem;
         border-radius: 1.5rem;
     }

     .practice-exam-nav-spacer {
         display: none;
     }

     .practice-exam-hero {
         grid-template-columns: minmax(0, 1fr);
         align-items: start;
         padding: 1.75rem;
     }

     .practice-exam-title {
         font-size: clamp(2rem, 10vw, 3rem);
     }

     .practice-exam-mini {
         justify-self: start;
         min-height: 0;
     }

     .driverexam-history-current {
         gap: 0.5rem;
     }

     .driverexam-review-footer .driverexam-btn {
         width: 100%;
     }
 }

 @media (max-width: 480px) {
     .practice-exam-hero,
     .practice-result-hero {
         padding: 1.35rem;
         border-radius: 1.75rem;
     }

     .driverexam-history-current {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }
 }
