/* Chat Button */
.chat-float-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.chat-trigger-button {
    background: #25d366;
    color: white;
    border: none;
    border-radius: 12px 12px 12px 0px;
    padding: 12px 16px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 14px;
}

.chat-trigger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Modal - Positioned at bottom right */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-box {
    position: fixed;
    bottom: 80px; /* Above the chat button */
    right: 20px;
    background: white;
    border-radius: 15px;
    width: 350px;
    max-width: 90vw;
    max-height: 500px;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
}

.modal-backdrop.active .modal-box {
    transform: scale(1) translateY(0);
}

.modal-top {
    /* background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); */
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-heading {
    color: black;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.modal-subheading{
    font-size: 12px;;
}

.modal-close-button {
    background: none;
    border: none;
    color: rgb(88, 86, 86);
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close-button:hover {
    background: rgba(255,255,255,0.1);
}

.modal-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* Responsive for mobile */
@media (max-width: 768px) {
    .modal-box {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 80px;
        max-height: 60vh;
    }
    
    .chat-trigger-button {
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .modal-box {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
        bottom: 70px;
        max-height: 50vh;
    }
    
    .chat-float-wrapper {
        bottom: 15px;
        right: 15px;
    }
    
    .modal-top, .modal-content {
        padding: 12px 15px;
    }
}

/* Optional: Add backdrop blur effect */
.modal-backdrop.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: -1;
}