/* driver-take-shared.css
 * Shared styles for the take-questions / take-exam pages.
 * Rules that were duplicated across: driver-takequestions.css, driver-takeexam.css, driverpredefinedexam-takequestions.css.
 * Loaded before the page specific stylesheet.
 */

.driverexam-question-page,
.driverexam-question-page *,
.driverexam-question-page *::before,
.driverexam-question-page *::after {
    box-sizing: border-box;
}

.driverexam-question-page {
    min-height: 100vh;
    margin: 0;
    padding: 0 0 4rem;
    background: radial-gradient(circle at top left, rgba(0, 194, 224, 0.14), transparent 30rem), radial-gradient(circle at top right, rgba(21, 14, 96, 0.16), transparent 34rem), #f2fbfd;
    color: #150e60;
}

.driverexamrun-take-header,
.driverpredefinedexamrun-take-header {
    width: min(100% - 3rem, 64rem);
    margin: 0 auto 1.25rem;
    padding-top: 1.5rem;
}

.driverexamrun-take-nav,
.driverpredefinedexamrun-take-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);
}

.driverexamrun-take-nav a,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-nav a:hover,
.driverexamrun-take-nav a:focus,
.driverexamrun-take-nav a.is-active,
.driverpredefinedexamrun-take-nav a:hover,
.driverpredefinedexamrun-take-nav a:focus,
.driverpredefinedexamrun-take-nav a.is-active {
    background: #e0f7fc;
    color: #0f0a45;
    text-decoration: none;
}

.driverexamrun-take-nav-spacer,
.driverpredefinedexamrun-take-nav-spacer {
    min-width: 0;
}

.driverexamrun-take-brandbar,
.driverpredefinedexamrun-take-brandbar {
    margin-bottom: 1rem;
}

.driverexamrun-take-brand,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-brand:hover,
.driverexamrun-take-brand:focus,
.driverpredefinedexamrun-take-brand:hover,
.driverpredefinedexamrun-take-brand:focus {
    color: #150e60;
    text-decoration: none;
}

.driverexamrun-take-brand span,
.driverpredefinedexamrun-take-brand span {
    font-weight: 500;
}

.driverexamrun-take-hero,
.driverpredefinedexamrun-take-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);
}

.driverexamrun-take-kicker,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-title,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-text,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-mini,
.driverpredefinedexamrun-take-mini {
    min-height: 8.5rem;
    padding: 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.92);
    color: #150e60;
}

.driverexamrun-take-mini span,
.driverpredefinedexamrun-take-mini span {
    display: block;
    margin-bottom: 0.75rem;
    color: #5b6b8c;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.driverexamrun-take-mini strong,
.driverpredefinedexamrun-take-mini strong {
    display: block;
    color: #150e60;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.driverexamrun-take-toprow,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-toprow-title,
.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-timer.driverexamrun-take-timer-inline,
.driverpredefinedexamrun-take-timer.driverpredefinedexamrun-take-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;
}

.driverexamrun-take-timer.driverexamrun-take-timer-inline span,
.driverpredefinedexamrun-take-timer.driverpredefinedexamrun-take-timer-inline span {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.driverexamrun-take-timer.driverexamrun-take-timer-inline strong,
.driverpredefinedexamrun-take-timer.driverpredefinedexamrun-take-timer-inline strong {
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.driverexam-question-flow,
.driverexam-question-empty {
    width: min(100% - 3rem, 64rem);
    margin: 0 auto;
}

.driverexam-question-empty,
.driverexam-alert {
    padding: 1.1rem 1.25rem;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.94);
    color: #150e60;
    font-weight: 900;
    box-shadow: 0 1rem 2.5rem rgba(21, 14, 96, 0.08);
}

.driverexam-alert-error {
    background: #ffe4e6;
    color: #9f1239;
}

.driverexam-question-step {
    display: none;
}

.driverexam-question-step.is-active {
    display: block;
}

.driverexam-question-flow.is-review-list {
    display: grid;
    gap: 1.25rem;
}

.driverexam-question-flow.is-review-list .driverexam-question-step {
    display: block;
}

.driverexam-question-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.4rem;
}

.driverexam-question-progressbar {
    height: 0.7rem;
    border-radius: 999rem;
    background: rgba(21, 14, 96, 0.12);
    overflow: hidden;
}

.driverexam-question-progressbar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d4f634, #150e60);
}

