/* ============================================
   CHATBOT STYLES
   ============================================ */

.chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #c89841 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 169, 83, 0.5);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all var(--transition-normal);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary-navy) 0%, #162d4f 100%);
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chatbot-header-info i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.chatbot-header-info h4 {
    margin: 0;
    color: var(--white);
    font-size: 1.125rem;
}

.chatbot-header-info span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.chatbot-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--light-gray);
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.chatbot-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease-out;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: var(--primary-navy);
}

.message-content {
    flex: 1;
}

.message-content p {
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
}

.user-message .message-content p {
    background: var(--accent-gold);
    color: var(--white);
}

.user-message {
    flex-direction: row-reverse;
}

.quick-replies {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-replies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-reply {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    color: var(--primary-navy);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-normal);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-reply.sm {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    flex-direction: column;
    gap: 0.25rem;
}

.quick-reply i {
    color: var(--accent-gold);
    font-size: 1.125rem;
}

.quick-reply.sm i {
    font-size: 1.25rem;
}

.quick-reply:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-reply:hover i {
    color: var(--white);
}

.chatbot-footer {
    padding: 1rem 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.chatbot-footer input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: border-color var(--transition-fast);
}

.chatbot-footer input:focus {
    border-color: var(--accent-gold);
}

.chatbot-footer button {
    width: 45px;
    height: 45px;
    background: var(--accent-gold);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

.chatbot-footer button:hover {
    background: var(--primary-navy);
    transform: scale(1.05);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius-md);
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 576px) {
    .chatbot {
        bottom: 20px;
        right: 20px;
    }

    .chatbot-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .chatbot-window {
        width: calc(100vw - 40px);
        height: 500px;
        bottom: 80px;
        right: -10px;
    }
}