// Show the modal when the page loads
// Close the modal when the close button (cross button) is clicked
e.preventDefault(); // Prevent the default form submission
var formData = $(this).serialize(); // Serialize form data
url: 'submit_contact.php', // PHP file to process form submission
alert(response); // Display response from PHP (success or failure)
$('#contactForm')[0].reset(); // Optionally reset form after successful submission