/* Стили для страницы готовых документов */
.quiz-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

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

.quiz-header h1 {
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.quiz-header p {
    font-size: 18px;
    color: #666;
}

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

.progress-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background-color: #2563eb;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
}

.step {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 14px;
    position: relative;
    padding-top: 20px;
}

.step::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 50%;
}

.step.active {
    color: #2563eb;
}

.step.active::before {
    background-color: #2563eb;
}

/* Стили для шагов квиза */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-step h2 {
    margin-bottom: 24px;
    color: #1f2937;
    font-size: 24px;
}

/* Стили для сетки опций */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.option {
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.option:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.option.selected {
    border-color: #2563eb;
    background-color: #f0f7ff;
}

/* Форма заказа */
.order-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 16px;
}

/* Стили для радио-кнопок */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-option label {
    display: block;
    padding: 16px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option label:hover {
    border-color: #2563eb;
    background-color: #f0f7ff;
}

.radio-option input[type="radio"]:checked + label {
    border-color: #2563eb;
    background-color: #f0f7ff;
}

/* Стили для блока цены */
.price-block {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
}

.document-price {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
    margin: 10px 0;
}

.urgency-options {
    margin: 20px 0;
}

.urgency-options .radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.urgency-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.urgency-options input[type="radio"] {
    width: 18px;
    height: 18px;
}

.order-details {
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.selected-document {
    margin-bottom: 20px;
}

.document-name {
    font-size: 18px;
    color: #1f2937;
    margin: 8px 0;
}

.price {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

/* Стили для навигации */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 120px;
}

.btn-prev {
    background-color: #e5e7eb;
    color: #4b5563;
}

.btn-prev:hover {
    background-color: #d1d5db;
}

.btn-next {
    background-color: #2563eb;
    color: #fff;
}

.btn-next:hover {
    background-color: #1d4ed8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .quiz-container {
        padding: 20px;
        margin: 20px;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .option {
        min-height: 100px;
    }

    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }
}
