{% if widgetID == 1 %}

<script
  src="https://code.jquery.com/jquery-3.4.1.min.js"
  integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
  crossorigin="anonymous"></script>

{% endif %}

{% if title or text or form or subtitle or subtext %}
{% set triangle = "form" %}
  <section class="section-type bg--grey m_form" m-pack="basic">

    {% include 'm_components/widgets/headline.twig' with {title: title, text: text} only %}


    {% if form or subtitle or subtext %}
      <div class="m_form__content section-grid section-container">

        {% if subtitle or subtext %}
          <div class="m_form__text">
            {% if subtitle %}
              <h3>{{subtitle|raw}}</h3>
            {% endif %}
            {% if subtext %}
              <div class="m_content">
                {{fn.apply_filters('the_content', fn.html_entity_decode(subtext))|raw}}
              </div>
            {% endif %}
          </div>
        {% endif %}

        {% if fn.function_exists('gravity_form') and form %}
          <div class="m_form__form">
            {{ fn.gravity_form(form, false, false, false, '', true, 12)|raw }}
          </div>
        {% endif %}

      </div>
    {% endif %}

  </section>
{% endif %}
