function validateForm() {
    let phone = document.getElementById("phone").value;
    let email = document.getElementById("email").value;

    let phonePattern = /^[0-9]{10}$/;
    let emailPattern = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;

    if (!phonePattern.test(phone)) {
        alert("Please enter a valid 10 digit mobile number");
        return false;
    }

    if (!emailPattern.test(email)) {
        alert("Invalid email address");
        return false;
    }

    return true;
}
