<%= form_with url: search_path, method: :get, class: "search__form flex align-center justify-center gap-half", data: { turbo_frame: "bar_content" } do |form| %>
  <%= form.label :q, "Search BOXCAR", class: "font-weight-black txt-nowrap" %>
  <%= text_field_tag :q, query_terms,
        class: "search__input input",
        type: "search",
        placeholder: "Find something…",
        autocomplete: "off",
        autofocus: true,
        data: {
          action: "keydown.enter->bar#showModalAndSubmit keydown.esc->bar#reset" } %>
  <button class="search__reset btn btn--circle borderless" data-action="bar#reset">
    <%= icon_tag "close" %>
    <span class="for-screen-reader">Close search</span>
  </button>
<% end %>
