/* Floating Chat Button */
#floating-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: #fff;
    padding: 14px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 9999;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
    transition: transform .15s ease, box-shadow .15s ease;
}
#floating-chat-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Chatbox Container with animation */
#floating-chatbox {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 320px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    overflow: hidden;

    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Visible state */
#floating-chatbox.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Chatbox Header */
.chatbox-header {
    background: #0073aa;
    color: #fff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chatbox-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Chatbox Content */
.chatbox-content {
    padding: 10px;
    overflow-y: auto;
    max-height: 60vh;
}

/* Stacked Options */
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.chat-option {
    padding: 8px 10px;
    background: #f1f1f1;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
    text-align: left;
}
.chat-option:hover {
    background: #e9f5ff;
    border-color: #cbe7ff;
}

/* FAQ Accordion */
.faq-list { border-top: 1px solid #ddd; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-question {
    cursor: pointer;
    padding: 8px;
    background: #f9f9f9;
    font-weight: bold;
}
.faq-answer {
    display: none;
    padding: 8px;
    background: #fff;
}

/* Contact Form Width Fix */
#chat-contact, #chat-contact * { max-width: 100%; }
#chat-contact form {
    width: 100% !important;
    overflow-x: hidden;
}

/* Utility */
.hidden { display: none; }