.modal-quiz {
    width: 100%;
    height: 100%;
    padding: 0;
    position: relative;
}

.fancybox-slide:has(.modal-quiz) {
    padding: 0;
}

.quiz-text {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 354px;
}

.quiz-title {
    margin-top: 56px;
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%; /* 28px */
    text-transform: uppercase;
    color: #FFF;
}

.quiz-desc {
    color: var(--WHITE, #FFF);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 21.6px */
    letter-spacing: 0.072px;
}

.quiz-step {
    position: relative;
    z-index: 2;
}

.quiz-form_bg {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 1;
}

.accent_text {
    color: var(--RED, #A6192E);
}

.quiz-background {
    background: linear-gradient(129deg, rgba(246, 247, 247, 0.80) 65.47%, rgba(246, 247, 247, 0.56) 82.13%);
    filter: drop-shadow(-6px 0px 38px rgba(0, 0, 0, 0.45));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* z-index: 1???; */
    z-index: 0;
}

.quiz-form_image {
    height: 100%;
    object-fit: cover;
}

.quiz-form {
    width: 370px;
    position: absolute;
    top: 50%;
    transform: translateY(50%);
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-form__title {
    max-width: 370px;
    color: var(--GRAY, #313131);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
    margin-bottom: 24px;
}

.modal-quiz .fancybox-close-small {
    display: none;
}

.quiz-subtitle {
    margin-top: 56px;
    color: var(--WHITE, #FFF);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 100%; /* 18px */
}

.quiz-last-title {
    margin-top: 0;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: 110%; /* 35.2px */
    letter-spacing: 0.416px;
    text-transform: uppercase;
}

.quiz-step-photo.last {
    filter: brightness(0.5);
}

.quiz-text.last {
    max-width: 456px;
}
.quiz-step .fancybox-close-small {
    margin-top: 56px;
    display: block;
    height: 104px;
    width: 104px;
    padding: 0;
}

.quiz-form__values__wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    gap: 12px;
}


.quiz-form__values.active {
    border: 1px solid #A6192E;
}

.quiz-form__values:hover {
    border: 1px solid #A6192E;
}

.quiz-form__values {
    border: 1px solid transparent;
    border-radius: 2px;
    background: var(--WHITE, #FFF);
    display: flex;
    width: 370px;
    height: 52px;
    padding: 4px 8px;
    align-items: center;
    width: 100%;
    gap: 10px;

    color: var(--GRAY, #313131);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%; /* 13px */
    text-transform: uppercase;
}

.quiz-form__btn.disabled {
    pointer-events: none;
    background: #eee;
    opacity: 0.4;
}

.quiz-form__btn {
    width: 100%;
    border: 2px solid var(--GRAY, #313131);
    display: flex;
    height: 50px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex: 1 0 0;
}

.quiz-step-photo {
    position: absolute;
    height: 100%;
    left: 0;
    z-index: 1;
    top: 0;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .modal-quiz {
        width: 375px;
        height: 812px;
    }

    .quiz-step-photo {
        height: 50%;
    }

    .quiz-title {
        margin-top: 0;
    }

    .quiz-subtitle {
        margin-top: 0;
    }

    .quiz-text {
        position: relative;
        z-index: 2;
        margin-top: 250px;
    }
    .quiz-step {
        position: static;
    }
    .quiz-step-photo {
        filter: brightness(0.7);
    }

    .quiz-form_image {
        display: none;
    }

    .quiz-desc {
        font-size: 14px;
    } 

    .quiz-title {
        font-size: 26px;
    }
    .quiz-form {
        position: relative;
        z-index: 2;
        width: calc(100% - 8px);
        left: 50%;
        transform: translateX(-50%);
        bottom: -54px;
        top: auto;
    }

    .quiz-form__title {
        font-size: 16px;
    }

    .quiz-step .fancybox-close-small path {
        fill: #fff;
    }
    .quiz-step .fancybox-close-small {
        height: 56px;
        width: 56px;
        margin-top: 0;
        position: absolute;
        top: 0;
        right: 0;
    }

    .quiz-background {
        filter: blur(15px);
    }
}