st 4 digits.';
                    isValid = false;
                } else if (phoneInput.value.length > 50) {
                    document.getElementById('phoneError').innerText = 'Phone number is too long.';
                    isValid = false;
                } else {
                    document.getElementById('phoneError').innerText = '';
                }

                // Validate Address
                const addressRegex = /^[A-Za-z0-9\s,]*$/;
                if (addressInput.value.length < 20 ||