/* Premium VIP Chatbot Styling - Master Template Sync */
:root {
    --chat-navy: var(--navy);
    --chat-gold: var(--gold);
    --chat-gold-light: var(--gold-hover);
    --chat-white: #ffffff;
    --chat-bg: #f9f6f6;
}

#chatbot-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: transparent;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.4s ease;
    padding: 0;
}

#chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
}

#chatbot-container {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 380px;
    height: 600px;
    max-height: 80vh;
    background: var(--chat-white);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    border: 1px solid rgba(163, 19, 19, 0.15);
    animation: slideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.chatbot-header {
    background: var(--chat-navy);
    background: linear-gradient(135deg, var(--chat-navy) 0%, var(--chat-gold-light) 100%);
    color: #fff; /* Improved contrast */
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--chat-gold);
}

.chatbot-header strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--chat-bg);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 85%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.message.bot {
    background: var(--chat-white);
    color: var(--navy);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(0,0,0,0.05);
}

.message.user {
    background: var(--chat-navy);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    padding: 20px;
    background: var(--chat-white);
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.chatbot-input input {
    flex: 1;
    border: 1px solid #efefef;
    background: #fcfcfc;
    border-radius: 12px;
    padding: 12px 18px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    border-color: var(--chat-navy);
}

.btn-send {
    width: 45px;
    height: 45px;
    background: var(--chat-navy);
    color: #fff;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-send:hover {
    background: var(--chat-gold);
    color: #fff;
}

/* Custom Scrollbar */
.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--chat-navy);
    border-radius: 10px;
}

@media (max-width: 768px) {
    #chatbot-trigger {
        right: 15px;
        bottom: 15px;
        width: 100px;
        height: 100px;
    }

    #chatbot-container {
        width: 85vw;
        max-width: 320px;
        height: 450px;
        bottom: 85px;
        right: 20px;
        border-radius: 18px;
    }

    .chatbot-header {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    #chatbot-container {
        width: 85vw;
        max-width: 320px;
        height: 450px;
        bottom: 85px;
        right: 20px;
    }
}
