/* =========================================
   1. CONTAINER & LAYOUT
   ========================================= */
.custom-connect-wrapper {
    background: #fff;
    width: 100%;
}

.connect-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, 1fr);
    /* Grid vẫn cần stretch để định khung */
    align-items: stretch;
    position: relative;
}

/* Các class tiện ích */
.mb-0 { margin-bottom: 0 !important; }

/* =========================================
   2. CỘT TRÁI: FORM (Quyết định chiều cao)
   ========================================= */
.connect-content {
    width: 100%;
    padding-block: 20px 0;
    /* Đây là cột quyết định chiều cao. Form dài ra thì cột bên kia mới dài theo */
    height: fit-content; 
}

.connect-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0 !important;
}

.connect-form .span-full { grid-column: 1 / -1; }

.connect-form label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

/* =========================================
   3. STYLE INPUT (Highlight & Border)
   ========================================= */
.custom-connect-wrapper .connect-form input,
.custom-connect-wrapper .connect-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    background-color: #fff !important; 
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
    -webkit-appearance: none;
    transition: all 0.3s ease;
    height: 45px;
}

.custom-connect-wrapper .connect-form textarea { height: auto; }

/* Focus Effect */
.custom-connect-wrapper .connect-form input:focus,
.custom-connect-wrapper .connect-form textarea:focus {
    border-color: #379237 !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #379237 !important; 
}

/* =========================================
   4. BUTTON STYLE
   ========================================= */
.connect-btn {
    background: #28a745; /* Màu xanh lá như trong hình mẫu của bạn */
    color: #fff;
    border: none;
    padding: 14px 0;
    width: 100%;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
    margin-top: 1rem;
    height: 45px;
}

.connect-btn:hover {
    background: #218838;
}

/* =========================================
   5. CỘT PHẢI: BANNER (FIX CỨNG CHIỀU CAO)
   ========================================= */
/* KHU VỰC SỬA LỖI: Dùng Absolute để ép ảnh */
.connect-banner {
    position: relative; /* Để làm mốc cho ảnh con */
    width: 100%;
    height: auto; /* Chiều cao phụ thuộc vào cột bên cạnh */
    min-height: 100%; /* Bắt buộc cao hết khung grid */
}

/* Chúng ta target sâu vào mọi lớp bao quanh ảnh */
.connect-banner .custom-single-banner,
.connect-banner div, 
.connect-banner img {
    position: absolute !important; /* Tuyệt chiêu: Ép ảnh tách khỏi dòng chảy văn bản */
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Cắt ảnh để vừa khung */
    border-radius: 4px;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================
   6. RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 768px) {
    .connect-container {
        grid-template-columns: 1fr;
    }
    
    .connect-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Trên mobile phải bỏ Absolute để ảnh hiện ra bình thường */
    .connect-banner {
        height: 100%;
        min-height: 300px;
        display: block;
    }
    
    .connect-banner .custom-single-banner,
    .connect-banner div,
    .connect-banner img {
        position: relative !important; /* Trả lại vị trí bình thường trên mobile */
        height: 100% !important;
    }
}