/* ============================================
   КОМПАКТНАЯ МОБИЛЬНАЯ ВЕРСИЯ КВИЗА
   ============================================ */

/* Основная секция */
.quiz {
    width: 100%;
    background: #F6F5F3;
    padding: 40px 0;
    border-radius: 0 0 50px 50px;
}

.quiz__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;

}

.quiz__wrapper {
    display: flex;
    gap: 20px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 20px;
    flex-wrap: wrap;
}

/* Блок с вопросами */
.quiz__questions {
    flex: 1;
    min-width: 260px;
}

.quiz-slider {
    position: relative;
}

.quiz-slide {
    display: none;
}

.quiz-slide:first-child {
    display: block;
}

/* Заголовок вопроса */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    height: 8rem;
}

.quiz-question {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #282624;
    flex: 1;
    margin: 0;
}

/* Навигация */
.quiz-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.quiz-nav-btn {
    width: 40px;
    height: 40px;
    background: #282624;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quiz-nav-btn:hover:not(.hidden) {
    transform: scale(1.05);
    background: #3a3633;
}

.quiz-nav-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.quiz-nav-btn svg {
    width: 8px;
    height: 16px;
}

.quiz-counter {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #282624;
    min-width: 65px;
    text-align: center;
}

/* Варианты ответов - мобильная версия (вертикально) */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.quiz-option {
    background: #F6F5F3;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    gap: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-option.selected {
    background: #282624;
    border-color: #F3BF82;
}

/* Иконка варианта */
.option-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 15px;
}

.option-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* Текст варианта */
.option-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.4;
    color: #282624;
    flex: 1;

}

.quiz-option.selected .option-text {
    color: #FFFFFF;
}

/* Галочка */
.option-check {
    width: 26px;
    height: 26px;
    background: #92918F;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.quiz-option.selected .option-check {
    opacity: 1;
    background: #F3BF82;
}

.option-check svg {
    width: 14px;
    height: 14px;
}

/* Прогресс-бар */
.quiz-progress {
    margin-top: 28px;
}

.progress-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #605C58;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #F6F5F3;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #F3BF82;
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Карточка консультанта - мобильная версия */
.quiz__consultant {
    width: 100%;
    flex-shrink: 0;
}

.consultant-card {
    position: relative;
    background: #282624;
    border-radius: 20px;
    padding: 20px;
    overflow: hidden;
}

.consultant-blur {
    position: absolute;
    width: 280px;
    height: 280px;
    left: -50px;
    top: -140px;
    background: rgba(247, 201, 146, 0.25);
    filter: blur(100px);
    pointer-events: none;
}

.consultant-content {
    position: relative;
    z-index: 1;
}

.consultant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.consultant-avatar {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.consultant-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #43EEAA;
    border: 2px solid #282624;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px #43EEAA;
}

.consultant-name h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.consultant-name p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.consultant-description {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 14px;
    position: relative;
}

.consultant-description::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

.consultant-description p {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    color: #FFFFFF;
    margin: 0;
}

/* Блок со скидкой */
.discount-block {
    position: relative;
    z-index: 1;
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.discount-circle {
    position: relative;
    width: 110px;
    height: 110px;
    margin-bottom: 14px;
}

.discount-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring {
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 0.3s ease;
}

.discount-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.discount-percent {
    font-family: 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #F3BF82;
    display: block;
    line-height: 1;
}

.discount-label {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    display: block;
    margin-top: 2px;
}

/* Кнопка отправки */
.quiz-submit-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 12px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: default;
    transition: all 0.3s ease;
    pointer-events: none;
}

.quiz-submit-btn.active {
    background: #F3BF82;
    color: #282624;
    cursor: pointer;
    pointer-events: auto;
}

.quiz-submit-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 191, 130, 0.3);
}

/* ============================================
   ПЛАНШЕТНАЯ ВЕРСИЯ (горизонтальные карточки)
   ============================================ */
@media (min-width: 768px) {
    .quiz__wrapper {
        flex-wrap: nowrap;
        gap: 24px;
        padding: 24px;
    }

    .quiz-question {
        font-size: 24px;
    }

    .quiz-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .quiz-option {
        flex: 1;
        flex-direction: column;
        min-width: 180px;
        padding: 20px 16px;
    }

    .option-icon {
        width: 70px;
        height: 70px;

        display: flex;
        justify-content: left;
    }

    .option-text {

        font-size: 14px;
    }

    .option-check {
        position: absolute;
        top: 12px;
        right: 12px;
        margin: 0;
    }

    .quiz__consultant {
        width: 320px;
    }

    .consultant-card {
        padding: 24px;
    }

    .discount-circle {
        width: 120px;
        height: 120px;
    }

    .discount-percent {
        font-size: 28px;
    }
}

/* ============================================
   ДЕСКТОПНАЯ ВЕРСИЯ
   ============================================ */
