/* Chatbot Container */
#zw-chatbot {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Toggle Button */
#zw-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #002046; /* Navy */
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid #C5A059; /* Gold */
}

#zw-chatbot-toggle:hover {
    transform: scale(1.1);
}

#zw-chatbot-toggle i {
    color: #fff;
    font-size: 28px;
}

/* Chat Window */
#zw-chat-window {
    width: 350px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #eee;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.zw-chat-header {
    background: #002046;
    padding: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zw-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zw-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C5A059;
}

.zw-chat-title h4 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.zw-chat-title p {
    margin: 0;
    font-size: 0.75rem;
    color: #C5A059;
}

.zw-chat-close {
    cursor: pointer;
    font-size: 1.2rem;
    color: #aaa;
    transition: color 0.2s;
}

.zw-chat-close:hover {
    color: #fff;
}

/* Body */
.zw-chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Messages */
.zw-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

.zw-msg.bot {
    align-self: flex-start;
    background: #eef2f5;
    color: #333;
    border-bottom-left-radius: 2px;
}

.zw-msg.user {
    align-self: flex-end;
    background: #002046;
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* Simulating typing */
.zw-typing {
    align-self: flex-start;
    background: #eef2f5;
    padding: 10px 15px;
    border-radius: 15px;
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 5px;
}

.zw-dot {
    width: 6px;
    height: 6px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.zw-dot:nth-child(1) { animation-delay: -0.32s; }
.zw-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Footer / Inputs */
.zw-chat-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.zw-chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zw-btn-option {
    background: #fff;
    border: 1px solid #002046;
    color: #002046;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.zw-btn-option:hover {
    background: #002046;
    color: #fff;
}

.zw-input-group {
    display: flex;
    gap: 10px;
}

.zw-chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.zw-chat-send {
    background: #002046;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 5px;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    #zw-chat-window {
        width: calc(100vw - 40px);
        height: 60vh;
        bottom: 80px;
        right: 20px;
    }
}
