:root {
    --new-bg: #f5f7fa;
    --new-surface: #ffffff;
    --new-surface-soft: #ffd9b2;
    --new-ink: #172033;
    --new-muted: #667085;
    --new-line: #e5e9f0;
    --new-navy: var(--secondary-accent, #1e508f);
    --new-orange: var(--accent, #f47826);
    --new-radius-lg: 24px;
    --new-radius-md: 16px;
    --new-shadow: 0 18px 48px rgba(24, 43, 77, .1);
}

*, *::before, *::after { box-sizing: border-box; }
html { margin: 0; background: var(--new-bg); scroll-behavior: smooth; }
body { margin: 0; }
body, input, textarea, button { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
a, button { cursor: pointer; }
img { max-width: 100%; height: auto; }
p { margin: 1em 0; }
a { color: inherit; }
h1{ margin: 0 0 .75em; font-weight: 700; }
h2, h3 { margin: 0 0 .5em; font-weight: 700; }
.row { display: block; margin: 0; }
.col-12 { width: 100%; padding: 0; }
.text-center { text-align: center; }
body.exam-page .sub-header { margin-top: 0;  color: var(--new-muted) }
.flush-top { margin-top: 0 !important; }
.exam-step:not(.is-active) { display: none; }

body.exam-page {
    min-height: 100vh;
    padding: 38px 20px;
    background:
        radial-gradient(circle at 8% 22%, rgba(255, 255, 255, .18) 0, transparent 26rem),
        radial-gradient(circle at 92% 68%, rgba(117, 54, 7, .12) 0, transparent 28rem),
        linear-gradient(145deg, color-mix(in srgb, var(--new-orange) 86%, #ffba72), var(--new-orange));
    color: var(--new-muted);
    font-size: 17px;
    line-height: normal;
}

body.exam-page .exam-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
    overflow: hidden;
    background: var(--new-surface);
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(91, 42, 8, .24);
}

body.exam-page h1,
body.exam-page h2,
body.exam-page h3 { color: var(--new-ink); letter-spacing: -.025em; }

body.exam-page h1 { font-size: clamp(2rem, 3vw, 3.35rem); line-height: 1.08; }
body.exam-page h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); line-height: 1.2; }
body.exam-page h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.3; }

body.exam-page > header {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    margin: 0 auto;
    background: transparent;
}

body.exam-page .brand-bar {
    max-width: 1200px;
    min-height: 144px;
    margin: 0 auto;
    padding: 12px 32px;
    background: transparent;
}

body.exam-page .brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 120px;
    line-height: 120px;
    align-items: center;
}

body.exam-page .brand img {
    display: inline-block;
    max-height: 120px;
    margin-left: 0;
    filter: drop-shadow(0 7px 14px rgba(91, 42, 8, .2));
    vertical-align: middle;
}

body.exam-page .page-container {
    width: 100%;
}

body.exam-page #exam_title {
    position: relative;
    overflow: hidden;
    background: #f8f9fb;
    border-bottom: 1px solid var(--new-line);
}

body.exam-page .page-container { padding: clamp(26px, 5vw, 52px); position: relative; z-index: 1; }
body.exam-page #exam_title h1 { margin-bottom: 18px; color: var(--new-ink); }
body.exam-page #exam_title p { margin: 0; color: var(--new-muted); font-size: 1.08rem; }

body.exam-page #exam,
body.exam-page #exam_local_storage,
body.exam-page .exam-shell > section.exam-surface { background: transparent; }

body.exam-page #exam { position: relative; z-index: 2; }

body.exam-page .exam-step { padding: 0; }
body.exam-page .exam-step > .question:first-child { padding-top: 0; }
body.exam-page .exam-step--single .question { display: none; }
body.exam-page .exam-step--single .question.is-active { display: block; }
body.exam-page .question:last-child { border-bottom: 0; }
body.exam-page .question__header > :first-child { margin-top: 0; }
body.exam-page .question__header p { color: #3e485a; }
body.exam-page .question__image,
body.exam-page .question__video { margin: 24px 0; text-align: center; }

body.exam-page .exam-step--single .question.is-active:not(.question--section) {
    padding: 0;
    border: 0;
    animation: new-question-in .32s ease both;
}

body.exam-page .question--choice { position: relative; }
body.exam-page .question__header {
    border-radius: var(--new-radius-md);
	padding: 2px 10px;
}

/* body.exam-page .question--choice.is-active::before {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 5px 10px;
    background: var(--new-surface-soft);
    border-radius: 999px;
    color: color-mix(in srgb, var(--new-orange) 82%, #703000);
    content: "Question " attr(data-question-number);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
} */

body.exam-page .question--choice .answer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

body.exam-page .question--choice .answer-list .answer-option {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    background: var(--new-surface);
    border: 1px solid var(--new-line);
    border-radius: var(--new-radius-md);
    box-shadow: 0 3px 10px rgba(24, 43, 77, .04);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

body.exam-page .question--choice .answer-list .answer-option:hover {
    border-color: color-mix(in srgb, var(--new-orange) 55%, var(--new-line));
    box-shadow: 0 9px 24px rgba(24, 43, 77, .09);
    transform: translateY(-2px);
}

body.exam-page .question--choice .answer-list .answer-option.is-selected:not(.is-correct):not(.is-incorrect) {
    background: var(--new-surface-soft);
    border-color: var(--new-orange);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--new-orange) 16%, transparent);
}

