@media screen and (min-width: 960px){
    .showpopupform{
        width: 350px;
    }
}
@media screen and (min-width: 760px) and (max-width: 959px){
    .showpopupform{
        width: 300px;
    }
}
@media screen and (max-width: 759px){
    .showpopupform{
        width: 40%;
    }
}
/* Lớp nền mờ bao phủ toàn trang */
.popup-wrapper {
    display: none; /* Mặc định ẩn */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Màu đen mờ */
    z-index: 10000; /* Đảm bảo nằm trên cùng */
    justify-content: center;
    align-items: center;
}

/* Khi có class 'active' thì mới hiển thị */
.popup-wrapper.active {
    display: flex;
}

/* Khung form chính */
.popupform {
    background-color: #967b03;
    padding: 10px;
    border-radius: 10px;
    position: relative;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Nút đóng (X) */
.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-popup:hover {
    color: #000;
}




/* --- Thanh Footer cố định --- */
.tabfooter {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #705302;
    display: flex;
    justify-content: space-between; /* Đẩy 2 nút sang 2 bên */
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 10000;
}

/* --- Khung Chatbot (Giống hình mẫu) --- */
#contentConsultant {
    display: none; /* Ẩn mặc định */
    position: fixed;
    bottom: 20px; /* Nằm trên thanh footer */
    right: 20px;
    max-width: 400px;
    max-height: 500px;
    background-color: #fff6e6; /* Màu tím nhạt trong ảnh */
    border: 1px solid #0000ff;
    flex-direction: column;
    z-index: 10001;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
}

/* Khi mở chat */
#contentConsultant.active {
    display: flex;
}

/* Tiêu đề xanh biển */
#menuConsultant {
    background-color: #0000ff; /* Xanh đậm */
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

/* Nút đóng X màu đỏ */
.close-x {
    color: red;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

/* Vùng nội dung có thể cuộn */
#consultantAjax {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

/* --- Thanh nhập liệu (Dưới cùng khung chat) --- */
/* .chat-input-bar {
    display: flex;
    background: #fff;
    padding: 5px;
    border-top: 1px solid #ccc;
}

.chat-input-bar input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 5px 10px;
    outline: none;
}

.chat-input-bar button {
    background: #f0f0f0;
    border: 1px solid #ccc;
    margin-left: 5px;
    padding: 5px 15px;
    cursor: pointer;
} */

.showpopupform {
    cursor: pointer;
    background-color: #325800;
    color: white;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
    opacity: 1;
    text-align: center;
}