.quiz {
    max-width: 950px;
    width: 100%;
    padding: 48px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    min-height: 567px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    position: relative;
    z-index: 3;
}

.quiz__close {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.quiz__close-btn {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 24px;
    right: 24px;
    display: block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/quiz/close.webp');
    background-color: transparent;
    border: none;
    z-index: 3;
}

.quiz__form {
    /* width: fit-content;
    height: fit-content; */
    padding: 0 10px;
}

/*прогресс бар  */
.quiz__progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 6px;
    background: #EDEDED;
}

.quiz__progress span {
    display: block;
    height: 100%;
    width: 33%;
    background: #FF7070;
    border-radius: 10px;
    transition: width 0.5s;
    width: 0%;
}

.quiz__box-content {
    display: none !important;
    transition: opacity 0.3s;

}

.quiz__box-content.active {
    display: block !important;
}


.quiz__box-content.guests-box::before {
    position: absolute;
    content: '';
    width: 582px;
    height: 457px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url('../images/quiz/guests-box.webp');
    right: 0;
    bottom: 0;
}

.quiz__box-content.gift-box::before {
    position: absolute;
    content: '';
    width: 582px;
    height: 457px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-image: url('../images/quiz/gift-box.webp');
    right: 0;
    bottom: 0;
}

/* заголовок бокса */
.quiz__content-header {
    position: relative;
    z-index: 1;
}

.quiz__content-header h3,
.quiz__subtitle {
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #39343C;
}

.quiz__content-header-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.quiz__content-header span {
    display: block;
    width: fit-content;
    white-space: nowrap;
    padding: 6px 8px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #787878;
    background: #F4F4F4;
    border-radius: 8px;
}

.quiz__content-header span.lable-checbox {
    padding-left: 26px;
    position: relative;
}

.quiz__content-header span.lable-checbox::before {
    position: absolute;
    content: '';
    width: 12px;
    height: 12px;
    left: 8px;
    top: calc(50% - 6px);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/quiz/lable-checbox.svg');
}

/* списки чекбоксов */
.quiz__box-list {
    margin-top: 24px;
    margin-bottom: 52px;
}

.quiz__list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.quiz__list--gift {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.quiz__list--gift .quiz__checkbox {
    height: 100%;
}

.quiz__list--gift .quiz__checkbox input+label {
    height: 100%;
    box-shadow: 0 0 0 2px #E8E8E8;
}

.quiz__checkbox--name {
    padding: 12px !important;
}

.quiz__list--gift .quiz__checkbox input+label span:nth-child(1) {
    padding: 0 !important;
}

.quiz__list--1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quiz__list--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 36px;
    grid-row-gap: 12px;
    max-width: 676px;
}

