/* ==========================================================
   FOOTER VIỆT AN QUÂN
   MÀU CHỦ ĐẠO: #2f8f3a
   PHIÊN BẢN NỀN XANH
========================================================== */
:root {
    --xf-green: #2f8f3a;
    --xf-green-dark: #1f6f2a;
    --xf-green-darker: #185c23;
    --xf-green-hover: #43a64f;
    --xf-green-light: #dff5e2;
    --xf-white: #ffffff;
    --xf-text: rgba(255, 255, 255, .90);
    --xf-text-muted: rgba(255, 255, 255, .72);
    --xf-border: rgba(255, 255, 255, .22);
}
/* ==========================================================
   TỔNG THỂ FOOTER
========================================================== */
.xf-custom-footer {
    position: relative;
    width: 100%;
    padding: 50px 0 20px;
    background:
        linear-gradient(
            135deg,
            #1f6f2a 0%,
            #2f8f3a 100%
        );
    color: var(--xf-text);
    border-top: 3px solid #ffffff;
    font-family: "Bai Jamjuree", Arial, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}
/* lớp nền nhẹ tạo chiều sâu */
.xf-custom-footer::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 420px;
    height: 420px;
    background: rgba(255,255,255,.035);
    border-radius: 50%;
    pointer-events: none;
}
.xf-custom-footer::after {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: rgba(0,0,0,.05);
    border-radius: 50%;
    pointer-events: none;
}
.xf-custom-footer .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}
/* ==========================================================
   TOP FOOTER - LOGO + SOCIAL
========================================================== */
.xf-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 25px;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--xf-border);
}
.xf-footer-logo {
    display: inline-block;
    margin-bottom: 12px;
}
.xf-footer-logo img {
    display: block;
    max-width: 350px;
    width: auto;
    height: auto;
    margin: 0;
}
/* ==========================================================
   SLOGAN
========================================================== */
.xf-slogan-sub {
    margin: 0;
    color: var(--xf-green-light);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}
/* ==========================================================
   SOCIAL
========================================================== */
.xf-social-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}
.xf-social-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 26px;
    text-decoration: none !important;
    transition:
        color .25s ease,
        transform .25s ease,
        opacity .25s ease;
}
.xf-social-box a:hover {
    color: var(--xf-green-light) !important;
    transform: translateY(-2px) scale(1.08);
}
/* ==========================================================
   GRID FOOTER - DÒNG 1
========================================================== */
.xf-footer-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.xf-mt-40 {
    margin-top: 40px;
}
/* ==========================================================
   FOOTER CARD
========================================================== */
.xf-footer-card {
    padding: 10px 0;
    color: var(--xf-text);
}
/* ==========================================================
   TIÊU ĐỀ FOOTER
========================================================== */
.xf-footer-heading {
    position: relative;
    margin: 0 0 20px !important;
    padding: 0 0 10px !important;
    color: #ffffff !important;
    font-family: "Bai Jamjuree", Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase;
}
.xf-footer-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 38px;
    height: 2px;
    background: var(--xf-green-light);
    border-radius: 3px;
}
/* ==========================================================
   TEXT FOOTER
========================================================== */
.xf-footer-card p,
.xf-footer-card li,
.xf-footer-card span {
    color: var(--xf-text);
    font-family: "Bai Jamjuree", Arial, sans-serif;
}
.xf-footer-card strong {
    color: #ffffff !important;
    font-weight: 600;
}
/* ==========================================================
   FOOTER LIST
========================================================== */
.xf-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--xf-text);
    font-size: 14px;
    line-height: 1.8;
}
.xf-footer-list li {
    margin-bottom: 8px;
}
/* ==========================================================
   LINK
========================================================== */
.xf-footer-card a {
    color: var(--xf-text) !important;
    text-decoration: none !important;
    transition:
        color .2s ease,
        opacity .2s ease;
}
.xf-footer-card a:hover {
    color: var(--xf-green-light) !important;
}
/* ==========================================================
   ICON
========================================================== */
.xf-footer-card .fa {
    color: #ffffff;
}
/* ==========================================================
   GRID FOOTER - DÒNG 2
========================================================== */
.xf-grid-bottom {
    grid-template-columns:
        1.5fr 1fr 1fr !important;
}
/* ==========================================================
   MAP
========================================================== */
.xf-grid-bottom .xf-map-box {
    overflow: hidden;
    border-radius: 8px;
}
.xf-grid-bottom .xf-map-box iframe {
    display: block;
    width: 100% !important;
    height: 380px !important;
    margin: 0;
    border: 1px solid rgba(255,255,255,.25) !important;
    border-radius: 8px !important;
    box-shadow:
        0 5px 18px rgba(0,0,0,.18);
}
/* ==========================================================
   HOTLINE BUTTON
========================================================== */
.xf-btn-hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    padding: 9px 16px;
    background: #ffffff !important;
    color: var(--xf-green-dark) !important;
    border: 1px solid #ffffff !important;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}
