}
        });
    })

    async function handleSubmit(event) {
        event.preventDefault();
        const allValid = form.checkValidity();

        if (!allValid) return;

        const status = document.getElementById("contact-form-status");
        const formData = new FormData(event.target);

        fields.forEach(field => {
            field.setAttribute("disabled", true);
        });

        fetch(event.target.action, {
            method: form.method,
            body: formData,
            heade