/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-main-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.whatsapp-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-main-btn i {
    font-size: 28px;
    color: white;
}

.whatsapp-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.whatsapp-float.active .whatsapp-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-option {
    background-color: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    width: max-content;
}

.whatsapp-option:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-option i {
    font-size: 20px;
    color: #25D366;
}

.whatsapp-option.app i {
    color: #25D366;
}

.whatsapp-option.web i {
    color: #075E54;
}

.whatsapp-contact-options {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    padding-left: 20px;
    border-left: 2px solid #f0f0f0;
}

.whatsapp-option.active+.whatsapp-contact-options {
    display: flex;
}

.whatsapp-contact-option {
    background-color: #f8f9fa;
    border-radius: 30px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #555;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.2s ease;
    width: max-content;
}

.whatsapp-contact-option:hover {
    background-color: #e9ecef;
    transform: translateX(3px);
}

.whatsapp-contact-option i {
    font-size: 16px;
}

.whatsapp-tooltip {
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    bottom: 70px;
    right: 70px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-main-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Animation for the main button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-main-btn.pulse {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-main-btn {
        width: 55px;
        height: 55px;
    }

    .whatsapp-main-btn i {
        font-size: 24px;
    }

    .whatsapp-option {
        padding: 10px 16px;
        font-size: 14px;
    }

    .whatsapp-contact-option {
        padding: 7px 12px;
        font-size: 13px;
    }
}