/* Form Validation Code */
/* This function checks for any errors on form submit. If there are errors, it displays the errors. Otherwise, it submits the form.
I'm assuming the error styles that are currently in use stay there, so I'm not adding any additional styles. */
$(function() {
$('.wpcf7-form').submit(function(e) {
// declare variables and error messages
let errorFound = false;