ield__message"></div>
      </div>
      <button type="submit">Отправить</button>
    </form>

  </div>

  <script>

    const form = document.querySelector('#form');

    form.addEventListener('submit', (e) => {
      e.preventDefault();
      const inputs = form.querySelectorAll('input');
      inputs.forEach((input) => {
        input.classList.remove('text-field__input_valid');
        input.classList.remove('text-field__input_invalid');
        input.nextElementSibling.textContent = '';
      