/* WhatsApp Chat Widget Styles */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.whatsapp-chat-toggle {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: bounceIn 1s ease-out;
}

.whatsapp-chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-chat-toggle.pulse {
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-chat-toggle i {
    font-size: 28px;
    color: white;
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.whatsapp-chat-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-header {
    background: #25d366;
    color: white;
    padding: 15px 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.whatsapp-chat-header img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    filter: brightness(0) invert(1);
}

.whatsapp-chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.whatsapp-chat-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.whatsapp-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-chat-messages {
    padding: 20px;
    background: #f0f0f0;
    min-height: 120px;
}

.whatsapp-message {
    background: white;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 5px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -8px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right: 8px solid white;
    border-bottom: 0;
}

.whatsapp-message p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.whatsapp-message p:last-of-type {
    margin-bottom: 0;
}

.whatsapp-time {
    font-size: 11px;
    color: #999;
    display: block;
    text-align: right;
    margin-top: 8px;
}

.whatsapp-chat-footer {
    padding: 15px 20px;
    background: white;
    border-radius: 0 0 15px 15px;
}

.whatsapp-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-send-btn:hover {
    background: #22c55e;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-send-btn i {
    font-size: 16px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-chat-toggle {
        width: 55px;
        height: 55px;
    }

    .whatsapp-chat-toggle i {
        font-size: 24px;
    }

    .whatsapp-chat-box {
        width: 320px;
        max-width: calc(100vw - 30px);
    }

    .whatsapp-chat-header {
        padding: 12px 15px;
    }

    .whatsapp-chat-header img {
        width: 40px;
        height: 40px;
    }

    .whatsapp-chat-messages {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .whatsapp-chat-box {
        width: 280px;
    }

    .whatsapp-chat-header h4 {
        font-size: 14px;
    }

    .whatsapp-chat-header p {
        font-size: 11px;
    }
}

/* WhatsApp Pulse Animation */
@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
    }
}