/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.whatsapp-button {
    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: pulse-whatsapp 2s infinite;
}

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

.whatsapp-button i {
    font-size: 32px;
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1), 0 0 0 20px rgba(37, 211, 102, 0.05);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

.whatsapp-header {
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

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

.whatsapp-header span {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.whatsapp-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.whatsapp-body {
    padding: 20px;
    background: #F5F5F5;
}

.whatsapp-message {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.whatsapp-message::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.whatsapp-message p {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

.whatsapp-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    box-shadow: none;
    outline: none;
}

.whatsapp-input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.whatsapp-input::placeholder {
    color: #999;
}

.whatsapp-send-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.whatsapp-send-btn:hover {
    background: linear-gradient(135deg, #20BA5A 0%, #1DA851 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 56px;
        height: 56px;
    }

    .whatsapp-button i {
        font-size: 28px;
    }

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

@media (max-width: 480px) {
    .whatsapp-chat-box {
        bottom: 76px;
        right: -10px;
        width: calc(100vw - 20px);
    }

    .whatsapp-header {
        padding: 16px;
    }

    .whatsapp-header span {
        font-size: 16px;
    }

    .whatsapp-body {
        padding: 15px;
    }

    .whatsapp-input {
        padding: 12px;
        font-size: 13px;
    }

    .whatsapp-send-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}