body.exam-page .question--choice .answer-option label {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 72px;
    margin: 0;
    padding: 18px 18px 18px 54px;
    color: var(--new-ink);
    font-weight: 500;
	cursor: pointer;
}

body.exam-page .question--choice .answer-option input {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 22px;
    margin-top: -11px;
    appearance: none;
}

body.exam-page .question--choice .answer-option input::before {
    display: inline-block;
    content: "";
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #cbd2dc;
	border-radius: 10px;
}

body.exam-page .question--choice .answer-option input:checked::before { background: var(--new-orange); box-shadow: 0 0 0 1px var(--new-orange); }
body.exam-page .question--choice .answer-list .answer-option.is-correct { background: #a9ffc2; }
body.exam-page .question--choice .answer-list .answer-option.is-incorrect { background: #f6b1b1; }
body.exam-page .answer-option__image { margin-bottom: 12px; text-align: center; }
body.exam-page .answer-option__image img { max-height: 300px; object-fit: contain; }

body.exam-page input[type="text"],
body.exam-page input[type="email"],
body.exam-page input[type="phone"] {
    width: min(100%, 540px);
    min-height: 52px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ccd3de;
    border-radius: 12px;
    box-shadow: none;
    color: var(--new-ink);
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

body.exam-page input[type="text"]:focus,
body.exam-page input[type="email"]:focus,
body.exam-page input[type="phone"]:focus {
    border-color: var(--new-orange);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--new-orange) 14%, transparent);
}

body.exam-page .question__image img {
    max-width: min(100%, 420px);
    border-radius: var(--new-radius-md);
    box-shadow: 0 12px 30px rgba(24, 43, 77, .12);
}

body.exam-page .question__video { overflow: hidden; border-radius: var(--new-radius-md); }
body.exam-page .question__video iframe { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; height: auto; margin: 0 auto; border: 0; }
body.exam-page button,
body.exam-page a.button {
    min-width: 128px;
    height: 48px;
    padding: 0 22px;
    background: var(--new-navy);
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--new-navy) 23%, transparent);
    color: #fff;
    font-weight: 700;
    line-height: 46px;
    transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

body.exam-page button:hover:not(:disabled),
body.exam-page a.button:hover { filter: brightness(1.08); box-shadow: 0 11px 24px color-mix(in srgb, var(--new-navy) 30%, transparent); transform: translateY(-1px); }
body.exam-page button:focus-visible { outline: 3px solid color-mix(in srgb, var(--new-orange) 30%, transparent); outline-offset: 3px; }
body.exam-page button:disabled { cursor: not-allowed; opacity: .48; box-shadow: none; }
body.exam-page #btnSubmit { background: var(--new-orange); box-shadow: 0 8px 18px color-mix(in srgb, var(--new-orange) 28%, transparent); }

body.exam-page .exam-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
	margin-top: 32px;
    /* min-height: 76px;
    margin: 32px 0 0;
    padding: 14px 0 0;
    background: #fafbfc;
    border-top: 1px solid var(--new-line); */
}

