/*

Theme Name: X – Child Theme
Theme URI: http://theme.co/x/
Author: Themeco
Author URI: http://theme.co/
Description: Make all of your modifications to X in this child theme.
Version: 1.0.0
Template: x

*/

footer.x-colophon {
    background-color: #542344;
}

<script>
  document.addEventListener('DOMContentLoaded', function () {
    const forms = document.querySelectorAll('form.gform_wrapper form');

    forms.forEach(function(form) {
      form.addEventListener('submit', function (e) {
        const minFields = form.querySelectorAll('.minlength-750');
        let isValid = true;

        minFields.forEach(function(field) {
          const value = field.value.trim();
          if (value.length < 750) {
            e.preventDefault();
            alert("Minimum 750 characters");
            field.focus();
            isValid = false;
            return false;
          }
        });

        if (!isValid) {
          e.preventDefault();
        }
      });
    });
  });
</script>
