
.quiz-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.quiz-wrapper {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Продолжение CSS */

/* Прогресс бар */
.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgb(198, 164, 126) 0%, #b89a70 100%);
    border-radius: 10px;
    width: 20%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-indicator {
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #999;
    transition: all 0.3s;
    position: relative;
}

.step-indicator.active {
    background: rgb(198, 164, 126);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(198, 164, 126, 0.4);
}

.step-indicator.completed {
    background: #4caf50;
    color: white;
}

.step-indicator.completed::after {
    content: '✓';
    position: absolute;
    font-size: 18px;
}

/* Заголовки */
.quiz-title {
    text-align: center;
    color: #333;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.4;
}

.slide-title {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
}

.slide-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Слайды */
.quiz-slides {
    min-height: 400px;
    position: relative;
    margin-bottom: 30px;
}

.quiz-slide {
    display: none;
    animation: slideIn 0.5s ease;
}

.quiz-slide.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Опции с картинками */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.option-card {
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(198, 164, 126, 0.3);
}

.option-card.selected {
    border: 3px solid rgb(198, 164, 126);
    transform: scale(1.05);
}

.option-image {
    height: 180px;
    overflow: hidden;
}

.option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.option-card:hover .option-image img {
    transform: scale(1.1);
}

.option-label {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* Кнопки опций */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.option-button {
    padding: 20px 25px;
    background: #f8f8f8;
    border: 2px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.option-button:hover {
    background: rgb(198, 164, 126);
    color: white;
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(198, 164, 126, 0.3);
}

.option-button.selected {
    background: rgb(198, 164, 126);
    color: white;
    border-color: rgb(198, 164, 126);
}

.option-icon {
    font-size: 24px;
}

.option-number {
    width: 30px;
    height: 30px;
    background: rgba(198, 164, 126, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: rgb(198, 164, 126);
}

.option-button:hover .option-number,
.option-button.selected .option-number {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Кастомный ввод */
.custom-input-wrapper {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

.custom-input:focus {
    outline: none;
    border-color: rgb(198, 164, 126);
    box-shadow: 0 0 0 3px rgba(198, 164, 126, 0.1);
}

.custom-submit {
    padding: 15px 30px;
    background: rgb(198, 164, 126);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-submit:hover {
    background: #b89a70;
    transform: translateY(-2px);
}

/* Форма */
.quiz-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-field {
    position: relative;
    margin-bottom: 20px;
}

.form-field input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.form-field input:focus {
    outline: none;
    border-color: rgb(198, 164, 126);
    box-shadow: 0 0 0 3px rgba(198, 164, 126, 0.1);
}

.field-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.5;
}

.form-checkbox {
    margin: 25px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: rgb(198, 164, 126);
    text-decoration: none;
    border-bottom: 1px dotted rgb(198, 164, 126);
}

.form-checkbox label a:hover {
    border-bottom-style: solid;
}

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgb(198, 164, 126) 0%, #b89a70 100%);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(198, 164, 126, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(198, 164, 126, 0.4);
}

/* Навигация */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8e8e8;
}

.nav-btn {
    padding: 12px 25px;
    background: transparent;
    border: 2px solid #e8e8e8;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-btn:hover:not(:disabled) {
    background: rgb(198, 164, 126);
    border-color: rgb(198, 164, 126);
    color: white;
    transform: translateX(0);
}

.prev-btn:hover:not(:disabled) {
    transform: translateX(-5px);
}

.next-btn:hover:not(:disabled) {
    transform: translateX(5px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-wrapper {
        padding: 30px 20px;
    }

    .quiz-title {
        font-size: 24px;
    }

    .slide-title {
        font-size: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-image {
        height: 150px;
    }

    .quiz-navigation {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .quiz-section {
        padding: 40px 0;
    }

    .quiz-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .slide-title {
        font-size: 18px;
    }

    .option-button {
        padding: 15px 20px;
        font-size: 14px;
    }

    .progress-steps {
        gap: 5px;
    }

    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Дополнительные стили для сообщения об успехе */
.success-message {
    text-align: center;
    padding: 60px 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    margin: 0 auto 30px;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.success-message h3 {
    color: #333;
    font-size: 28px;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}