<section class="section narrow">
  <div class="section-header">
    <p class="eyebrow">Check-in online</p>
    <h1>Bilet <%= ticket.code %></h1>
  </div>
  <% if (checkin) { %><p class="notice">Status curent: <strong><%= checkin.status %></strong></p><% } %>
  <form class="auth-form" method="post" action="/account/festival/<%= eventId %>/checkin">
    <%- include('../partials/csrf-field') %>
    <label>Nume complet <input name="full_name" required value="<%= checkin?.full_name || ticket.holder_name || '' %>"></label>
    <label>Email <input name="email" type="email" required value="<%= checkin?.email || ticket.holder_email || '' %>"></label>
    <label>Telefon <input name="phone" value="<%= checkin?.phone || '' %>"></label>
    <label>Data nasterii <input name="date_of_birth" type="date" value="<%= checkin?.date_of_birth || '' %>"></label>
    <label>Tip document <input name="document_type" value="<%= checkin?.document_type || '' %>"></label>
    <label>Ultimele 4 caractere document <input name="document_last4" maxlength="4" value="<%= checkin?.document_last4 || '' %>"></label>
    <label>URL poza verificare <input name="verification_photo_url" value="<%= checkin?.verification_photo_url || '' %>"></label>
    <label>URL document privat <input name="raw_document_url" value="<%= checkin?.raw_document_url || '' %>"></label>
    <label><input type="checkbox" name="consent_accepted" value="1" required> Accept prelucrarea datelor pentru verificarea accesului</label>
    <button>Trimite check-in</button>
  </form>
</section>
