/* survey.css - Светлая тема */

/* Общие стили для страницы survey */
body.survey-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Контейнер для кнопки назад */
.back-button-container {
    max-width: 800px;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

/* Кнопка возврата на главную */
.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.back-button svg {
    width: 20px;
    height: 20px;
}

/* Основная форма */
#survey_form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    color: #2d3748;
}

/* Стили для заголовков */
#survey_form h2 {
    color: #2d3748;
    font-size: 1.8rem;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

#survey_form h2:first-child {
    margin-top: 0;
}

#survey_form h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Описание услуги */
.service-description {
    margin: 0 0 25px 0;
    color: #718096;
    line-height: 1.5;
    font-size: 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    padding: 15px 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

/* Секция опций */
.options-section {
    margin-bottom: 30px;
}

.options-section h3 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Группа опций */
.option-group {
    margin-bottom: 30px;
}

.group-title {
    margin: 0 0 15px 0;
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 20px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Карточка опции */
.option-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 0 0 15px 0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.option-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.option-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Лейбл опции */
.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    position: relative;
}

.option-number {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #667eea;
    font-weight: 700;
    min-width: 30px;
}

.option-title {
    flex: 1;
    margin-right: 10px;
    line-height: 1.4;
    color: #2d3748;
}

.option-price {
    color: #48bb78;
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    background: rgba(72, 187, 120, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Описание опции */
.option-description {
    margin: 15px 0 10px 0;
    padding: 12px 15px;
    background: white;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

/* Особенности опции */
.option-features {
    margin: 15px 0 10px 0;
}

.feature-header {
    margin: 10px 0 5px 0;
    font-weight: bold;
    color: #667eea;
    font-size: 1rem;
}

.feature-item {
    display: flex;
    margin-bottom: 6px;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #4a5568;
}

.feature-bullet {
    margin-right: 10px;
    color: #667eea;
    min-width: 10px;
    flex-shrink: 0;
    font-weight: bold;
}

.feature-text {
    flex: 1;
}

/* План опции */
.option-plan {
    margin: 15px 0 10px 0;
    padding: 15px;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.option-plan strong {
    display: block;
    margin-bottom: 8px;
    color: #667eea;
}

.plan-item {
    margin-bottom: 4px;
    padding-left: 8px;
}

/* Ссылки опции */
.option-link, .footer-link {
    margin-top: 15px;
    text-align: center;
}

.option-link a, .footer-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border: 2px solid #667eea;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background: rgba(102, 126, 234, 0.1);
}

.option-link a:hover, .footer-link a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Секция свободной формы */
.free-form-section {
    margin: 30px 0 20px 0;
    padding: 25px;
    background: #f8fafc;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.free-form-header {
    color: #2d3748;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.standard-note {
    margin-top: 10px;
    color: #718096;
    font-size: 0.9rem;
    font-style: italic;
}

.additional-notes {
    margin-top: 10px;
}

.note-item {
    margin-top: 8px;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.4;
    font-style: italic;
}

.footer-note {
    text-align: center;
    margin: 25px 0 15px 0;
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Поля ввода */
.entry {
    margin-bottom: 25px;
    position: relative;
}

.entry label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input_container {
    position: relative;
    display: block;
}

.entry input,
.entry textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #2d3748;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.entry input:focus,
.entry textarea:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.entry input[readonly] {
    background: #edf2f7;
    color: #4a5568;
    cursor: not-allowed;
}

.entry textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

/* Кнопки */
.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 30px auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.button:active {
    transform: translateY(-1px);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.submit-button {
    margin: 30px auto 10px auto;
}

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

    #survey_form {
        padding: 15px;
        border-radius: 15px;
    }

    #survey_form h2 {
        font-size: 1.5rem;
    }

    .option-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .option-price {
        align-self: flex-start;
    }

    .option-card {
        padding: 15px;
    }

    .free-form-section {
        padding: 20px;
    }

    .group-title {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .button {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .back-button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .survey-page {
        padding: 10px;
    }

    .back-button-container {
        margin-bottom: 15px;
    }

    .option-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .option-price {
        margin-top: 5px;
        align-self: flex-start;
    }

    .option-card {
        padding: 12px;
    }

    .service-description {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .free-form-section {
        padding: 15px;
    }

    .entry label {
        font-size: 0.9rem;
    }

    .entry input,
    .entry textarea {
        padding: 12px;
        font-size: 0.95rem;
    }

    .button {
        padding: 12px 20px;
        font-size: 0.9rem;
        max-width: 200px;
    }

    .back-button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}