body.exam-page .exam-actions__group {
    display: flex;
    flex: 1 1 33.333%;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

body.exam-page .exam-actions__group--previous { justify-content: flex-start; }
body.exam-page .exam-actions__group--timer { justify-content: center; }
body.exam-page .exam-actions__group--next { justify-content: flex-end; }
body.exam-page .exam-actions .exam-actions__continue { position: static; }
body.exam-page .exam-actions .exam-actions__skip { background: #fe7e06; }
body.exam-page .exam-actions__back { background: transparent; border-color: #ccd3de; box-shadow: none; color: var(--new-ink); }
body.exam-page .exam-audio-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
body.exam-page .exam-audio-actions .exam-sound-toggle,
body.exam-page .exam-audio-actions .exam-playback-toggle {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    padding: 0;
    overflow: hidden;
    background-color: #e6e9ee;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
}
body.exam-page .exam-sound-toggle { opacity: .5; }
body.exam-page .exam-sound-toggle.is-on,
body.exam-page .exam-sound-toggle:hover { opacity: 1; }
body.exam-page .exam-sound-toggle.is-on::after { display: none; }

body.exam-page .exam-audio-actions .exam-sound-toggle:after,
body.exam-page .exam-audio-actions .exam-playback-toggle:after {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 32px;
	height: 32px;
	display: block;
    background-image: url(../images/audio.png);
    background-position: -32px 0;
    background-size: auto 32px;
    background-repeat: no-repeat;
}
body.exam-page .exam-audio-actions .exam-sound-toggle:after {
	background-position: 0 0;
}

body.exam-page .exam-playback-toggle.is-playing:after { background-position-x: -64px; }
body.exam-page .exam-playback-toggle.is-loading:after {
	background-image: none;
	cursor: wait;
	inset: 8px;
	border: 2px solid rgba(23, 32, 51, .15);
	border-top-color: #000000;
	border-radius: 50%;
	animation: audio-spinner .7s linear infinite;
}

body.exam-page .question__header.audio-playing,
body.exam-page .answer-option.audio-playing {
    animation: audio-playing-pulse 1.15s ease-in-out infinite;
}

body.exam-page .exam-progress { margin: 12px 0 32px; }
body.exam-page .exam-progress__text { margin-bottom: 9px; color: var(--new-muted); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
body.exam-page .exam-progress .progress-bar { position: relative; width: 100%; max-width: none; height: 8px; overflow: hidden; background: #e7eaf0; border-radius: 999px; }
body.exam-page .progress-bar > span { position: absolute; inset: 0 auto 0 0; display: block; height: 100%; background: linear-gradient(90deg, var(--new-orange), color-mix(in srgb, var(--new-orange) 72%, #ffca73)); border-radius: 999px; transition: width .25s ease; }

body.exam-page .exam-timer {
    position: static;
    flex: 0 0 auto;
    width: 92px;
    height: 48px;
    margin: 0;
    background: var(--new-ink);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(23, 32, 51, .18);
    font-weight: 700;
    line-height: 48px;
	text-align: center;
	color: white;
}

body.exam-page .field-error { display: inline-flex; margin: 0 0 12px; padding: 5px 10px; background: #d92d20; border-radius: 999px; color: #fff; font-size: .76rem; font-weight: 700; }
body.exam-page form.is-loading { pointer-events: none; opacity: .72; }
body.exam-page .exam-timer.is-overtime { animation: timer-alert 1s step-start infinite; }
body.exam-page .g-recaptcha { display: flex; justify-content: center; margin: 24px 0; }
body.exam-page .exam-step--submit { text-align: center; }
body.exam-page .exam-step--submit h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
body.exam-page #pleasewait { text-align: center; }

body.exam-page > footer { color: #222; }
body.exam-page .site-footer__inner a { display: inline-flex; align-items: center; margin: 8px 14px; color: #222; font-size: .88rem; font-weight: 600; text-decoration: none; }
body.exam-page .site-footer__inner a:hover { color: var(--new-ink); text-decoration: underline; text-underline-offset: 3px; }
body.exam-page .site-footer__inner img { width: 28px; height: 28px; margin-right: 8px; }

@keyframes audio-spinner { to { transform: rotate(360deg); } }
@keyframes timer-alert { 50% { background: #d92d20; color: transparent; } }
@keyframes audio-playing-pulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--new-orange) 38%, transparent); }
    50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--new-orange) 10%, transparent); }
}

@keyframes new-question-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    body.exam-page { padding: 12px; font-size: 16px; }
    body.exam-page .exam-shell { margin-top: 10px; border-radius: 20px; }
    body.exam-page .brand-bar { min-height: 136px; padding: 8px 20px; }
    body.exam-page .brand { min-height: 120px; line-height: 120px; display: flex; padding: 0; }
    body.exam-page .page-container { padding: 20px; }
    body.exam-page #exam_title { padding: 42px 0 70px; }
    body.exam-page #exam { padding-top: 24px; }
    body.exam-page .question--choice .answer-list { grid-template-columns: 1fr; }
    body.exam-page .exam-actions { gap: 10px; margin-top: 28px; }
    body.exam-page .exam-actions__group { min-width: 0; }
}

@media (max-width: 430px) {
    body.exam-page .exam-actions { gap: 6px; }
    body.exam-page .exam-actions__group { flex-basis: 33.333%; }
    body.exam-page .exam-actions__group--timer { flex: 0 0 auto; }
    body.exam-page .exam-actions button { min-width: 120px; padding-inline: 14px; }
    body.exam-page .exam-timer { width: 76px; }
    body.exam-page .question--choice .answer-option label { padding: 5px 5px 5px 40px; }
	body.exam-page .question--choice .answer-option input { left: 6px; }
	body.exam-page .question--choice p { margin: 0.5em 0;}
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.exam-page *, body.exam-page *::before, body.exam-page *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
    body.exam-page { padding: 0; background: #fff; }
    body.exam-page .exam-shell { width: 100%; border: 0; box-shadow: none; }
    body.exam-page .no-print { display: none !important; }
    body.exam-page .exam-step { display: block !important; }
}
