<%= form_with url: entries_path, method: :get, data: { turbo_stream: true } do |form| %>
<%= render "entries/search_hidden_fields" %>
<%= form.text_field :q, value: @query, placeholder: "Search words, phrases, or biblical terms...", class: "block w-full pl-11 pr-10 mt-2 mb-2 py-4 bg-white border border-slate-200 rounded-2xl shadow-sm focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition", oninput: "const clearBtn=this.form.querySelector('[data-clear-search]'); if(clearBtn){clearBtn.classList.toggle('hidden', this.value.length===0);} this.form.requestSubmit();" %>
<% end %>