/* Основной контейнер */
.clf-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 30px 0;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Левая колонка - Форма */
.clf-form-container {
    flex: 1 1 300px;
    align-self: end;
}

.clf-form-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

/* Сетка полей */
.clf-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 колонки */
    gap: 15px;
    margin-bottom: 20px;
}

.clf-field {
    display: flex;
    flex-direction: column;
}

/* Поля на всю ширину */
.clf-full-width {
    grid-column: 1 / -1;
}

.clf-field label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.clf-field input[type="text"],
.clf-field input[type="tel"],
.clf-field select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

.clf-field input:focus,
.clf-field select:focus {
    border-color: #007bff;
    outline: none;
    background: #fff;
}

.clf-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Чекбокс согласия */
.clf-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.clf-checkbox-label input {
    margin-top: 3px;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.clf-text a {
    color: #007bff;
    text-decoration: underline;
}

/* Кнопка отправки */
.clf-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff7000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    text-align: center;
}

.clf-submit-btn:hover {
    background-color: #f0f8ff;
    color: #000;
}

.clf-submit-btn:disabled {
    background-color: #ff7000;
    cursor: not-allowed;
    opacity: 0.7;
}

.clf-response-msg {
    margin-top: 5px;
    text-align: center;
    font-weight: 600;
}
.clf-response-msg.success { color: green; }
.clf-response-msg.error { color: red; }

/* Правая колонка - Инфо */
.clf-info-container {
    flex: 1 1 300px;
    background: #f0f8ff; /* Легкий голубой фон */
    padding: 25px;
    margin-bottom: 5px;
    border-radius: 10px;
    align-self: end;
}

.clf-info-text h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    color: #2c3e50;
}

.clf-info-text p {
    color: #555;
    line-height: 1.6;
}

/* Шаги (Steps) */
.clf-steps {
    margin-top: 20px;
}

.clf-step {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.clf-step-num {
    background: #007bff;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 0;
}

.clf-step-text {
    font-size: 15px;
    color: #444;
}



/* Стили для шаблона консультации */
.clf-consultation-info .lead-form-text h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #1a2b4c;
}

.lf-benefits {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.lf-benefits li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
}

/* Фоллбэк-галочка, если нет FontAwesome */
.lf-benefits i.fas.fa-check::before {
    content: "✓";
    font-style: normal;
    font-weight: 900;
    color: #28a745;
    margin-right: 10px;
    font-size: 16px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .clf-wrapper {
        flex-direction: column-reverse;
        padding: 15px;
    }
    
    .clf-fields-grid {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
    }

    .clf-info-container {
        order: 1; /* Инфо под формой на мобильных, если нужно. Сейчас форма первая в DOM, так что инфо будет под ней автоматически при flex-direction: column */
    }
}