        
                const result = await response.json();
                const messageDiv = document.getElementById('message');
                messageDiv.classList.remove('hidden');
                
                if (response.ok) {
                    messageDiv.textContent = 'Application submitted successfully!';
                    messageDiv.className = 'mt-4 text-center text-green-600';
                    e.target.reset();
                } else {
                    messageDiv.textContent = `