#quizModal .form__container_success img {
    max-width: 120px;
}
#quizModal .modal-content {
    padding: 16px;
    max-height: 80vh;
    overflow: hidden;
}
.modal-body{
    /*overflow-x: auto;*/
}
#quizModal .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235A82FC'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    top: 20px;
    right: 20px;
}
.floating-calc-btn {
    position: fixed;
    left: 11px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    z-index: 1000;
    background: #5A82FC;
    color: white;
    padding: 5px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    border: none;
    font-family: inherit;
}

.floating-calc-btn:hover {
    padding: 30px 24px 12px 24px;
}


.quiz-wrapper{
    background: white;
    overflow-y: auto;
    max-height: 70vh;
}
.quiz-step.passed{
    background:#5A82FC;
}
.quiz-step.passed span{
    display: none;
}
.quiz-step.passed img{
    display: block;
}
.quiz-step.active{
    color: white;
    background:#5A82FC;
}
.quiz-step img{
    display: none;
}
.quiz-step:before{
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 2px;
    height: 20px;
    background: #E5ECFF;
}
.quiz-step:last-of-type:before{
    content: none;
}
.quiz-step{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 100px;
    min-width: 24px;
    color: #5A82FC;
    font-weight: bold;
    font-size: 14px;
    background: #E5ECFF;
}
.quiz-answers{
    width: 100%;
}
.quiz-answers-inner.active{
    display: block;
}
.quiz-answers-inner{
    display: none;
}
.quiz-answers-wrapper{
    display: flex;
    gap: 22px;
    margin-bottom: 16px;
}
.quiz-steps-wrapper{
    display: flex;
    flex-direction: column;
    gap: 37px;
    position: relative;
}
.quiz-btn-wrapper{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: end;
}
.btn-primary.disabled {
    background: #E5ECFF;
    cursor: not-allowed;
    color: white;
    border: 1px solid #E5ECFF;
    pointer-events: auto;
}


/* Обертка для 6 карточек - 2 ряда по 3 колонки */
.quiz-answers-with-img-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
}

/* Стиль каждой карточки */
.quiz-answers-with-img-item {
    position: relative;
    max-width: 320px;
    height: 160px;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

/* Стилизация изображения на заднем фоне */
.quiz-answers-with-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Контейнер для радио и текста */
.quiz-answers-with-img-radio {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

/* Скрываем стандартный радио-инпут */
.quiz-answers-with-img-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Кастомный радио-круг */
.quiz-answers-with-img-radio .custom-radio {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

/* Внутренняя точка для выбранного состояния */
.quiz-answers-with-img-radio .custom-radio::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Отображаем точку при выбранном радио */
.quiz-answers-with-img-radio input[type="radio"]:checked + .custom-radio::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Текст под радио */
.quiz-answers-with-img-radio .radio-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-family: system-ui, -apple-system, sans-serif;
}


@media (min-width: 768px) {
    .floating-calc-btn {
        left: 20px;
        padding: 12px 24px;
    }
    #quizModal .modal-content {
        padding: 20px;
        border-radius: 24px;
    }
}

@media (min-width: 992px) {
    #quizModal .modal-content {
        padding: 30px;
    }
    .quiz-wrapper{
        overflow-y: unset;
        max-height: unset;
    }
}
@media (min-width: 1200px) {
    #quizModal .form__container_success {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 553px;
    }
    #quizModal .modal-content {
        padding: 40px;
        border-radius: 40px;
        min-height: 633px;
    }
}





/* Стили для текстовых инпутов */
.quiz-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-input-group label {
    font-size: 14px;
    opacity: 0.3;
}

.quiz-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: #E5ECFF;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
}

.quiz-input-group input:focus {
    border-color: #5A82FC;
}

.quiz-input-group input::placeholder {
    color: #7B8192;
}

/* Стили для радио кнопок в блоках default */
.quiz-answers-default {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.quiz-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.quiz-radio-item .custom-radio-default {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 2px solid #B0B6C7;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.quiz-radio-item .custom-radio-default::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 10px;
    height: 10px;
    background-color: #5A82FC;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-radio-item input[type="radio"]:checked  {
    border: 2px solid #5A82FC;
}
.quiz-radio-item input[type="radio"]:checked + span + .radio-label-default {
    color: #5A82FC;
}
.quiz-radio-item input[type="radio"]:checked + .custom-radio-default {
    border: 2px solid #5A82FC;
}
.quiz-radio-item input[type="radio"]:checked + .custom-radio-default::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quiz-radio-item .radio-label-default {
    font-size: 14px;
    color: #1A1F36;
    cursor: pointer;
}

/* Стили для чекбоксов */
.quiz-checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.quiz-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.quiz-checkbox-item .custom-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 2px solid #B0B6C7;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.quiz-checkbox-item .custom-checkbox::after {
    content: url("/img/quiz/check-icon.svg");
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-checkbox-item input[type="checkbox"]:checked + span + .checkbox-label{
    color: #5A82FC;
}
.quiz-checkbox-item input[type="checkbox"]:checked + .custom-checkbox {
    border: 2px solid #5A82FC;
    background: #5A82FC;
}
.quiz-checkbox-item input[type="checkbox"]:checked + .custom-checkbox::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quiz-checkbox-item .checkbox-label {
    font-size: 14px;
    color: #1A1F36;
    cursor: pointer;
}