/* WhatsApp Floating Button Styles */ /* WhatsApp Popup Styles */ /* Mobile Responsive */ /* Close animation */ /* Lead Popup Styles - Enhanced & Centered */ /* Decorative Elements */ /* Form Styles */ /* Success Message */ /* Responsive Design */ /* Scrollbar Styling for Popup */ /* Responsive adjustments */ --> return false; // Prevents default link behavior // WhatsApp Popup Code // WhatsApp number const whatsappNumber = '+971523705205'; // Remove spaces for WhatsApp link // Toggle popup // Close popup // Close when clicking outside // Quick message buttons // Send message function // Send on Enter (with Ctrl/Cmd for new line) // Encode message for URL // Create WhatsApp URL // Open in new tab // Clear input and close popup after a delay // Direct WhatsApp link for quick access (optional) // Auto-open WhatsApp popup after 30 seconds on page // Lead Popup Code (moved here from second DOMContentLoaded) const leadCloseBtn = document.querySelector('.popup-close'); // Changed variable name to avoid conflict // Show lead popup after 5 seconds // Show popup on button clicks (if you have CTA buttons) return; // Don't show for anchor links // Close lead popup function closeLeadPopup() { // Changed function name to avoid conflict // Close when clicking outside // Form submission // Get form data // Here you would typically send the data to your server // Show success message // Exit intent detection // Add data-lead-popup handlers // Add to your existing lead popup script to connect them