.cta-sticky-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background-color: #e92128;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: inline-flex; /* Dùng flex để icon và text căn chỉnh dễ dàng */
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.cta-sticky-button.is-visible {
    visibility: visible;
    opacity: 1;
}

.cta-sticky-button:hover {
    background-color: #217b56;
    color: #ffffff;
}

/* Style cho icon */
.cta-sticky-button .cta-icon {
    margin-right: 8px; /* Khoảng cách giữa icon và text */
    font-size: 20px; /* Kích thước icon */
    line-height: 1;
}

.cta-lightbox-modal {
    display: none; /* Ẩn ban đầu */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.cta-lightbox-modal.is-visible {
    display: flex; /* Hiện khi có class is-visible */
}

.cta-lightbox-overlay {
    display: none; /* Ẩn ban đầu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 9998; /* z-index thấp hơn modal */
}

/* Modal chứa nội dung */
.cta-lightbox-modal {
    display: none; /* Ẩn ban đầu */
    position: fixed;
    z-index: 10000; /* z-index cao hơn overlay */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* Cho phép click xuyên qua modal để có thể click vào overlay */
    pointer-events: none; 
    
    /* Căn giữa wrapper bằng flexbox */
    align-items: center;
    justify-content: center;
}

/* Khi lightbox được kích hoạt */
body.cta-lightbox-active .cta-lightbox-overlay,
body.cta-lightbox-active .cta-lightbox-modal {
    display: flex; /* Hiện cả hai */
}

/* Hộp bao ngoài nội dung */
.cta-lightbox-content-wrapper {
    /* Kích hoạt lại pointer-events cho content để có thể tương tác */
    pointer-events: auto; 
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border-radius: 5px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    
    /* Animation */
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Animation khi modal hiện ra */
body.cta-lightbox-active .cta-lightbox-content-wrapper {
    transform: translateY(0);
    opacity: 1;
}

/* Vùng chứa nội dung form */
.cta-lightbox-content {
    overflow-y: auto;
}

/* Nút đóng */
.cta-lightbox-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 2;
}

.cta-lightbox-close:hover,
.cta-lightbox-close:focus {
    color: black;
    text-decoration: none;
}

/* QUAN TRỌNG: Fix z-index cho dropdown của plugin bên thứ ba */
/* Bạn vẫn cần giữ lại đoạn này và thay bằng class đúng */
.select2-dropdown, 
.chosen-container .chosen-drop,
.your-form-plugin-dropdown-class {
    z-index: 10001 !important; /* Phải cao hơn z-index của modal (10000) */
}