/* ФІНАЛЬНИЙ ІЗОЛЬОВАНИЙ CSS (V15 - ВИПРАВЛЕННЯ ВІДСТУПІВ КНОПКИ НА МОБІЛЬНОМУ) */

/* === АГРЕСИВНИЙ СКИД ВИСОТИ ВНУТРІШНІХ ЕЛЕМЕНТІВ === */
.custom-block-container h2,
.custom-block-container p,
.custom-block-container ul,
.custom-block-container li,
.custom-block-container label {
    font-family: Arial, sans-serif;
    font-size: 16px;
    margin: 0 !important;
    padding: 0 !important;
    font-weight: normal;
    line-height: 1.2 !important;
}

/* Скид для списку і під ним */
.custom-block-container .left-section ul,
.custom-block-container .left-section p:last-child {
    margin-bottom: 0 !important;
}
/* ================================== */

/* *** КОМПЕНСАЦІЯ ЗОВНІШНЬОГО ВІДСТУПУ TILDA *** */
/* Скидання вертикальних відступів навколо ВСЬОГО Tilda-блоку */
.t-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ----------------------------------------------- */

/* СТИЛІ КОНТЕЙНЕРА (ваш блок) */
.custom-block-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;

    /* ВІДНОВЛЕННЯ ФОНУ ТА МІНІМАЛЬНИЙ ВНУТРІШНІЙ ВІДСТУП */
    background-color: #f7f7f7;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


/* === СПІВВІДНОШЕННЯ 60/40 === */
.custom-block-container .left-section {
    flex: 0 0 60%;
    padding-right: 40px;
}

.custom-block-container .right-section {
    flex: 0 0 40%;
    background-color: #fff;
    padding: 10px; /* Базовий відступ для десктопа */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* ======================== */

/* --- СТИЛІ ЛІВОЇ СЕКЦІЇ (ТЕКСТ) --- */
.custom-block-container .main-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px !important;
    line-height: 1.3;
}

.custom-block-container .step-list {
    list-style: none;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.custom-block-container .step-list li {
    margin-bottom: 8px !important;
    padding-left: 0 !important;
    position: relative;
    font-size: 18px;
    line-height: 1.2 !important;
}

/* УДАЛЕНИЕ ИКОНКИ (✓) */
.custom-block-container .step-list li::before {
    content: none !important;
}

.custom-block-container .step-title {
    font-weight: bold;
    color: #007bff;
    display: block;
    margin-bottom: 3px;
}

/* --- СТИЛІ ПРАВОЇ СЕКЦІЇ (ФОРМА) --- */
.custom-block-container .form-title {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px !important;
    text-align: center;
}

.custom-block-container .input-group {
    margin-bottom: 8px;
}

.custom-block-container .input-group label {
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    color: #555;
}

.custom-block-container .input-group input[type="text"],
.custom-block-container .input-group input[type="tel"],
.custom-block-container .input-group textarea {
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.custom-block-container .input-group textarea {
    resize: vertical;
    min-height: 50px;
}

/* Кнопка відправки */
.custom-block-container .submit-button {
    width: auto;
    display: block;
    margin: 8px auto;
    padding: 8px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* === СЕКЦИЯ КОНТАКТОВ === */
.custom-block-container .contact-methods {
    margin-top: 5px !important;
    padding-top: 5px !important;
    border-top: none;
    text-align: center;
}

.custom-block-container .contact-methods p {
    margin-bottom: 8px !important; 
    color: #777;
}

/* Контейнер для социальных ссылок (ГОРИЗОНТАЛЬНОЕ РАСПОЛОЖЕНИЕ) */
.custom-block-container .social-links {
    display: flex;
    flex-direction: row; 
    justify-content: center; 
    gap: 20px; 
    margin: 0 auto 10px;
    width: fit-content;
}

/* Стиль для каждой отдельной ссылки (кнопки) */
.custom-block-container .social-link {
    display: flex;
    align-items: center; 
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0; 
    border-radius: 5px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.custom-block-container .social-link:hover {
    opacity: 0.8;
}

/* Стиль для иконки (изображения) */
.custom-block-container .social-icon {
    width: 24px; 
    height: 24px;
    margin-right: 8px; 
    object-fit: contain;
    vertical-align: middle;
}

/* Стиль для текста рядом с иконкой */
.custom-block-container .social-text {
    font-size: 18px;
    color: #007bff;
}

.custom-block-container .phone-link {
    display: block;
    margin-top: 5px;
    margin-bottom: 0 !important;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.custom-block-container .phone-link:hover {
    color: #007bff;
}
/* ================================== */

/* Медіа-запити для адаптивності */
@media (max-width: 768px) {
    /* На мобільних повертаємо відступи Tilda, щоб уникнути обрізки */
    .t-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .custom-block-container .left-section,
    .custom-block-container .right-section {
        flex: 0 0 100%;
        padding-right: 0;
    }
    
    /* ВИПРАВЛЕННЯ: Додаємо горизонтальні відступи до форми на мобільних */
    .custom-block-container .right-section {
        flex: 0 0 100%;
        /* Вирівнюємо відступ, щоб кнопка, поля та контакти не прилипали до країв форми */
        padding-left: 15px !important; 
        padding-right: 15px !important;
    }

    .custom-block-container {
        flex-direction: column;
        padding: 10px 15px;
    }
}