<div class="lot-filters">
  <h2>Choose a category</h2>
  {% from 'macros/_filters.html' import checkbox, lot_filters %}
  <ul>
    <li>
      {% if current_lot %}
        <a href="{{ url_for('.search_services', q=search_keywords) }}">All categories</a>
      {% else %}
        All categories
      {% endif %}
    </li>
  {% for lot in lots %}
    <li>
      {% if lot.link %}<a href="{{ lot.link }}">{% endif %}{% if lot.selected %}<strong>{% endif %}
        {{ lot.name }}
      {% if lot.selected %}</strong>{% endif %}{% if lot.link %}</a>{% endif %}
      {% if lot.categories and lot.selected %}
        {% with categories=lot.categories %}
          {% include 'search/_categories.html' %}
        {% endwith %}
      {% endif %}
    </li>
  {% endfor %}
  </ul>
</div>
<div class="govuk-option-select filter-field-text">
  <div class="container-head">
    <label class="option-select-label" for="keywords">
      Keywords
    </label>
  </div>
  <input type="text" name="q" id="keywords" value="{{ search_keywords }}" maxlength="200">
</div>

{% if current_lot %}
<input type="hidden" name="lot" value="{{ current_lot.slug }}" />
{% endif %}

{% if current_category_filter %}
<input type="hidden" name="{{ current_category_filter.name }}" value="{{ current_category_filter.value }}" />
{% endif %}

{% include 'search/_filters.html' %}

<div class="govuk-option-select filter-field-text">
  <div class="container-head">
    <label class="option-select-label" for="keywords">
      Keywords
    </label>
  </div>
  <input type="text" name="q" id="keywords" value="{{ search_keywords }}" maxlength="200">
</div>

<div class="lot-filters">
  <h2>Choose a category</h2>
  {% from 'macros/_filters.html' import checkbox, lot_filters %}
  <ul>
    <li>
      {% if current_lot %}
        <a href="{{ url_for('.search_services', q=search_keywords) }}">All categories</a>
      {% else %}
        All categories
      {% endif %}
    </li>
  {% for lot in lots %}
    <li>
      {% if lot.link %}<a href="{{ lot.link }}">{% endif %}{% if lot.selected %}<strong>{% endif %}
        {{ lot.name }}
      {% if lot.selected %}</strong>{% endif %}{% if lot.link %}</a>{% endif %}
      {% if lot.categories and lot.selected %}
        {% with categories=lot.categories %}
          {% include 'search/_categories.html' %}
        {% endwith %}
      {% endif %}
    </li>
  {% endfor %}
  </ul>
</div>


{% if current_lot %}
<input type="hidden" name="lot" value="{{ current_lot.slug }}" />
{% endif %}

{% if current_category_filter %}
<input type="hidden" name="{{ current_category_filter.name }}" value="{{ current_category_filter.value }}" />
{% endif %}

{% include 'search/_filters.html' %}

Move "Keywords" search box above categories
Move "Keywords" search box above categories
