/* ===== CHATBOT STYLES ===== */
.chatbot-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(11,29,58,0.35);
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(11,29,58,0.45);
}

.chatbot-toggle-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
}

.chatbot-toggle-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chatbot-toggle-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    animation: chatPulse 2s ease-in-out infinite;
}

@keyframes chatPulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.15); }
}

/* Chatbot Window */
.chatbot-window {
    position: fixed;
    bottom: 104px;
    right: 28px;
    width: 380px;
    max-height: 520px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(11,29,58,0.2);
    z-index: 901;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: var(--navy);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.chatbot-header-info strong {
    display: block;
    color: var(--white);
    font-size: 0.85rem;
}

.chatbot-header-info span {
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.chatbot-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: var(--transition-fast);
}

.chatbot-close:hover { color: var(--white); }

.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 360px;
}

.chat-message {
    max-width: 85%;
    animation: messageIn 0.3s ease;
}

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

.chat-message.bot { align-self: flex-start; }
.chat-message.user { align-self: flex-end; }

.chat-message p {
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    border-radius: 0;
}

.chat-message.bot p {
    background: var(--cream);
    color: var(--text);
    border-left: 3px solid var(--gold);
}

.chat-message.user p {
    background: var(--navy);
    color: var(--white);
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chat-chip {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-family: var(--font-body);
    background: var(--white);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--navy);
    font-weight: 500;
}

.chat-chip:hover {
    border-color: var(--gold);
    background: rgba(201,169,110,0.08);
    color: var(--gold-dark);
}

.chatbot-input {
    display: flex;
    border-top: 1px solid var(--border);
}

.chatbot-input input {
    flex: 1;
    border: none;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    background: var(--white);
}

.chatbot-input button {
    padding: 14px 20px;
    background: var(--gold);
    border: none;
    color: var(--navy-deep);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-input button:hover { background: var(--gold-dark); }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--cream);
    align-self: flex-start;
    border-left: 3px solid var(--gold);
}

.typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 480px) {
    .chatbot-window {
        right: 12px;
        left: 12px;
        bottom: 96px;
        width: auto;
        max-height: 70vh;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .chatbot-toggle-avatar {
        width: 42px;
        height: 42px;
    }
}
