<div class="flex flex-col gap-4">
    <%= form_with url: rsvp_path, method: :post do |form| %>
    <div class="border-4 border-[#544FFF] rounded flex items-center justify-center">
        <%= form.text_field :email, placeholder: "Enter your email to join!", class: "landing-input bg-white text-black px-4 py-2 w-3/4 md:w-[300px] flex-grow outline-none" %>
        <%= form.hidden_field :url_params, value: request.query_string %>
        <%= form.submit "→", class: "landing-button bg-[#544FFF] text-white px-4 py-2 font-bold" %>
    </div>
    <% end %>
    <% if flash[:notice] %>
        <div class="bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative mb-4" role="alert">
        <span class="block sm:inline"><%= flash[:notice] %></span>
        </div>
    <% end %>

    <% if flash[:alert] %>
        <div class="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative mb-4" role="alert">
        <span class="block sm:inline"><%= flash[:alert] %></span>
        </div>
    <% end %>

</div>