/* кнопки назад вперед */
.quiz__controls {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.quiz__controls-prev {
    width: 52px;
    height: 52px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #EFEFEF;
}

.quiz__controls-next {
    width: fit-content;
    padding: 12px 36px;
    background: #FF7070;
    border-radius: 8px;
    transition: background 0.3s;
}

.quiz__controls-next:hover {
    background: #B85151;
}

.quiz__controls-next span {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #FFFFFF;
}

/* ПОСЛЕДНИЙ БЛОК  */
.quiz__box-content.form-box {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    left: 0;
    top: 0;
    z-index: 3;
    align-items: center;
    justify-content: center;
}

.quiz__box-content.form-box.active {
    display: flex !important;
}

.quiz__box-form {
    width: 100%;
}

.quiz__box-form h3 {
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    text-align: center;
    color: #39343C;
    display: block;
}

.quiz__box-form p {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #797979;
    display: block;
    margin-top: 16px;
}

.quiz__box-form ul {
    margin: 24px auto 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    max-width: 368px;
    list-style: none;
}

.quiz-input {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;

}

.quiz-input label {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #71717A;
    display: block;
}

.quiz-input input, .quiz-input select {
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    width: 100%;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    padding: 12px 20px;

    &::placeholder {
        font-weight: 400;
        font-size: 16px;
        line-height: 24px;
        color: #9CA3C0;
    }
}

.quiz_submit {
    padding: 12px;
    width: 100%;
    background: #FF7070;
    border-radius: 8px;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #FFFFFF;
    transition: background 0.3s;
    position: relative;
}

.quiz_submit.active {
    opacity: 0.5;
}

.quiz_submit.active::before {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/quiz/gif.gif');
}


.quiz-landing__btn-submit.active { 
    opacity: 0.5;
}

.quiz-landing__btn-submit.active::before {
    position: absolute;
    content: '';
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/quiz/gif.gif');
}


.quiz_submit:hover {
    background: #B85151;
}

.quiz-confidentiality input+label {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #71717A;
    display: block;
    padding-left: 24px;
    position: relative;
    cursor: pointer;
}

.quiz-confidentiality input+label a {
    color: #71717A;
    text-decoration: underline;
}

.quiz-confidentiality input+label::before {
    position: absolute;
    content: '';
    width: 16px;
    height: 16px;
    left: 0;
    top: 0;
    background: #FF7070;
    border-radius: 5px;
}

.quiz-confidentiality input:checked+label::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    left: 0;
    top: 0;
    background-image: url('../images/quiz/Check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* чекбокс стандарный  */
.quiz__checkbox input+label {
    border-radius: 8px;
    overflow: hidden;
    display: block;
    width: 100%;
    cursor: pointer;
    transition: box-shadow 0.3s;
    position: relative;
}

.quiz__checkbox input+label:hover {
    box-shadow: 0 0 0 2px #FF7070;
}

.quiz__checkbox input:checked+label {
    box-shadow: 0 0 0 2px #FF7070;
}

.quiz__checkbox input:checked+label::before {
    position: absolute;
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 100%;
    background: #fff;
    box-shadow: inset 0 0 0 8px #FF7070;
    top: 12px;
    right: 12px;
}

.quiz__checkbox input+label .quiz__checkbox-box-img {
    height: 217px;
}

.quiz__checkbox input+label .quiz__checkbox-box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quiz__checkbox input+label span {
    display: block;
    padding: 12px;
    padding-top: 16px;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #39343C;
}

/* чЕКБОКС 2  */
.quiz__slim-checkbox input+label {
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #39343C;
    padding: 16px;
    padding-left: 52px;
    box-shadow: inset 0 0 0 2px #D8D8D8;
    display: block;
    position: relative;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s;
}

.quiz__slim-checkbox input+label:hover {
    box-shadow: inset 0 0 0 2px #FF7070;
}

.quiz__slim-checkbox input:checked+label {
    box-shadow: inset 0 0 0 2px #FF7070;
}

.quiz__slim-checkbox.radio input+label::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 100%;
    left: 20px;
    top: calc(50% - 10px);
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #B6B6B6;
    transition: box-shadow 0.3s;
}

.quiz__slim-checkbox.radio input:checked+label::before {
    box-shadow: inset 0 0 0 6px #FF7070;
}

.quiz__slim-checkbox.checkbox input+label::before {
    position: absolute;
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 5px;
    left: 20px;
    top: calc(50% - 10px);
    background-color: #fff;
    box-shadow: inset 0 0 0 2px #B6B6B6;
}

.quiz__slim-checkbox.checkbox input:checked+label::before {
    box-shadow: inset 0 0 0 10px #FF7070;
}

.quiz__slim-checkbox.checkbox input:checked+label::after {
    position: absolute;
    content: '';
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url('../images/quiz/Check.svg');
    left: 23px;
    top: calc(50% - 8px);
}


.quiz-select {
    position: relative;
}

.quiz-select input,
.quiz-select li {
    cursor: pointer;
}

.quiz-select li {
    transition: 0.25s;
}

.quiz-select li:hover {
    opacity: 0.5;
}

.quiz-select ul {
    position: absolute;
    left: 0;
    top: 100%;
    border: 1px solid #D8D8D8;
    border-radius: 8px;
    color: #000;
    padding: 12px 20px;
    background: #fff;
    z-index: 10;
}

.quiz-select__arrow {
    position: absolute;
    right: 20px;
    top: 43px;
    pointer-events: none;
}

@media (max-width: 992px) {
    .quiz__list {
        display: grid;
        gap: 13px;
        grid-template-columns: 1fr 1fr 1fr;
    }
}


@media(max-width: 768px) {
    .quiz {
        width: 100%;
        padding: 45px 12px;
        padding-bottom: 20px;
        min-height: 528px;
    }

    /* прогресс бар  */
    .quiz__progress {
        border-radius: 10px;
        position: absolute;
        left: 12px;
        top: 17px;
        width: 80%;
        height: 4px;
        background: #EDEDED;
    }

    .quiz__box-content.guests-box::before {
        display: none;
    }

    .quiz__box-content.gift-box::before {
        display: none;
    }

    /* заголовок бокса */
    .quiz__content-header h3,
    .quiz__subtitle {
        font-size: 22px;
        line-height: 27px;
    }

    .quiz__content-header-box {
        display: grid;
        grid-template-columns: 1fr;
        gap: 6px;
    }


    /* списки чекбоксов */
    .quiz__box-list {
        margin-top: 24px;
        margin-bottom: 52px;
    }

    .quiz__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }

    .quiz__list--1 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quiz__list--2 {
        grid-template-columns: 1fr;
        grid-column-gap: 8px;
        grid-row-gap: 8px;
    }

    /*кнопки назад вперед */
    .quiz__controls {
        padding-top: 10px;
        border-top: 2px solid #EFEFEF;
    }

    .quiz__controls-prev {
        width: 50px;
        height: 50px;
    }

    .quiz__controls-next {
        width: 222px;
    }

    .quiz__controls-next span {
        font-size: 18px;
        line-height: 26px;
        margin: 0 auto;
        width: fit-content;
    }

    /* ПОСЛЕДНИЙ БЛОК  */
    .quiz__box-content.form-box {
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: #fff;
        left: 0;
        top: 0;
        z-index: 3;
        display: flex;
        align-items: center;
        padding-left: 12px;
        padding-right: 12px;
    }

    .quiz__box-form {
        width: 100%;
    }

    .quiz__box-form h3 {
        font-size: 22px;
        line-height: 27px;
    }

    .quiz__box-form p {
        font-size: 14px;
        line-height: 22px;
        margin-top: 12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .quiz__box-form ul {
        max-width: 100%;
    }


    .quiz_submit {
        font-size: 18px;
        line-height: 26px;
    }

    .quiz-confidentiality input+label {
        font-size: 12px;
        line-height: 18px;
    }

    /* чекбокс стандарный  */
    .quiz__checkbox input:checked+label::before {
        width: 20px;
        height: 20px;
        border-radius: 100%;
        background: #fff;
        box-shadow: inset 0 0 0 6px #FF7070;
        top: 8px;
        right: 8px;
    }

    .quiz__checkbox input+label .quiz__checkbox-box-img {
        height: 202px;
    }

    .quiz__checkbox input+label span {
        padding: 8px;
        padding-top: 8px;
        font-size: 14px;
        line-height: 18px;
    }

    /* чЕКБОКС 2  */
    .quiz__slim-checkbox input+label {
        font-size: 16px;
        line-height: 24px;
        padding: 12px;
        padding-left: 44px;
    }

    .quiz__close-btn {
        top: 9px;
        right: 9px;
        display: block;
        width: 18px;
        height: 18px;
        background-size: cover;
    }
}

@media(max-width: 530px) {
    .quiz__checkbox input+label .quiz__checkbox-box-img {
        height: 150px;
    }
}

@media(max-width: 400px) {
    .quiz__checkbox input+label .quiz__checkbox-box-img {
        height: 120px;
    }
}

.modal-quiz button {
    border: none;
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    cursor: pointer;
}

.quiz__list {
    padding: 0;
    margin: 0;
    list-style: none;
}


/* ОТКРЫТИЕ QUIZ */
.modal-quiz {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
    padding: 50px 20px;
    z-index: 10000000 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-quiz.active {
    opacity: 1;
    pointer-events: all;
}

.modal-quiz__content {
    width: 100%;
    min-height: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}