/*
 * Styles for the "Опросники" (Quizzes) section:
 * - template-quizzes.php (listing page)
 * - single-quizzes.php (single quiz page + results modal)
 * Loaded separately from build/css/style.min.css, only on quiz pages.
 * Values below are taken from the Figma export (figma-quizzes-export.json) where available.
 * Follows the site's vw-scaling convention: desktop values are px/14.4 (1440 base),
 * mobile values (inside max-width:960px) are px/3.75 (375 base).
 *
 * MIXED UNITS NOTICE: the listing page (everything from ".quiz-tag" through the end of the
 * "grid + card" section, both above and inside the @media block) is back in vw, matching the
 * rest of the site. Everything from "single: dark page wrapper" onward (single-quizzes.php +
 * the results modal) is still in px — PX EDITING MODE, being tuned by hand against the Figma
 * macet. Desktop px = vw * 14.4, mobile px (inside @media max-width:960px) = vw * 3.75.
 * Convert the rest back to vw the same way once that part is done.
 */


.quizzes-page,
.quiz-single-page {
    background-color: #2F3032;
    color: #fff;
    font-family: Helvetica, sans-serif;
    position: relative;
    overflow: hidden;
}

.quizzes-page a,
.quiz-single-page a {
    font-family: inherit;
}

.quizzes-page b,
.quiz-single-page b {
    font-weight: 700;
}

/* ---------- shared: outline tag/pill ---------- */

.quiz-tag,
.quizzes-page .tag,
.quiz-single-page .tag {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 0.06944vw solid currentColor;
    color: inherit;
    border-radius: 1.31944vw;
    padding: 0.13889vw 0.69444vw 0.13889vw;
    font-size: 0.83333vw;
    line-height: 1.8;
    white-space: nowrap;
}

/* ---------- listing hero ---------- */

.quizzes-hero {
    position: relative;
    margin: 0;
    overflow: hidden;
    display: flex;
    height: 88.05556vw;
    box-sizing: border-box;
}

.quizzes-hero .img-wrap img {
    width: 100%;
    display: block;
}

.quizzes-hero .dop-line {
    border-top: 0.06944vw solid #fff;
    border-right: 0.06944vw solid #fff;
    border-radius: 0 100% 0 0;
    width: 59.23611vw;
    height: 59.02778vw;
    display: block;
    position: absolute;
    left: 2.63889vw;
    top: 24.16667vw;
    z-index: 2;
    clip-path: inset(0 0 100% 0);
    animation: quizDopLineDraw 1.4s cubic-bezier(.65, 0, .35, 1) .2s forwards;
}

@keyframes quizDopLineDraw {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0% 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .quizzes-hero .dop-line {
        animation: none;
        clip-path: none;
    }
}

.quizzes-hero .img-wrap:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 77.63889vw;
    background-image: linear-gradient(to bottom, rgba(47, 48, 50, 0) 4%, #2f3032 97%);
}

.quizzes-hero-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 0 0 13.88889vw;
    width: 100%;
    box-sizing: border-box;
}

.quizzes-hero-inner h1 {
    font-size: 7.22222vw;
    line-height: .9;
    font-weight: 300;
    text-transform: uppercase;
    margin: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 16.875vw;
}

.quizzes-hero-inner .text {
    font-size: 2.22222vw;
    line-height: 1.3;
    font-weight: 300;
    text-transform: uppercase;
    max-width: 39.16667vw;
    margin: 62.5vw 0 0 2.5vw;
    text-align: left;
}

.quizzes-hero-inner .textdop {
    font-size: 1.04167vw;
    line-height: 1.5;
    font-weight: 300;
    max-width: 35vw;
    margin: 4.30556vw 0 0 2.5vw;
    text-align: left;
}

/* ---------- filters ---------- */

.quizzes-filters {
    margin: 0 2.5vw 5.55556vw;
}