@media (min-width: 1024px) {
    .quiz {
        padding: 60px 0;
    }

    .quiz__container {
        padding: 0 20px;
    }

    .quiz__wrapper {
        gap: 40px;
        padding: 30px 40px;
        border-radius: 30px;
    }

    .quiz-question {
        font-size: 28px;
    }

    .quiz-option {
        min-width: 220px;
        padding: 24px 20px;
    }

    .option-icon {
        width: 90px;
        height: 90px;
    }

    .option-text {
        font-size: 16px;
    }

    .quiz-nav-btn {
        width: 48px;
        height: 48px;
    }

    .quiz-counter {
        font-size: 20px;
        min-width: 75px;
    }

    .consultant-card {
        padding: 32px 28px;
    }

    .consultant-avatar {
        width: 60px;
        height: 60px;
    }

    .consultant-name h4 {
        font-size: 20px;
    }

    .discount-circle {
        width: 130px;
        height: 130px;
        margin-bottom: 20px;
    }

    .discount-percent {
        font-size: 32px;
    }

    .quiz-submit-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* ============================================
   БОЛЬШИЕ ЭКРАНЫ
   ============================================ */
@media (min-width: 1440px) {
    .quiz-question {
        font-size: 32px;
    }

    .quiz-option {
        min-width: 260px;
        padding: 28px 24px;
    }

    .option-icon {
        width: 110px;
        height: 110px;
    }

    .option-text {
        font-size: 18px;
    }

    .quiz__consultant {
        width: 360px;
    }
}

/* ============================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ============================================ */
@media (max-width: 480px) {
    .quiz__wrapper {
        padding: 16px;
        border-radius: 20px;
    }

    .quiz-question {
        font-size: 18px;
    }

    .quiz-nav-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .quiz-counter {
        font-size: 16px;
        min-width: 55px;
    }

    .quiz-option {
        padding: 12px 14px;
        gap: 12px;
    }

    .option-icon {
        width: 40px;
        height: 40px;
    }

    .option-text {
        font-size: 13px;
    }

    .option-check {
        width: 24px;
        height: 24px;
    }

    .option-check svg {
        width: 12px;
        height: 12px;
    }

    .consultant-card {
        padding: 16px;
    }

    .consultant-avatar {
        width: 48px;
        height: 48px;
    }

    .consultant-name h4 {
        font-size: 16px;
    }

    .consultant-name p {
        font-size: 12px;
    }

    .consultant-description p {
        font-size: 11px;
    }

    .discount-circle {
        width: 90px;
        height: 90px;
    }

    .discount-percent {
        font-size: 22px;
    }

    .discount-label {
        font-size: 9px;
    }

    .quiz-submit-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-slide.active .quiz-question {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.quiz-slide.active .quiz-option {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.quiz-slide.active .quiz-option:nth-child(1) { animation-delay: 0.05s; }
.quiz-slide.active .quiz-option:nth-child(2) { animation-delay: 0.1s; }
.quiz-slide.active .quiz-option:nth-child(3) { animation-delay: 0.15s; }

.quiz-progress {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

.consultant-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    animation-delay: 0.25s;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal__container {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 24px;
    z-index: 1;
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.modal__close:hover {
    color: #282624;
}

.modal__title {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #282624;
    margin: 0 0 8px 0;
}

.modal__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #605C58;
    margin: 0 0 24px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #282624;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #F3BF82;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
    background: #F3BF82;
    border-color: #F3BF82;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #282624;
    font-size: 12px;
}

.checkbox-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #605C58;
}

.checkbox-text a {
    color: #F3BF82;
    text-decoration: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #F3BF82;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #282624;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 191, 130, 0.3);
}

.modal__footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
    text-align: center;
}

.modal__note {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: #605C58;
    margin: 0 0 12px 0;
}

.modal__contacts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.modal__phone {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #282624;
    text-decoration: none;
}

.modal__messengers {
    display: flex;
    gap: 12px;
}

.messenger-link img {
    width: 28px;
    height: 28px;
}

.error-message {
    font-size: 11px;
    color: #e74c3c;
    margin-top: 4px;
    display: block;
}

.alert-hidden {
    display: none;
}

/* ============================================
   УВЕДОМЛЕНИЯ
   ============================================ */
.quiz-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.quiz-notification.show {
    transform: translateX(0);
}

.quiz-notification__content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 250px;
}

.quiz-notification.success .quiz-notification__content {
    border-left: 4px solid #27ae60;
}

.quiz-notification.error .quiz-notification__content {
    border-left: 4px solid #e74c3c;
}

.quiz-notification__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}

.quiz-notification.success .quiz-notification__icon {
    background: #27ae60;
    color: #FFFFFF;
}

.quiz-notification.error .quiz-notification__icon {
    background: #e74c3c;
    color: #FFFFFF;
}

.quiz-notification__message {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #282624;
}

@media (max-width: 480px) {
    .quiz-notification__content {
        padding: 10px 16px;
        min-width: 220px;
    }

    .quiz-notification__message {
        font-size: 12px;
    }
}
