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

  </div>

  <script>

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

    const checkValidity = (input) => {
      input.classList.remove('text-field__input_valid');
      input.classList.remove('text-field__input_invalid');
      input.nextElementSibling.textContent = '';
      if (input.checkValidity()) {
        input.classList.add('text-field__input_valid');
        input.nextElementSibling.textCon