.xf-btn-hotline:hover {
    background: var(--xf-green-light) !important;
    color: var(--xf-green-dark) !important;
    border-color: var(--xf-green-light) !important;
    transform: translateY(-1px);
    box-shadow:
        0 5px 15px rgba(0,0,0,.12);
}
/* ==========================================================
   FOOTER FORM
========================================================== */
.xf-footer-form input,
.xf-footer-form select,
.xf-footer-form textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #ffffff;
    color: #333333;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 5px;
    box-sizing: border-box;
    font-family: "Bai Jamjuree", Arial, sans-serif;
    font-size: 14px;
    outline: none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}
.xf-footer-form input:focus,
.xf-footer-form select:focus,
.xf-footer-form textarea:focus {
    border-color: #bde7c2;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.18);
    outline: none;
}
/* ==========================================================
   FOOTER FORM BUTTON
========================================================== */
.xf-footer-form button {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    color: var(--xf-green-dark);
    border: none;
    border-radius: 5px;
    font-family: "Bai Jamjuree", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}
.xf-footer-form button:hover {
    background: var(--xf-green-light);
    transform: translateY(-1px);
    box-shadow:
        0 5px 15px rgba(0,0,0,.16);
}
/* ==========================================================
   COPYRIGHT
========================================================== */
.xf-copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--xf-border);
    color: var(--xf-text-muted);
    font-size: 13px;
    text-align: center;
}
.xf-copyright a {
    color: #ffffff !important;
}
.xf-copyright a:hover {
    color: var(--xf-green-light) !important;
}
/* ==========================================================
   TABLET
========================================================== */
@media (max-width: 1024px) {
    .xf-footer-grid,
    .xf-grid-bottom {
        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;
        gap: 20px;
    }
}
/* ==========================================================
   MOBILE
========================================================== */
@media (max-width: 768px) {
    .xf-custom-footer {
        padding:
            35px 0 18px;
    }
    .xf-footer-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    .xf-footer-logo img {
        max-width: 270px;
    }
    .xf-slogan-sub {
        font-size: 17px;
    }
    .xf-social-box {
        justify-content: center;
        gap: 20px;
    }
    .xf-footer-grid,
    .xf-grid-bottom {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .xf-mt-40 {
        margin-top: 15px;
    }
    .xf-grid-bottom .xf-map-box iframe {
        height: 250px !important;
    }
    .xf-copyright {
        margin-top: 25px;
        font-size: 12px;
    }
}
/* ==========================================================
   POPUP CHI NHÁNH
========================================================== */
.xf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .70);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .3s ease;
}
.xf-modal-overlay.show-modal {
    display: flex;
    opacity: 1;
}
/* ==========================================================
   MODAL BOX
========================================================== */
.xf-modal-box {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 30px;
    background:
        linear-gradient(
            135deg,
            #1f6f2a 0%,
            #2f8f3a 100%
        );
    color: var(--xf-text);
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 10px;
    box-shadow:
        0 15px 40px rgba(0,0,0,.38);
    transform: translateY(-30px);
    transition:
        transform .3s ease;
}
.xf-modal-overlay.show-modal .xf-modal-box {
    transform: translateY(0);
}
/* ==========================================================
   MODAL CLOSE
========================================================== */
.xf-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        color .2s ease,
        transform .2s ease;
}
.xf-modal-close:hover {
    color: var(--xf-green-light);
    transform: rotate(90deg);
}
/* ==========================================================
   MODAL TITLE
========================================================== */
.xf-modal-title {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    color: #ffffff;
    border-bottom:
        1px dashed rgba(255,255,255,.30);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}
