/* ===================================================================== */
/* CSS FOOTER (4 CỘT - KHÔI PHỤC FULL ICON & MOBILE CHUẨN)               */
/* ===================================================================== */
.footer {
    background-color: #1a633a; 
    color: #ffffff; 
    padding-top: 50px;
    font-family: 'Roboto', Arial, sans-serif;
    margin-top: 50px;
    overflow-x: hidden; /* Chống lỗi tràn viền ngang */
}

.footer-grid {
    display: grid;
    /* Giữ nguyên tỷ lệ: Bản đồ rộng nhất (1.7), Các cột khác thu hẹp lại */
    grid-template-columns: 1.3fr 1.7fr 0.9fr 0.9fr; 
    gap: 30px;
    padding-bottom: 40px; 
}

.footer-col h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* --- CỘT 1: THÔNG TIN CÔNG TY (TRỊ DỨT ĐIỂM MẤT ICON) --- */
.company-name {
    font-size: 1.2rem !important;
    font-weight: 700;
    margin-bottom: 15px;
    color: #f8f9fa;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e2e8f0;
}

/* ÉP SÁNG MÀU ICON LIÊN HỆ ĐỂ KHÔNG BỊ MẤT TÍCH */
.contact-list li i {
    color: #6c9c3e !important; /* Xanh lá mạ sáng làm điểm nhấn */
    margin-top: 3px;
    font-size: 15px;
    min-width: 18px;
    display: inline-block !important; /* Đảm bảo icon luôn hiện */
}

/* --- CỘT 2: BẢN ĐỒ --- */
.map-container {
    width: 100%;
    height: 180px; 
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
}

/* --- CỘT 3: LIÊN KẾT NHANH --- */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px; 
}

/* --- CỘT 4: MẠNG XÃ HỘI (TRỊ DỨT ĐIỂM MẤT ICON VÀ SAI MÀU) --- */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    
    /* ÉP BUỘC ĐỔI SANG MÀU XANH NÚT TÌM KIẾM THEO Ý BẠN */
    background-color: #6c9c3e !important; 
    
    color: white !important; /* Icon màu trắng */
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s, opacity 0.2s;
    display: flex !important; /* Đảm bảo icon luôn hiện */
}

.social-icons a:hover {
    transform: translateY(-4px);
    opacity: 0.8;
}
.social-icons a i {
    /* Ép trình duyệt phải dùng FontAwesome để vẽ logo, không được dùng font chữ thường */
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 400 !important;
}

/* --- BOTTOM BAR --- */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2); 
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #cbd5e1;
}

/* ===================================================================== */
/* RESPONSIVE MOBILE                                                     */
/* ===================================================================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr; /* 1 cột trên Mobile */
        gap: 40px;
        padding-bottom: 20px;
    }
    
    .map-container {
        height: 220px;
        max-width: 100%;
    }

    .bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===================================================================== */
/* CSS CHO CỤM NÚT LIÊN HỆ BAY LƠ LỬNG (GÓC MÀN HÌNH)                     */
/* ===================================================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 25px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
}

.float-btn:hover {
    transform: scale(1.1);
    color: white;
}

.phone-btn {
    background-color: #ff3b30;
    font-size: 22px;
    animation: pulse-ring 1.5s infinite;
}

.zalo-btn {
    background-color: #0068ff;
}

.btt-btn {
    background-color: #1a633a; /* Đồng bộ màu xanh Meditech */
    font-size: 20px;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}