/* WhatsApp Floating Button Styles */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    border: none;
    opacity: 1;
    transform: scale(1);
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    color: #FFF;
    text-decoration: none;
}

.whatsapp-float i {
    margin: 0;
    transition: transform 0.3s ease;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #25d366;
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* WhatsApp Card Styles */
.whatsapp-card {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.whatsapp-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-card-header {
    background: linear-gradient(135deg, #25d366, #20ba5a);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.whatsapp-card-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.btn-close-wa {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s;
}

.btn-close-wa:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-card-body {
    padding: 20px;
}

.wa-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.wa-option:last-child {
    margin-bottom: 0;
}

.wa-option:hover {
    background: linear-gradient(135deg, #f8f9ff, #e8f5e8);
    border-color: #25d366;
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
}

.wa-option-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #25d366, #20ba5a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.wa-option-content h6 {
    margin: 0 0 3px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.wa-option-content small {
    color: #666;
    font-size: 12px;
}

/* Overlay */
.whatsapp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: -1;
}

.whatsapp-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Animation when card is active */
.whatsapp-float-container.active .whatsapp-float {
    transform: rotate(45deg);
    background-color: #dc3545;
}

.whatsapp-float-container.active .whatsapp-float::before {
    animation: none;
    background-color: #dc3545;
}

.whatsapp-float-container.active .whatsapp-float i {
    transform: rotate(-45deg);
}

.whatsapp-float-container.active .whatsapp-float:hover {
    background-color: #c82333;
    transform: rotate(45deg) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .whatsapp-card {
        width: 280px;
        bottom: 70px;
        right: -30px;
    }
    
    .wa-option {
        padding: 12px;
    }
    
    .wa-option-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .wa-option-content h6 {
        font-size: 14px;
    }
    
    .wa-option-content small {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .whatsapp-card {
        width: 260px;
        right: -40px;
    }
}