.quizzes-filters-search {
    display: flex;
    justify-content: flex-end;
}

.quizzes-filters-search form {
    display: flex;
    align-items: center;
    width: auto;
    background: #252628;
    border-radius: 2.22222vw;
    overflow: hidden;
}

.quizzes-search-input {
    width: 0;
    min-width: 0;
    height: 4.44444vw;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1.11111vw;
    opacity: 0;
    transition: width .25s ease-in-out, opacity .2s ease-in-out, padding .25s ease-in-out;
}

.quizzes-search-input::placeholder {
    color: rgba(255, 255, 255, .5);
}

.quizzes-filters-search.is-open .quizzes-search-input {
    width: 16.66667vw;
    padding: 0 0 0 1.66667vw;
    opacity: 1;
}

.quizzes-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.44444vw;
    height: 4.44444vw;
    min-width: 4.44444vw;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.quizzes-search-toggle svg {
    width: 1.38889vw;
    height: 1.38889vw;
}

.quizzes-search-results-label {
    text-align: center;
    color: #fff;
    opacity: .7;
    font-size: 1.04167vw;
    margin-top: 1.66667vw;
}

.quizzes-filters-wrap {
    text-align: center;
}

.quizzes-filters ul {
    display: inline-flex;
    padding: 0.27778vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.97222vw 0.55556vw;
    list-style: none;
    margin: 1.66667vw 0 0;
    background: #252628;
    border-radius: 2.11806vw;
}

.quizzes-filters a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    border: 0.06944vw solid rgba(255,255,255,0.1);
    border-radius: 2.11806vw;
    padding: 1.25vw 2.43056vw 1.18056vw;
    font-size: 1.04167vw;
    line-height: 1.4;
    transition: .2s ease-in-out border;
}

.quizzes-filters a:hover {
    border: 0.06944vw solid rgba(255,255,255,0.5);
}

.quizzes-filters a.active {
    border: 0.06944vw solid rgba(255,255,255,1);
}

/* ---------- grid + card ---------- */

.quizzes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.38889vw 0.41667vw;
    margin: 5.55556vw 2.5vw 6.25vw;
}

.quizzes-empty {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.11111vw;
    padding: 8.33333vw 0;
    opacity: .6;
}

.quiz-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: #000;
    background: #fff;
    border-radius: 0.55556vw;
    padding: 1.52778vw 1.38889vw;
    min-height: 22.22222vw;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quiz-card:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFDFD4 100%);
}

.quiz-card:hover h3 b {
    color: #FF6734;
}

/* big circle that follows the cursor inside the card, see quiz.js initQuizCardHover() */
.quiz-card > .hover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.47222vw;
    height: 3.47222vw;
    margin: -1.73611vw 0 0 -1.73611vw;
    background: #000;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    opacity: 0;
    transform: scale(0);
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), opacity .25s ease-in-out;
    pointer-events: none;
}

.quiz-card:hover > .hover {
    opacity: 1;
    transform: scale(1);
}

.quiz-card > .hover svg {
    width: 0.83333vw;
    height: 0.83333vw;
    display: block;
}

.quiz-card h3 {
    margin: 0;
    font-size: 1.80556vw;
    line-height: 1.4;
    font-weight: 300;
    text-transform: uppercase;
    text-indent: 2.43056vw;
    position: relative;
}

.quiz-card h3 .dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.52778vw;
    height: 1.52778vw;
    border-radius: 50%;
    background: #000;
    z-index: 1;
    position: absolute;
    left: 0;
    top: 0.48611vw;
    overflow: hidden;
    transition: width .3s ease-in-out, height .3s ease-in-out, left .3s ease-in-out, top .3s ease-in-out;
}

.quiz-card h3 .dot svg {
    transition: opacity .2s ease-in-out, transform .2s ease-in-out;
}

.quiz-card:hover h3 .dot {
    width: 0.27778vw;
    height: 0.27778vw;
    left: 0.625vw;
    top: 1.11111vw;
}

