/* Chat Widget Styles */
.chat-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 119, 255, 0.4);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 10001;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-toggle-btn.active {
    transform: rotate(90deg);
    background: #ef4444;
    /* Red color for close state */
}

/* Chat Notification Bubble */
.chat-notification {
    background: white;
    color: #0f172a;
    padding: 15px 20px;
    border-radius: 15px;
    border-bottom-right-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    max-width: 280px;
    animation: floatUp 0.5s ease-out forwards;
    display: none;
    /* Hidden by default, shown by JS */
    cursor: pointer;
}

.chat-notification.show {
    display: block;
}

.chat-notification p {
    margin: 0;
    font-weight: 600;
    font-family: 'Hind Siliguri', sans-serif;
    line-height: 1.4;
}

.close-chat-notify {
    position: absolute;
    top: 5px;
    right: 8px;
    font-size: 1rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.close-chat-notify:hover {
    color: #ef4444;
}

/* Chat Menu */
.chat-menu {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 10000;
}

.chat-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: white;
    color: #0f172a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    white-space: nowrap;
    min-width: 160px;
}

.chat-option:hover {
    transform: translateX(-5px);
}

.chat-option i {
    font-size: 1.2rem;
}

.chat-option.whatsapp {
    color: #25D366;
}

.chat-option.messenger {
    color: #0084FF;
}

.chat-option.phone {
    color: #0077FF;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}