/* Chatbot animations */
@keyframes chatbot-float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes chatbot-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes chatbot-slide-right {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes chatbot-slide-left {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.chatbot-fab {
    position: fixed;
    right: 20px;
    bottom: 120px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    animation: chatbot-float-bounce 3s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-fab:hover { transform: scale(1.15) translateY(-2px); }

.chatbot-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.chatbot-panel {
    position: fixed;
    right: 20px;
    bottom: 190px;
    z-index: 1100;
    display: none;
    flex-direction: column;
    width: min(92vw, 360px);
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 22px;
    background: var(--surface-strong);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 0 30px rgba(245, 158, 11, 0.15);
    animation: chatbot-slide-up 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-panel.open { display: flex; }

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.1));
}

.chatbot-header h6 { margin: 0; color: var(--dark); font-weight: 700; }
.chatbot-header small { color: var(--muted); }
.chatbot-close { border: 0; background: transparent; color: var(--dark); font-size: 22px; cursor: pointer; }

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
}

.message {
    max-width: 85%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.45;
}

.message.user {
    align-self: flex-end;
    border-radius: 18px 4px 18px 18px;
    background: var(--gold-gradient);
    color: #fff;
    animation: chatbot-slide-right 0.3s ease-out;
}

.message.bot {
    align-self: flex-start;
    border-radius: 4px 18px 18px 18px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: var(--dark);
    animation: chatbot-slide-left 0.3s ease-out;
}

.chatbot-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }

.quick-action {
    border: 2px solid var(--accent);
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    color: var(--accent);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-action:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }

.chatbot-form {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 2px solid rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}

.chatbot-form input {
    min-width: 0;
    flex: 1;
    padding: 10px 14px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 999px;
    outline: none;
    font-size: 14px;
}

.chatbot-form input:focus { border-color: var(--accent); }
.chatbot-form button { width: 42px; border: 0; border-radius: 50%; background: var(--gold-gradient); color: #fff; cursor: pointer; }

@media (max-width: 576px) {
    .chatbot-fab { right: 14px; bottom: 24px; width: 58px; height: 58px; }
    .chatbot-panel { right: 10px; bottom: 94px; width: min(92vw, 360px); }
}
