/**
 * HARD DATA FORM - Стили для формы сбора биометрических данных
 * 
 * Форма для сбора hard-data перед regular чекапом
 */

/* Контейнер формы */
#hard-data-section {
    margin-top: 20px;
}

.hard-data-form {
    max-width: 600px;
    margin: 0 auto;
}

.hard-data-form h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.hard-data-form .form-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

/* Группы полей */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group .form-hint {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
    margin-top: -5px;
}

.form-group .form-hint.optional {
    color: #999;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.radio-option:hover {
    border-color: #4CAF50;
    background-color: #f1f8f4;
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #4CAF50;
}

.radio-option.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.radio-option span {
    color: #333;
    font-size: 15px;
}

/* Number inputs */
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input[type="number"]:invalid {
    border-color: #f44336;
}

/* Select dropdown */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Textarea */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

/* Checkbox group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.checkbox-option:hover {
    border-color: #4CAF50;
    background-color: #f1f8f4;
}

.checkbox-option input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #4CAF50;
}

.checkbox-option.selected {
    border-color: #4CAF50;
    background-color: #e8f5e9;
}

.checkbox-option span {
    color: #333;
    font-size: 15px;
}

/* Условные поля */
.conditional-field {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

/* Блок ИМТ */
.bmi-display {
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid;
}

.bmi-display.hidden {
    display: none;
}

.bmi-display.underweight {
    background-color: #e3f2fd;
    border-color: #2196F3;
    color: #1565C0;
}

.bmi-display.normal {
    background-color: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
}

.bmi-display.overweight {
    background-color: #fff3e0;
    border-color: #ff9800;
    color: #e65100;
}

.bmi-display.obese {
    background-color: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.bmi-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.bmi-category {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bmi-interpretation {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Давление - два поля рядом */
.blood-pressure-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.blood-pressure-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

.blood-pressure-separator {
    font-size: 20px;
    font-weight: bold;
    color: #666;
    padding-bottom: 12px;
}

/* Кнопка отправки */
.hard-data-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.hard-data-actions .btn {
    padding: 12px 24px;
    font-size: 16px;
}

/* Ошибки валидации */
.form-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #f44336;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .hard-data-form {
        padding: 0 10px;
    }

    .hard-data-form h2 {
        font-size: 24px;
    }

    .form-group label {
        font-size: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .radio-option {
        width: 100%;
    }

    .blood-pressure-group {
        flex-direction: column;
        gap: 15px;
    }

    .blood-pressure-separator {
        display: none;
    }

    .hard-data-actions {
        flex-direction: column;
    }

    .hard-data-actions .btn {
        width: 100%;
    }

    .bmi-value {
        font-size: 28px;
    }

    .bmi-category {
        font-size: 16px;
    }
}