.quiz-card:hover h3 .dot svg {
    opacity: 0;
    transform: scale(0);
}

.quiz-card h3 .dot svg {
    width: 0.55556vw;
    height: 0.55556vw;
}

.quiz-card h3 b {
    font-weight: 700;
    transition: .2s ease-in-out color;
}

.quiz-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.97222vw;
    margin-top: 1.38889vw;
}

.quiz-card .count {
    font-size: 1.04167vw;
    opacity: .5;
}

/* ---------- single: dark page wrapper + light content panel ---------- */

.quiz-single-page {
    padding: 90px 8px 0;
}

.quiz-single-panel {
    background: linear-gradient(180deg, #F5F5F5 0%, #FFDFD4 100%);
    color: #000;
    border-radius: 20px;
    padding: 28px 28px 30px;
}

.quiz-single-header .top-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.quiz-single-header .back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    background: rgba(255, 255, 255, .3);
    transition: .2s ease-in-out background, .2s ease-in-out color;
}

.quiz-single-header .back:hover {
    background: #000;
    color: #fff;
}

.quiz-single-header h1 {
    font-size: 48px;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
}

.quiz-single-header .intro {
    font-size: 15px;
    line-height: 1.65;
    max-width: 660px;
    margin: 40px 0 0 auto;
}

.quiz-single-header .intro p {
    margin: 0;
}

.quiz-single-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
}

.quiz-single-note .tag {
    font-size: 17px;
    padding: 8px 24px 10px;
}

.quiz-single-note .note {
    font-size: 15px;
    line-height: 1.3;
    opacity: .7;
    max-width: 792px;
}

/* ---------- questions ---------- */

.quiz-questions {
    margin-top: 100px;
    max-width: 720px;
}

.quiz-questions-title {
    font-size: 42px;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.quiz-question {
    background: #fff;
    border-radius: 20px;
    padding: 64px 60px 70px;
    margin-bottom: 10px;
}

.quiz-question-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.quiz-question-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-answer {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.15;
}

.quiz-answer input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.quiz-answer .radio-circle {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 1px solid #000;
    transition: .2s ease-in-out background;
}

.quiz-answer .radio-circle:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
    transform: translate(-50%, -50%) scale(0);
    transition: .2s ease-in-out transform;
}

.quiz-answer input:checked + .radio-circle:after {
    transform: translate(-50%, -50%) scale(1);
}

.quiz-submit-wrap {
    display: flex;
    justify-content: center;
    margin: 40px 0 10px;
}

.quiz-submit-wrap .button {
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 16px 28px 17px;
    border-radius: 27.50px;
    font-size: 16px;
    height: auto;
    opacity: .35;
    pointer-events: none;
    transition: .2s ease-in-out opacity;
}

.quiz-submit-wrap .button.is-ready {
    opacity: 1;
    pointer-events: auto;
}

/* ---------- doctor byline ---------- */

.quiz-doctor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 60px;
}

.quiz-doctor-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-doctor-info .row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.quiz-doctor .label {
    font-size: 15px;
    opacity: .6;
}

.quiz-doctor .photo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 8px;
    overflow: hidden;
}

.quiz-doctor .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.quiz-doctor .name {
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

.quiz-doctor .position {
    font-size: 15px;
    opacity: .5;
    margin-top: 2px;
}

.quiz-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #000;
    border: none;
    color: #fff;
    border-radius: 17px;
    padding: 11px 22px 12px;
    font-size: 16px;
    cursor: pointer;
}

/* ---------- related (sits directly on the dark page bg) ---------- */

.quiz-related {
    margin: 60px 0 40px;
}

.quiz-related-title {
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.quiz-related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 6px;
}

.quiz-related-list .quiz-card {
    min-height: 288px;
}

/* ---------- results modal ---------- */

