/* ===========================================
   СТИЛИ ФОРМ ДЛЯ ЛЕНДИНГА - ОПТИМИЗИРОВАНО ДЛЯ ПОЖИЛЫХ
   =========================================== */

/* Контейнер формы */
.lead-form-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin: 40px 0;
    border-radius: 20px;
    text-align: center;
}

.lead-form-container.green-theme {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.lead-form-container h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.lead-form-container .form-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Карточка формы */
.lead-form {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Группа полей */
.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* Поля ввода */
.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 18px 20px;
    font-size: 20px;
    border: 3px solid #e0e0e0;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus {
    outline: none;
    border-color: #43A047;
    box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.2);
}

.form-group input[type="text"]::placeholder,
.form-group input[type="tel"]::placeholder {
    color: #aaa;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #43A047 0%, #2E7D32 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(67, 160, 71, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Анимация пульсации кнопки */
.submit-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(67, 160, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 160, 71, 0); }
}

/* Примечание под формой */
.form-note {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 20px;
}

/* Сообщения об ошибках */
.error-message {
    background: rgba(230, 57, 70, 0.15);
    border: 2px solid #e63946;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #c0392b;
    display: none;
    text-align: center;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Ошибки под полями */
.field-error {
    color: #e63946;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

/* ===========================================
   СТИЛИ КОММЕНТАРИЕВ
   =========================================== */

.comments {
    background: #f5f5f5;
    padding: 30px 20px;
    margin: 40px 0;
    border-radius: 15px;
}

.comments__header {
    margin-bottom: 20px;
}

.comments__title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.comments__item-list {
    max-width: 800px;
    margin: 0 auto;
}

.comments__item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.comments__item-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comments__item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.comments__item-info {
    flex: 1;
}

.comments__item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.comments__item-data {
    font-size: 13px;
    color: #888;
    margin: 3px 0 0 0;
}

.comments__item-body {
    margin-bottom: 10px;
}

.comments__item-content {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.comments__item-img {
    max-width: 50%;
    border-radius: 8px;
    margin-top: 10px;
}

.comments__item-footer {
    text-align: right;
}

.comments__item-replay {
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
}

.comments__item-replay:hover {
    text-decoration: underline;
}

/* Динамический город */
.city-name,
.geo_city_2 {
    font-weight: 600;
    color: #667eea;
}

/* ===========================================
   АДАПТИВНОСТЬ
   =========================================== */

@media (max-width: 600px) {
    .lead-form-container {
        padding: 30px 15px;
        margin: 30px 10px;
    }

    .lead-form-container h3 {
        font-size: 24px;
    }

    .lead-form {
        padding: 30px 20px;
    }

    .form-group label {
        font-size: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"] {
        padding: 15px;
        font-size: 18px;
    }

    .submit-btn {
        padding: 18px;
        font-size: 20px;
    }

    .comments {
        padding: 20px 15px;
        margin: 30px 10px;
    }

    .comments__item {
        padding: 15px;
    }

    .comments__item-avatar {
        width: 40px;
        height: 40px;
    }
}

