/* public/css/whatsapp.css */
:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
    --gtrust-blue: #0066cc;
    --gtrust-gold: #FFD700;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999999 !important; /* Very high z-index */
    display: block !important;
}

.whatsapp-launcher {
    background-color: var(--whatsapp-green) !important;
    color: white !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    border: 3px solid var(--gtrust-gold) !important;
    animation: pulse 2s infinite !important;
}

.whatsapp-launcher:hover {
    transform: scale(1.1) !important;
    background-color: var(--whatsapp-dark) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4) !important;
}

.whatsapp-launcher i {
    font-size: 32px !important;
}

/* Popup Container */
.whatsapp-popup {
    display: none !important;
    position: fixed !important;
    bottom: 110px !important;
    right: 30px !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
    width: 340px !important;
    z-index: 1000000 !important; /* Even higher z-index */
    flex-direction: column !important;
    overflow: hidden !important;
    border: 2px solid var(--gtrust-gold) !important;
}

/* When popup is visible */
.whatsapp-popup[style*="display: flex"] {
    display: flex !important;
    animation: slideIn 0.3s ease !important;
}

/* Popup Header */
.popup-header {
    background: linear-gradient(135deg, var(--gtrust-blue) 0%, #004080 100%) !important;
    color: white !important;
    padding: 18px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-bottom: 3px solid var(--gtrust-gold) !important;
}

.popup-header h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.popup-header h3 i {
    color: var(--whatsapp-green) !important;
    font-size: 22px !important;
}

.close-popup {
    background: rgba(255,255,255,0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.close-popup:hover {
    background: rgba(255, 215, 0, 0.3) !important;
    transform: rotate(90deg) !important;
}

/* Popup Body */
.popup-body {
    padding: 25px !important;
    text-align: center !important;
    background: #f8fafc !important;
}

.popup-body p {
    color: #333 !important;
    margin-bottom: 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

.popup-body .greeting {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--whatsapp-dark) !important;
    margin-bottom: 10px !important;
}

.popup-body .greeting i {
    color: var(--gtrust-gold) !important;
    margin-right: 5px !important;
}

/* Quick Replies */
.quick-replies {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 15px 0 !important;
    justify-content: center !important;
}

.quick-reply {
    background: #f0f0f0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50px !important;
    padding: 8px 15px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    color: #333 !important;
    display: inline-block !important;
    font-weight: 500 !important;
}

.quick-reply:hover {
    background: var(--gtrust-gold) !important;
    border-color: var(--gtrust-blue) !important;
    transform: scale(1.05) !important;
    color: #004080 !important;
}

/* WhatsApp Button */
.popup-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    background: var(--whatsapp-green) !important;
    color: white !important;
    padding: 14px 25px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s !important;
    border: 2px solid transparent !important;
    width: 100% !important;
    margin-top: 10px !important;
    box-sizing: border-box !important;
}

.popup-btn:hover {
    background: var(--whatsapp-dark) !important;
    color: white !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3) !important;
    border-color: var(--gtrust-gold) !important;
    text-decoration: none !important;
}

.popup-btn i {
    font-size: 22px !important;
}

/* Animations */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
    }

    .whatsapp-popup {
        width: 300px !important;
        right: 15px !important;
        bottom: 90px !important;
    }

    .whatsapp-launcher {
        width: 55px !important;
        height: 55px !important;
    }

    .whatsapp-launcher i {
        font-size: 28px !important;
    }
}
