/* Основные стили */
:root {
    --primary-color: #0057FF;
    --primary-dark: #0046CC;
    --primary-rgb: 0, 87, 255;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --text-color: #111827;
    --error-color: #dc2626;
}

/* Основной контейнер квиза */
.quiz-main {
    min-height: 100vh;
    padding: 120px 20px 40px; /* Увеличиваем верхний отступ для хедера */
    background-color: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-container {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
}

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

.progress-bar {
    height: 10px;
    background: var(--gray-100);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 2px solid var(--gray-200);
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 16px;
    font-weight: 500;
}

.current-step {
    color: var(--primary-color);
    font-weight: 600;
}

/* Заголовки и описания */
.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
}

.quiz-header p {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
}

.step-description {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка опций */
.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 30px 0;
}

/* Карточки опций */
.option-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.option-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.1);
}

.option-card.selected {
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.05);
}

.option-card.selected::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Иконки */
.option-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    fill: var(--primary-color);
    flex-shrink: 0;
}

.option-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px;
}

.option-card p {
    font-size: 16px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Карточки срочности */
.urgency-card {
    text-align: center;
}

.urgency-card .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 16px 0 8px;
}

/* Примеры требований */
.requirements-examples {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 2px solid var(--gray-200);
}

.requirements-examples h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-color);
}

.requirements-examples ul {
    margin: 0;
    padding-left: 24px;
}

.requirements-examples li {
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.requirements-examples li:last-child {
    margin-bottom: 0;
}

/* Формы */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
}

/* Чекбокс */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
}

/* Счетчик символов */
.char-counter {
    text-align: right;
    font-size: 14px;
    color: var(--gray-600);
    margin-top: 8px;
}

/* Кнопки навигации */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.btn-back,
.btn-next {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-back {
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--gray-300);
}

.btn-back:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-next:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* Анимации */
.quiz-step {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* Адаптивность */
@media (max-width: 992px) {
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .quiz-container {
        padding: 30px 20px;
    }
    
    .step-header h2 {
        font-size: 24px;
    }
    
    .option-card {
        padding: 24px 20px;
    }
    
    .option-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-navigation {
        flex-direction: column;
    }
    
    .btn-back,
    .btn-next {
        width: 100%;
    }
    
    .quiz-container {
        padding: 20px 16px;
    }
}
