﻿/* Header mặc định */
#mainHeader {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0); /* lớp kính cực mờ */
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 4px 30px rgba(0, 0, 0, 0.1);
}

.footer-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}


/* Thiết lập padding cố định cho nút chat trên tất cả các trang */
#chat-toggle.chat-btn {
    padding: 8px 16px; /* Hoặc giá trị bạn muốn */
}

/* Hiệu ứng kính sáng bóng hơn khi ở top */
#mainHeader.top {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
}

/* Khi header hiện ra rõ (cuộn lên) */
#mainHeader.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Khi header ẩn (cuộn xuống) */
#mainHeader.hide {
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Ánh sáng phản chiếu nhẹ khi hover */
#mainHeader:hover {
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.12), 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Nút Zalo — nằm giữa */
.zalo-btn {
    position: fixed;
    bottom: 110px; /* giữa Scroll-top và Chat */
    right: 30px;
    width: 60px;
    height: 60px;
    background: #0068ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 9998;
}

    .zalo-btn img {
        width: 30px;
        height: 30px;
    }

    .zalo-btn:hover {
        transform: scale(1.1);
        background: #007aff;
    }

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #ffffff;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border: 4px solid #C21F61;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(194, 31, 97, 0.25);
    transition: all 0.3s ease-in-out;
}

    .map-container iframe {
        width: 100%;
        height: 300px;
        border: none;
        display: block;
    }

    .map-container:hover {
        transform: scale(1.02);
        box-shadow: 0 0 25px rgba(194, 31, 97, 0.35);
    }

/* Chat nhỏ */
#chatbox {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    max-height: 450px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}

#chat-header {
    background-color: #C21F61;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

#expand-chat {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
}

    #expand-chat:hover {
        opacity: 1;
    }

#chat-body {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
    font-size: 14px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#chat-input {
    display: flex;
    border-top: 1px solid #ccc;
}

    #chat-input input {
        flex: 1;
        border: none;
        padding: 10px;
        font-size: 14px;
        outline: none;
    }

    #chat-input button {
        background-color: #C21F61;
        color: white;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
    }

#chat-toggle {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
}

/* Chat lớn (popup giữa màn hình) */
#chatbox-full {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; /* rộng 90% màn hình */
    height: 85%; /* cao 85% màn hình */
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10001;
}

/* Nền mờ phía sau popup */
#chatbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px); /* thêm mờ nhẹ, rất đẹp */
    display: none;
    z-index: 10000;
}

/* Phần header popup lớn */
#chatbox-full-header {
    background-color: #C21F61;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

#chatbox-full-body {
    flex: 1;
    padding: 20px;
    background: #f8f9fa;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#chatbox-full-input {
    display: flex;
    border-top: 1px solid #ccc;
}

    #chatbox-full-input input {
        flex: 1;
        border: none;
        padding: 15px;
        font-size: 16px;
        outline: none;
    }

    #chatbox-full-input button {
        background-color: #C21F61;
        color: white;
        border: none;
        padding: 15px 25px;
        cursor: pointer;
    }

.chat-actions span {
    cursor: pointer;
    font-size: 22px;
    margin-left: 15px;
}

/* Tin nhắn */
.user-msg {
    align-self: flex-end;
    background: #C21F61;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 75%;
}

.bot-msg {
    align-self: flex-start;
    background: #e9ecef;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 75%;
}


/* Đảm bảo nút scroll top luôn nổi trên chatbox */
#scrollTopBtn {
    z-index: 10001; /* cao hơn chatbox */
}

.footer {
    font-size: 16px;
    margin-bottom: -20px;
}

.chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #C21F61;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: none !important; /* bỏ viền đen */
    border: none !important; /* đảm bảo không còn border */
    outline: none !important;
}

    .chat-btn:hover {
        background-color: #C21F61;
        transform: scale(1.1);
    }


/* Nút Scroll-top — trên cùng */
#scrollTopBtn {
    position: fixed;
    bottom: 190px;
    right: 30px;
    width: 50px;
    height: 50px;
    border: none;
    background-color: #C21F61;
    color: white;
    border-radius: 5px;
    display: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    z-index: 9997;
    transition: all 0.3s ease;
}

    #scrollTopBtn:hover {
        background-color: #EE328D;
        transform: translateY(-3px);
    }

/* Responsive cho mobile */
@media (max-width: 768px) {
    .chat-btn, #scrollTopBtn, .zalo-btn {
        right: 15px;
        transform: scale(0.9);
    }
}

/* icon email, icon call */
.elementor-icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #C21F61;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .contact-link:hover {
        color: #C21F61;
        transform: translateX(4px);
    }

.contact-icon {
    font-size: 18px;
    color: #C21F61;
    transition: color 0.3s ease;
}

.contact-link:hover .contact-icon {
    color: #C21F61;
}

.elementor-icon-list-items {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#floating-buttons .chat-btn,
#floating-buttons .zalo-btn,
#floating-buttons #scrollTopBtn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==== ACTIVE MENU: CHỈ ĐỔI MÀU, KHÔNG GẠCH CHÂN ==== */
:root {
    --ok-main: #C21F61;
    --ok-text: #1f2937;
}

/* Màu mặc định */
#mainHeader .navbar-nav .nav-link {
    color: var(--ok-text) !important;
    font-weight: 500;
    padding: .5rem 1rem;
    transition: .25s ease;
}

    /* Bỏ gạch chân hoàn toàn */
    #mainHeader .navbar-nav .nav-link::after {
        display: none !important;
    }

    /* Hover: đổi màu nhưng KHÔNG vẽ line */
    #mainHeader .navbar-nav .nav-link:hover {
        color: var(--ok-main) !important;
    }

/* Active theo Razor */
#mainHeader .navbar-nav .nav-item.active > .nav-link {
    color: var(--ok-main) !important;
    font-weight: 700;
}

/* Nếu dùng aria-current */
#mainHeader .navbar-nav .nav-link[aria-current="page"] {
    color: var(--ok-main) !important;
    font-weight: 600;
}
