/* Chatbot Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-family: 'Inter', sans-serif;
}

.chat-widget.active {
    transform: translateY(0);
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #E61E43 0%, #FF2D55 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #E61E43;
    padding: 2px;
}

.chat-title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.chat-title p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 1;
}

/* Chat Body */
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: white;
    color: #1a1a1a;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: #E61E43;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 2px 5px rgba(230, 30, 67, 0.2);
}

/* Options/Chips */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeIn 0.4s ease;
}

.chat-option-btn {
    background: #fff;
    border: 1px solid #E61E43;
    color: #E61E43;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-option-btn:hover {
    background: #E61E43;
    color: white;
}

.chat-option-btn.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.chat-option-btn.whatsapp:hover {
    background: #25D366;
    color: white;
}

.chat-option-btn.email {
    border-color: #0077b5;
    color: #0077b5;
}

.chat-option-btn.email:hover {
    background: #0077b5;
    color: white;
}

.chat-option-btn.call {
    border-color: #ff9800;
    color: #ff9800;
}

.chat-option-btn.call:hover {
    background: #ff9800;
    color: white;
}

.chat-option-btn.back-btn {
    border-color: #94a3b8;
    color: #64748b;
    background: #f8f9fa;
}

.chat-option-btn.back-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Chat Footer */
.chat-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #eee;
    padding: 10px 15px;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #E61E43;
}

.send-btn {
    background: #E61E43;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Floating Toggle Button */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E61E43 0%, #FF2D55 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(230, 30, 67, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

.chat-toggle.hidden {
    transform: scale(0);
}

.chat-toggle-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background-color: #25D366;
    /* WhatsApp Green */
    border: 2px solid white;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .chat-widget {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}