/* Стили для квиза Quiz Recommender */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.quiz-step {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.quiz-step p {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.quiz-question-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}

.quiz-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.quiz-option {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.quiz-option label {
    display: block;
    cursor: pointer;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quiz-option input[type="radio"] {
    display: none;
}

.quiz-option:hover label {
    background: #f0f0f0;
}

.quiz-option input[type="radio"]:checked + label {
    border-color: #007cba;
    background: #e6f3ff;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

#quiz-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

#quiz-form.loading .button {
    cursor: not-allowed;
}

.button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: #007cba;
    color: white;
}

.button-primary:hover {
    background: #005a87;
}

.button-secondary {
    background: #6c757d;
    color: white;
}

.button-secondary:hover {
    background: #545b62;
}

.email-input-container {
    margin: 20px 0;
}

.email-input-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.email-input-container input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Стили для результатов */
.recommended-products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recommended-product {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    background: white;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.recommended-product:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recommended-product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

.add-all-to-cart {
    margin-bottom: 20px;
    text-align: center;
}

.step-indicator {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-step {
    animation: fadeIn 0.5s ease-out;
}