#quiz-result-modal {
    display: none;
    position: fixed;
    top: 8px;
    right: 8px;
    left: 8px;
    bottom: 8px;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(14px);
    border-radius: 40px;
    border: 1px solid #fff;
    background-color: rgba(0, 0, 0, .4);
}

#quiz-result-modal.active {
    display: flex;
}

.quiz-result-modal-inner {
    position: relative;
    width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    color: #000;
    border-radius: 20px;
    padding: 48px;
    box-sizing: border-box;
}

#quiz-result-modal .close-modal {
    position: absolute;
    right: 36px;
    top: 36px;
    cursor: pointer;
    z-index: 1;
}

#quiz-result-modal .close-modal span {
    width: 20px;
    height: 2px;
    background: #000;
    display: block;
    transition: .2s ease-in-out transform;
}

#quiz-result-modal .close-modal span:first-child {
    transform: rotate(45deg);
    position: relative;
    top: 2px;
}

#quiz-result-modal .close-modal span:last-child {
    transform: rotate(-45deg);
    position: relative;
}

.quiz-result-step {
    display: none;
}

.quiz-result-step.active {
    display: block;
}

.quiz-result-step.final {
    text-align: center;
    padding: 60px 0;
}

.quiz-result-step.final h2 {
    font-size: 30px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 10px;
}

.quiz-result-step.final p {
    font-size: 15px;
    opacity: .65;
}

.quiz-result-step h2 {
    font-size: 30px;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 0 24px;
    max-width: 432px;
}

.quiz-result-value {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.quiz-result-value .label {
    font-size: 15px;
    text-transform: uppercase;
}

.quiz-result-value .percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFDFD4;
    border-radius: 80px;
    padding: 24px 40px 26px;
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
}

#quiz-lead-form .form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 374.40px;
}

#quiz-lead-form .form-field {
    width: 100%;
}

#quiz-lead-form input[type="text"],
#quiz-lead-form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    padding: 12px 0;
    font-size: 18px;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: #000;
}

#quiz-lead-form input::placeholder {
    color: rgba(0, 0, 0, .5);
}

#quiz-lead-form .checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

#quiz-lead-form .checkbox-field input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#quiz-lead-form .checkbox-box {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border: 1px solid #000;
    display: inline-block;
    position: relative;
}

#quiz-lead-form .checkbox-field input:checked + .checkbox-box:after {
    content: '';
    position: absolute;
    inset: 7px;
    background: #000;
}

#quiz-lead-form .button-wrap {
    margin-top: 10px;
}

#quiz-lead-form .button {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    height: auto;
    padding: 16px;
    border-radius: 22px;
    font-size: 18px;
    font-family: inherit;
    cursor: pointer;
}

#quiz-lead-form .form-error {
    display: none;
    width: 100%;
}

#quiz-lead-form.has-error .form-error {
    display: block;
}

#quiz-lead-form .form-error p {
    color: #c0392b;
    font-size: 12px;
}

.quiz-result-cta {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
    min-height: 211px;
}

.quiz-result-cta img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .5;
}

.quiz-result-cta:before {
    content: '';
    position: absolute;
    inset: 0;
    background: #2F3032;
    opacity: .55;
}

.quiz-result-cta-inner {
    position: relative;
    z-index: 1;
    padding: 24px 30px;
    color: #fff;
}

.quiz-result-cta h4 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 400;
    margin: 0 0 8px;
}

.quiz-result-cta p {
    font-size: 15px;
    opacity: .6;
    margin: 0 0 16px;
}

.quiz-result-cta .quiz-open-book {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: #fff;
    color: #000;
    text-decoration: none;
    border: none;
    width: auto;
    height: auto;
    padding: 11px 28px 12px;
    border-radius: 27.50px;
    font-size: 16px;
}

/* ================= MOBILE ================= */

