/* Chatbot Styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #149dcc;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulseGlow 3s infinite ease-in-out;
    position: relative;
}

.chatbot-toggle svg {
    width: 30px;
    height: 30px;
    fill: white;
}

/* Pulsing glow animation */
@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 0 0 rgba(20, 157, 204, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(0,0,0,0.4), 0 0 0 10px rgba(20, 157, 204, 0);
    }
}

/* Notification dot animation */
.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ff4757;
    border-radius: 50%;
    animation: bounce 2s infinite;
    border: 2px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.1);
    }
    60% {
        transform: translateY(-4px) scale(1.05);
    }
}

/* Shake animation for extra attention */
.chatbot-toggle.shake {
    animation: pulseGlow 3s infinite ease-in-out, shake 0.8s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0) scale(1); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px) scale(1.02); }
    20%, 40%, 60%, 80% { transform: translateX(2px) scale(1.02); }
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    animation-play-state: paused;
}

.chatbot-window {
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 300px;
    height: 450px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: #149dcc;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message {
    background: #f1f3f5;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 5px;
    color: #333;
    line-height: 1.4;
}

.user-message {
    background: #149dcc;
    color: white;
    padding: 12px 15px;
    border-radius: 15px 15px 5px 15px;
    margin-left: auto;
    max-width: 85%;
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 10px 0;
}

.service-btn {
    background: white;
    border: 2px solid #149dcc;
    color: #149dcc;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
}

.service-btn:hover {
    background: #149dcc;
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #149dcc;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    background: #149dcc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    transition: transform 0.2s ease;
    margin-bottom: 10px;
}

.whatsapp-btn:hover {
    transform: translateY(-1px);
    background: #22c55e;
}

.whatsapp-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    text-align: center;
    color: #149dcc;
    padding: 10px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .chatbot-window {
        width: 300px;
        height: 450px;
        bottom: 70px;
        right: 10px;
    }

    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