.xf-modal-info p {
    margin-bottom: 12px;
    color: var(--xf-text);
    font-size: 15px;
    line-height: 1.6;
}
.xf-modal-info strong {
    color: #ffffff;
}
/* ==========================================================
   LIST SCROLL
========================================================== */
.col-md-4 .list_cn {
    height: 847px !important;
    max-height: 847px !important;
    padding-right: 12px;
    overflow-y: scroll !important;
    box-sizing: border-box;
}
.col-md-4 .list_cn::-webkit-scrollbar {
    width: 7px;
}
.col-md-4 .list_cn::-webkit-scrollbar-track {
    background: #e8ece9;
}
.col-md-4 .list_cn::-webkit-scrollbar-thumb {
    background: var(--xf-green);
    border-radius: 4px;
}
.col-md-4 .list_cn::-webkit-scrollbar-thumb:hover {
    background: var(--xf-green-dark);
}
/* ==========================================================
   CONTACT FORM 7
========================================================== */
.xf-footer-card .wpcf7 p {
    margin-bottom: 0 !important;
}
.xf-form-group {
    margin-bottom: 12px;
}
.xf-footer-card .wpcf7-form-control.wpcf7-text,
.xf-footer-card .wpcf7-form-control.wpcf7-textarea,
.xf-footer-card .wpcf7-form-control.wpcf7-select {
    width: 100% !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    font-family:
        "Bai Jamjuree",
        Arial,
        sans-serif !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition:
        border-color .25s ease,
        box-shadow .25s ease !important;
}
.xf-footer-card .wpcf7-form-control.wpcf7-text:focus,
.xf-footer-card .wpcf7-form-control.wpcf7-textarea:focus,
.xf-footer-card .wpcf7-form-control.wpcf7-select:focus {
    border-color: #bde7c2 !important;
    box-shadow:
        0 0 0 3px rgba(255,255,255,.18) !important;
    outline: none !important;
}
/* ==========================================================
   CONTACT FORM 7 - SUBMIT
========================================================== */
.xf-footer-card .btn-submit-xf {
    width: 100% !important;
    margin-top: 5px !important;
    padding: 14px 20px !important;
    background: #ffffff !important;
    color: var(--xf-green-dark) !important;
    border: none !important;
    border-radius: 6px !important;
    font-family:
        "Bai Jamjuree",
        Arial,
        sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease !important;
}
.xf-footer-card .btn-submit-xf:hover {
    background: var(--xf-green-light) !important;
    color: var(--xf-green-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow:
        0 5px 15px rgba(0,0,0,.16) !important;
}
/* ==========================================================
   FORM ERROR
========================================================== */
.xf-footer-card .wpcf7-not-valid-tip {
    margin-top: 4px !important;
    color: #ffd2d2 !important;
    font-size: 12px !important;
}
.xf-footer-card .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 10px !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,.65) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}
/* ==========================================================
   GLOBAL FONT / WIDTH
========================================================== */
html,
body {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    font-family:
        "Bai Jamjuree",
        Arial,
        sans-serif !important;
}
/* PHÓNG TO NÚT NHẮN TIN */
.fix_widget_container .msg_icon_box {
    width: 76px !important;
    height: 76px !important;
}

.fix_widget_container .msg_bubble i {
    font-size: 23px !important;
    margin-bottom: 3px !important;
}

.fix_widget_container .msg_bubble span {
    font-size: 10px !important;
    font-weight: 800 !important;
}

/* popup nằm cao hơn theo kích thước nút mới */
.fix_widget_container .msg_popup_widget {
    bottom: 86px !important;
}