/* ========================================================
   1. CẤU HÌNH NÚT BẤM (ÁP DỤNG CHUNG CHO TẤT CẢ THIẾT BỊ)
======================================================== */

/* Khung chứa 2 nút: Đặt nằm ngang cùng 1 hàng & Căn giữa */
.vt-cta-row .vt-cta-text-col .col-inner {
    text-align: center !important; /* Căn giữa văn bản & khối nút */
}

/* Đưa các nút bấm vào cùng 1 hàng Flexbox */
.vt-cta-row .vt-cta-text-col a.button,
.vt-cta-row .vt-cta-text-col .button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 6px 8px !important; /* Khoảng cách giữa 2 nút */
    padding: 12px 24px !important; /* Độ to bản đẹp mắt */
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 8px !important; /* Bo tròn 4 góc */
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.2s ease !important; /* Hiệu ứng rê chuột mượt hơn */
    vertical-align: middle !important;
}

/* --- NÚT ZALO (.vt-cta-btn-zl) --- */
.vt-cta-row .vt-cta-btn-zl,
.vt-cta-row .vt-cta-btn-zl:hover,
.vt-cta-row .vt-cta-btn-zl:focus,
.vt-cta-row .vt-cta-btn-zl:active {
    background-color: #0068FF !important; /* Màu xanh Zalo chuẩn */
    color: #ffffff !important; /* Màu chữ trắng */
    box-shadow: none !important;
}

/* Chèn Logo Zalo WEBP trong suốt trước chữ */
.vt-cta-row .vt-cta-btn-zl::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    margin-right: 8px !important;
    background-color: transparent !important;
    /* 🔴 THAY LINK FILE WEBP MỚI CỦA BẠN VÀO DÒNG DƯỚI ĐÂY: */
    background-image: url('https://vietteam.vn/wp-content/uploads/2026/09/Zalo-logo.webp') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* --- NÚT ĐIỀN FORM (.vt-cta-btn-form) --- */
.vt-cta-row .vt-cta-btn-form,
.vt-cta-row .vt-cta-btn-form:hover,
.vt-cta-row .vt-cta-btn-form:focus,
.vt-cta-row .vt-cta-btn-form:active {
    background-color: #2d3748 !important; /* Màu đen xám nhẹ */
    color: #ffffff !important; /* Màu chữ trắng */
    box-shadow: none !important;
}

/* Chèn Logo Form Đăng ký SVG màu trắng đơn giản trước chữ */
.vt-cta-row .vt-cta-btn-form::before {
    content: "" !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-right: 8px !important;
    background-color: transparent !important;
    /* Icon Form Đăng Ký SVG màu trắng đơn giản */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}


/* ========================================================
   2. GIAO DIỆN MÁY TÍNH & TABLET (>= 768px)
======================================================== */
@media (min-width: 768px) {
    /* 1. Biến Row thành khung chứa vị trí tương đối + THÊM ĐỔ BÓNG MỊN */
    .vt-cta-row {
        position: relative !important;
        background-color: #ffffff;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        overflow: hidden !important; /* Cắt sạch phần thừa khi Zoom ảnh */
        
        /* 🌟 Hiệu ứng Đổ bóng (Box Shadow) cho cả Khung */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    }

    /* Hiệu ứng nhô nhẹ lên khi di chuột vào Khung (Rất hiện đại) */
    .vt-cta-row:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    }

    /* 2. Cột Chữ: Chiếm 50% chiều rộng, tự do co dãn theo chữ */
    .vt-cta-row .vt-cta-text-col {
        width: 50% !important;
        padding: 40px !important;
        float: left !important;
    }

    /* 3. Cột Ảnh: Ghim chặt 4 góc bên phải, dãn bằng 100% chiều cao Cột Chữ */
    .vt-cta-row .vt-cta-img-col {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 50% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vt-cta-row .vt-cta-img-col .col-inner,
    .vt-cta-row .vt-cta-img-col .vt-img-box {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 4. Thẻ <img>: BẮT BUỘC Zoom In (Cover) phủ kín khung */
    .vt-cta-row .vt-cta-img-col img {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }
}


/* ========================================================
   3. GIAO DIỆN ĐIỆN THOẠI (< 767px)
======================================================== */
@media (max-width: 767px) {
    .vt-cta-row {
        background-color: #ffffff;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #f0f0f0;
        
        /* 🌟 Đổ bóng nhẹ cho Mobile */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
    }

    /* Cột chữ đệm viền gọn gàng */
    .vt-cta-row .vt-cta-text-col {
        padding: 20px !important;
    }

    /* Nút bấm trên mobile: Tự cân đối lề */
    .vt-cta-row .vt-cta-text-col a.button,
    .vt-cta-row .vt-cta-text-col .button {
        margin: 5px 4px !important;
        padding: 10px 18px !important;
        font-size: 14px !important;
    }

    /* Cột ảnh cố định chiều cao 380px trên Mobile */
    .vt-cta-row .vt-cta-img-col {
        height: 380px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .vt-cta-row .vt-cta-img-col .col-inner,
    .vt-cta-row .vt-cta-img-col .vt-img-box {
        width: 100% !important;
        height: 100% !important;
    }

    /* Ảnh trên mobile Zoom In phủ kín khung */
    .vt-cta-row .vt-cta-img-col img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block !important;
    }
}