@media screen and (max-width: 960px) {
    .quizzes-hero {
        margin: 0;
        height: auto;
        overflow: visible;
        display: block;
        border-radius: 0;
    }

    .quizzes-hero .dop-line {
        width: 90.93333vw;
        height: 124.26667vw;
        left: 4.53333vw;
        top: 50.4vw;
    }

    .quizzes-hero .img-wrap {
        position: relative;
        height: 190.66667vw;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .quizzes-hero .img-wrap img {
        height: 100%;
        object-fit: cover;
    }

    .quizzes-hero-inner {
        position: static;
        display: block;
        height: auto;
        padding: 0 5.33333vw 0;
    }

    .quizzes-hero-inner h1 {
        position: absolute;
        left: 5.33333vw;
        right: 5.33333vw;
        top: 31.73333vw;
        font-size: 10.13333vw;
        line-height: 1.3;
        text-align: left;
        margin: 0;
    }

    .quizzes-hero-inner .text {
        font-size: 5.86667vw;
        line-height: 1.4;
        max-width: 100%;
        text-align: left;
        margin: 0;
    }

    .quizzes-hero-inner .textdop {
        font-size: 4vw;
        line-height: 1.4;
        max-width: 100%;
        text-align: left;
        margin: 7.46667vw 0 0;
    }

    .quizzes-filters {
        margin: 12.26667vw 4.26667vw 0;
    }

    .quizzes-search-toggle {
        width: 14.4vw;
        height: 14.4vw;
        min-width: 14.4vw;
    }

    .quizzes-search-toggle svg {
        width: 4.53333vw;
        height: 4.53333vw;
    }

    .quizzes-filters-search form {
        border-radius: 7.2vw;
    }

    .quizzes-search-input {
        height: 14.4vw;
        font-size: 3.73333vw;
    }

    .quizzes-filters-search.is-open .quizzes-search-input {
        width: 45.33333vw;
        padding: 0 0 0 5.33333vw;
    }

    .quizzes-filters ul {
        justify-content: flex-start;
        gap: 2.66667vw 1.6vw;
        border-radius: 8.13333vw;
        padding: 1.06667vw;
    }

    .quizzes-filters a {
        border-radius: 8.13333vw;
        padding: 3.46667vw 5.86667vw;
        font-size: 3.73333vw;
    }

    .quizzes-grid {
        grid-template-columns: 1fr;
        gap: 4.26667vw;
        margin: 8.53333vw 4.26667vw 17.06667vw;
    }

    .quiz-card h3 .dot {
        top: 1.06667vw;
        width: 5.86667vw;
        height: 5.86667vw;
    }

    .quiz-card h3 .dot svg {
        width: 2.13333vw;
        height: 2.13333vw;
    }

    .quiz-card {
        border-radius: 2.13333vw;
        padding: 5.33333vw 4.8vw;
        min-height: 74.66667vw;
    }

    .quiz-card > .hover {
        width: 10.66667vw;
        height: 10.66667vw;
        margin: -5.33333vw 0 0 -5.33333vw;
    }

    .quiz-card > .hover svg {
        width: 2.66667vw;
        height: 2.66667vw;
    }

    .quiz-card h3 {
        font-size: 5.86667vw;
        text-indent: 9.33333vw;
    }

    .quiz-card h3 b {
        color: #FF6734;
    }

    .quiz-card-bottom {
        margin-top: 4.26667vw;
        gap: 3.2vw;
    }

    .quiz-card .count {
        font-size: 3.73333vw;
    }

    .quiz-tag,
    .quizzes-page .tag,
    .quiz-single-page .tag {
        border-radius: 5.06667vw;
        padding: 0.53333vw 2.66667vw 0.53333vw;
        font-size: 3.2vw;
    }

    .quiz-single-page {
        padding: 100px 8px 0;
    }

    .quiz-single-panel {
        border-radius: 24px;
        padding: 28px 28px 30px;
    }

    .quiz-single-header .top-row {
        gap: 16px;
    }

    .quiz-single-header .back {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }

    .quiz-single-header .back svg {
        width: 18px;
        height: auto;
    }

    .quiz-single-header h1 {
        font-size: 26px;
    }

    .quiz-single-header .intro {
        font-size: 14px;
        max-width: 100%;
        margin: 20px 0 0;
    }

    .quiz-single-note {
        gap: 12px;
        margin-top: 16px;
    }

    .quiz-single-note .tag {
        font-size: 13px;
        padding: 6px 18px 8px;
    }

    .quiz-single-note .note {
        font-size: 13px;
        max-width: 100%;
    }

    .quiz-questions {
        margin-top: 100px;
        max-width: 100%;
    }

    .quiz-questions-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .quiz-question {
        border-radius: 24px;
        padding: 32px 20px;
        margin-bottom: 12px;
    }

    .quiz-question-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .quiz-question-answers {
        gap: 16px;
    }

    .quiz-answer {
        font-size: 14px;
        gap: 12px;
    }

    .quiz-answer .radio-circle {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .quiz-answer .radio-circle:after {
        width: 10px;
        height: 10px;
    }

    .quiz-submit-wrap {
        margin: 24px 0 12px;
    }

    .quiz-submit-wrap .button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 16px;
        border-radius: 30px;
        font-size: 16px;
    }

    .quiz-doctor {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 32px;
        gap: 16px;
    }

    .quiz-doctor .photo {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 8px;
    }

    .quiz-doctor .label {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .quiz-doctor .name {
        font-size: 16px;
    }

    .quiz-doctor .position {
        font-size: 14px;
    }

    .quiz-share {
        width: 100%;
        justify-content: center;
        border-radius: 30px;
        padding: 16px;
        font-size: 16px;
    }

    .quiz-related {
        margin: 40px 0 32px;
    }

    .quiz-related-title {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .quiz-related-list {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #quiz-result-modal {
        top: 4px;
        right: 3px;
        left: 3px;
        bottom: 4px;
        border-radius: 40px;
    }

    .quiz-result-modal-inner {
        width: 100%;
        max-height: 92vh;
        border-radius: 30px;
        padding: 30px 24px;
    }

    #quiz-result-modal .close-modal {
        right: 20px;
        top: 25px;
    }

    #quiz-result-modal .close-modal span {
        width: 25px;
    }

    #quiz-result-modal .close-modal span:first-child {
        top: 2px;
    }

    .quiz-result-step h2,
    .quiz-result-step.final h2 {
        font-size: 30px;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .quiz-result-value {
        gap: 16px;
        margin-bottom: 24px;
        flex-wrap: wrap;
    }

    .quiz-result-value .label {
        font-size: 13px;
    }

    .quiz-result-value .percent {
        border-radius: 40px;
        padding: 16px 30px;
        font-size: 44px;
    }

    #quiz-lead-form .form-fields {
        gap: 16px;
        max-width: 100%;
    }

    #quiz-lead-form input[type="text"],
    #quiz-lead-form input[type="email"] {
        padding: 12px 0;
        font-size: 18px;
    }

    #quiz-lead-form .checkbox-field {
        font-size: 14px;
        gap: 10px;
    }

    #quiz-lead-form .checkbox-box {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    #quiz-lead-form .button {
        padding: 16px;
        border-radius: 30px;
        font-size: 18px;
    }

    #quiz-lead-form .form-error p {
        font-size: 12px;
    }

    .quiz-result-cta {
        margin-top: 24px;
        min-height: 211px;
    }

    .quiz-result-cta-inner {
        padding: 24px 20px;
    }

    .quiz-result-cta h4 {
        font-size: 24px;
    }

    .quiz-result-cta p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .quiz-result-cta .quiz-open-book {
        width: 100%;
        justify-content: center;
        text-align: center;
        border-radius: 30px;
        padding: 14px;
        font-size: 14px;
    }
}