.driverexam-question-topcount {
    padding: 0.55rem 0.75rem;
    border-radius: 999rem;
    background: #e0f7fc;
    color: #0f0a45;
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
}

.driverexam-question-card {
    padding: 0.85rem 1.4rem;
    border: 0.0625rem solid rgba(21, 14, 96, 0.16);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.94);
    color: #150e60;
    box-shadow: 0 1.5rem 4rem rgba(21, 14, 96, 0.12);
}

.driverexam-question-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 0.65rem;
}

.driverexam-question-head-copy {
    min-width: 0;
}

.driverexam-question-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    margin-bottom: 0.4rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999rem;
    background: #e0f7fc;
    color: #0f0a45;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.driverexam-question-subline {
    margin: 0 0 0.5rem;
    color: #5b6b8c;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
}

.driverexam-question-title {
    margin: 0;
    color: #150e60;
    font-size: clamp(1.5rem, 2.4vw, 2.05rem);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.driverexam-question-head-meta {
    display: grid;
    justify-items: end;
    gap: 0.5rem;
}

.driverexam-question-progress {
    min-width: 4.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 999rem;
    background: #e0f7fc;
    color: #150e60;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.driverexam-question-status {
    padding: 0.6rem 0.8rem;
    border-radius: 999rem;
    background: #f2fbfd;
    color: #5b6b8c;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.driverexam-question-status.is-correct {
    background: #d1fae5;
    color: #065f46;
}

.driverexam-question-status.is-wrong {
    background: #ffe4e6;
    color: #9f1239;
}

.driverexam-question-explanation {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border: 0.0625rem solid rgba(21, 14, 96, 0.16);
    border-radius: 1.25rem;
    background: #f2fbfd;
    color: #2e2a5c;
    font-size: 0.9rem;
    line-height: 1.5;
}

.driverexam-question-body {
    display: grid;
    gap: 0.65rem;
    align-items: start;
}

.driverexam-question-body.has-image {
    grid-template-columns: minmax(0, 1fr);
}

.driverexam-question-body.no-image {
    grid-template-columns: minmax(0, 1fr);
}

.driverexam-question-media,
.driverexam-question-answer-area {
    min-width: 0;
}

.driverexam-question-answer-area.is-full {
    max-width: none;
}

.driverexam-question-media-frame,
.student-circle-stage {
    position: relative;
    overflow: hidden;
    border-radius: 1.75rem;
    background: #f2fbfd;
}

.driverexam-question-image,
.student-circle-image {
    display: block;
    width: 100%;
    height: auto;
}

.driverexam-question-image {
    max-height: min(24rem, 40vh);
    object-fit: contain;
}

.driverexam-answer-list {
    counter-reset: answer-option;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.driverexam-answer-option {
    counter-increment: answer-option;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    min-height: 2.85rem;
    padding: 0.55rem 1rem;
    border-radius: 1.35rem;
    background: #f2fbfd;
    color: #150e60;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.driverexam-answer-option::before {
    content: counter(answer-option, upper-alpha);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999rem;
    background: #e0f7fc;
    color: #0f0a45;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

.driverexam-answer-option input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.driverexam-answer-option input:disabled {
    cursor: default;
}

.driverexam-answer-option-text {
    position: relative;
    z-index: 1;
    color: #150e60;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.driverexam-answer-option:hover:not(.is-correct):not(.is-wrong):not(.is-correct-missed):not(.is-selected):not(:has(input:checked)) {
    transform: translateY(-0.1rem);
    background: #e0f7fc;
    box-shadow: 0 0.75rem 1.5rem rgba(21, 14, 96, 0.1);
}

.driverexam-answer-option:has(input:checked):not(.is-correct):not(.is-wrong):not(.is-correct-missed),
.driverexam-answer-option.is-selected:not(.is-correct):not(.is-wrong):not(.is-correct-missed) {
    transform: translateY(-0.1rem);
    background: #150e60;
    color: #ffffff;
    box-shadow: 0 0.9rem 1.8rem rgba(21, 14, 96, 0.28);
}

.driverexam-answer-option:has(input:checked):not(.is-correct):not(.is-wrong):not(.is-correct-missed)::before,
.driverexam-answer-option.is-selected:not(.is-correct):not(.is-wrong):not(.is-correct-missed)::before {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.driverexam-answer-option:has(input:checked):not(.is-correct):not(.is-wrong):not(.is-correct-missed) .driverexam-answer-option-text,
.driverexam-answer-option.is-selected:not(.is-correct):not(.is-wrong):not(.is-correct-missed) .driverexam-answer-option-text {
    color: #ffffff;
}

.driverexam-answer-option.is-correct {
    background: #ecfdf5;
    box-shadow: inset 0 0 0 0.125rem #059669;
}

.driverexam-answer-option.is-correct .driverexam-answer-option-text {
    color: #065f46;
    font-weight: 900;
}

.driverexam-answer-option.is-correct::before {
    background: #059669;
    color: #ffffff;
}

.driverexam-answer-option.is-wrong {
    background: #ffe4e6;
    box-shadow: inset 0 0 0 0.125rem #e11d48;
}

.driverexam-answer-option.is-wrong .driverexam-answer-option-text {
    color: #881337;
    font-weight: 900;
}

.driverexam-answer-option.is-wrong::before {
    background: #e11d48;
    color: #ffffff;
}

.driverexam-answer-option.is-correct-missed {
    background: #ecfdf5;
    box-shadow: inset 0 0 0 0.125rem #059669;
}

.driverexam-answer-option.is-correct-missed .driverexam-answer-option-text {
    color: #065f46;
    font-weight: 900;
}

.driverexam-answer-option.is-correct-missed::before {
    background: #059669;
    color: #ffffff;
}

.driverexam-order-list {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.driverexam-order-item {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border: 0;
    border-radius: 1.35rem;
    background: #f2fbfd;
    color: #150e60;
    cursor: pointer;
    text-align: left;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.driverexam-order-item:hover:not(:disabled):not(.is-selected):not(.is-correct) {
    transform: translateY(-0.1rem);
    background: #e0f7fc;
    box-shadow: 0 0.75rem 1.5rem rgba(21, 14, 96, 0.1);
}

.driverexam-order-item.is-selected:not(.is-correct) {
    transform: translateY(-0.1rem);
    background: #150e60;
    color: #ffffff;
    box-shadow: 0 0.9rem 1.8rem rgba(21, 14, 96, 0.28);
}

.driverexam-order-item.is-selected:not(.is-correct) .driverexam-order-item-text {
    color: #ffffff;
}

.driverexam-order-item.is-selected:not(.is-correct) .driverexam-order-badge {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.driverexam-order-item.is-correct {
    background: #d1fae5;
}

.driverexam-order-item:disabled {
    cursor: default;
}

.driverexam-order-item-text {
    color: #150e60;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
}

.driverexam-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    padding: 0 0.5rem;
    border-radius: 999rem;
    background: #150e60;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
}

.driverexam-order-inputs,
.driverexam-hidden-inputs {
    display: none;
}

.student-circle-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.student-circle-token-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.student-circle-sidebar {
    display: block;
}

.student-circle-helpbox {
    padding: 1rem;
    border-radius: 1.5rem;
    background: #f2fbfd;
}

.student-circle-help {
    margin: 0;
    color: #5b6b8c;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.4;
}

.student-circle-help + .student-circle-bank,
.student-circle-help + .driverexam-btn {
    margin-top: 1rem;
}

.student-circle-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
}

.student-target-group {
    cursor: pointer;
}

.student-target-shape {
    fill: rgba(255, 255, 255, 0.92);
    stroke: #150e60;
    stroke-width: 4;
    transition: fill 180ms ease, stroke 180ms ease;
}

.student-target-label {
    fill: #0f0a45;
    font-size: 24px;
    font-weight: 900;
    text-anchor: middle;
    pointer-events: none;
}

.student-target-group.active .student-target-shape,
.student-target-group.success .student-target-shape {
    fill: #150e60;
    stroke: #150e60;
}

.student-target-group.active .student-target-label,
.student-target-group.success .student-target-label {
    fill: #ffffff;
}

.student-draggable-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 999rem;
    background: #150e60;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 0.75rem 1.5rem rgba(21, 14, 96, 0.16);
    cursor: grab;
    user-select: none;
}

.student-draggable-token.dragging {
    opacity: 0.45;
}

.student-circle-bank .student-draggable-token {
    position: relative;
}

.student-circle-token-layer .student-draggable-token {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

.student-draggable-token.multiple-token::before {
    content: '';
    display: block;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999rem;
    background: #ffffff;
}

.student-draggable-token.order-token {
    background: #150e60;
}

.driverexam-question-flow:not(.is-review-list) .driverexam-question-card {
    padding-bottom: 6.5rem;
}

.driverexam-question-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 50;
    width: min(100% - 3rem, 64rem);
    margin: 0;
    padding: 0.85rem 1.4rem;
    border-top: 0.0625rem solid rgba(21, 14, 96, 0.16);
    border-radius: 1.5rem 1.5rem 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -0.75rem 2rem rgba(21, 14, 96, 0.12);
}

.driverexam-question-footer-progress {
    color: #5b6b8c;
    font-weight: 900;
    text-align: center;
}

.driverexam-review-footer {
    display: flex;
    justify-content: flex-end;
    width: min(100% - 3rem, 64rem);
    margin: 1.25rem auto 0;
}

.driverexam-btn {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 999rem;
    background: #e0f7fc;
    color: #0f0a45;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0.75rem 1.5rem rgba(21, 14, 96, 0.08);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.driverexam-btn:hover:not(:disabled),
.driverexam-btn:focus:not(:disabled) {
    transform: translateY(-0.1rem);
    color: #0f0a45;
    text-decoration: none;
    box-shadow: 0 1rem 2rem rgba(21, 14, 96, 0.14);
}

.driverexam-btn-primary {
    background: #150e60;
    color: #ffffff;
}

.driverexam-btn-primary:hover:not(:disabled),
.driverexam-btn-primary:focus:not(:disabled) {
    color: #ffffff;
}

.driverexam-btn-secondary {
    background: #e0f7fc;
    color: #0f0a45;
}

.driverexam-btn:disabled {
    opacity: 0.46;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.js-order-reset {
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.driverexamrun-take-timer,
.driverpredefinedexamrun-take-timer {
    background: #d1fae5;
}

.driverexamrun-take-timer strong,
.driverpredefinedexamrun-take-timer strong {
    color: #065f46;
    font-size: 2.35rem;
    letter-spacing: -0.05em;
}

.driverexamrun-take-timer small,
.driverpredefinedexamrun-take-timer small {
    display: block;
    margin-top: 0.55rem;
    color: #065f46;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.25;
}

.driverexamrun-take-timer.is-warning,
.driverpredefinedexamrun-take-timer.is-warning {
    background: #fef3c7;
}

.driverexamrun-take-timer.is-warning strong,
.driverexamrun-take-timer.is-warning small,
.driverpredefinedexamrun-take-timer.is-warning strong,
.driverpredefinedexamrun-take-timer.is-warning small {
    color: #92400e;
}

.driverexamrun-take-timer.is-overtime,
.driverpredefinedexamrun-take-timer.is-overtime {
    background: #ffe4e6;
}

.driverexamrun-take-timer.is-overtime strong,
.driverexamrun-take-timer.is-overtime small,
.driverpredefinedexamrun-take-timer.is-overtime strong,
.driverpredefinedexamrun-take-timer.is-overtime small {
    color: #9f1239;
}

.driverexamrun-take-timer.is-no-limit,
.driverpredefinedexamrun-take-timer.is-no-limit {
    background: #e0f7fc;
}

.driverexamrun-take-timer.is-no-limit strong,
.driverexamrun-take-timer.is-no-limit small,
.driverpredefinedexamrun-take-timer.is-no-limit strong,
.driverpredefinedexamrun-take-timer.is-no-limit small {
    color: #0f0a45;
}

.driverexamrun-result-card,
.driverpredefinedexamrun-result-card {
    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;
}

.driverexamrun-result-card.is-fail,
.driverpredefinedexamrun-result-card.is-fail {
    background: linear-gradient(180deg, rgba(255, 228, 230, 0.76), rgba(255, 255, 255, 0.96) 52%), #ffffff;
}

.driverexamrun-result-card.is-pass,
.driverpredefinedexamrun-result-card.is-pass {
    background: linear-gradient(180deg, rgba(209, 250, 229, 0.78), rgba(255, 255, 255, 0.96) 52%), #ffffff;
}

.driverexamrun-result-kicker,
.driverpredefinedexamrun-result-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;
}

.driverexamrun-result-score,
.driverpredefinedexamrun-result-score {
    color: #fb7185;
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.08em;
}

.driverexamrun-result-card.is-pass .driverexamrun-result-score,
.driverpredefinedexamrun-result-card.is-pass .driverpredefinedexamrun-result-score {
    color: #d4f634;
}

.driverexamrun-result-card h2,
.driverpredefinedexamrun-result-card h2 {
    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;
}

.driverexamrun-result-card p,
.driverpredefinedexamrun-result-card p {
    margin: 0.8rem auto 0;
    max-width: 38rem;
    color: #5b6b8c;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.driverexamrun-result-stat,
.driverpredefinedexamrun-result-stat {
    min-height: 5.75rem;
    padding: 0.95rem 1rem;
    border-radius: 1.5rem;
    background: #f2fbfd;
}

.driverexamrun-result-stat.is-good,
.driverpredefinedexamrun-result-stat.is-good {
    background: #d1fae5;
}

.driverexamrun-result-stat.is-bad,
.driverpredefinedexamrun-result-stat.is-bad {
    background: #ffe4e6;
}

.driverexamrun-result-stat span,
.driverpredefinedexamrun-result-stat span {
    display: block;
    margin-bottom: 0.55rem;
    color: #5b6b8c;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.driverexamrun-result-stat strong,
.driverpredefinedexamrun-result-stat strong {
    display: block;
    color: #150e60;
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.05;
}

.driverexamrun-review-footer,
.driverpredefinedexamrun-review-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.driverexamrun-review-footer .driverexam-btn,
.driverpredefinedexamrun-review-footer .driverexam-btn {
    width: auto;
}

@media (max-width: 768px) {
    .driverexamrun-take-toprow-title,
    .driverpredefinedexamrun-take-toprow-title {
        font-size: 1rem;
    }

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

    .driverexamrun-take-nav-spacer,
    .driverpredefinedexamrun-take-nav-spacer {
        display: none;
    }

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

    .driverexamrun-take-title,
    .driverpredefinedexamrun-take-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .driverexamrun-take-mini,
    .driverpredefinedexamrun-take-mini {
        justify-self: start;
        min-height: 0;
    }

    .driverexam-question-card {
        padding: 1.1rem;
    }

    .driverexam-question-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .driverexam-question-head-meta {
        display: flex;
        justify-items: normal;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .driverexam-answer-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .driverexam-question-flow:not(.is-review-list) .driverexam-question-card {
        padding-bottom: 10.5rem;
    }

    .driverexam-question-footer {
        grid-template-columns: minmax(0, 1fr);
        width: min(100% - 2rem, 64rem);
        gap: 0.5rem;
        padding: 0.85rem 1.1rem;
        text-align: center;
    }

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

    .driverexam-review-footer {
        justify-content: stretch;
    }
}

@media (max-height: 720px) {
    .driverexam-question-image {
        max-height: min(16rem, 28vh);
    }
}
