<turbo-stream action="replace" target="form_card"><template>
  <turbo-frame id="form_card">
  



  <form class="" data-controller="nested-form" data-nested-form-wrapper-selector-value=".nested-form-wrapper" action="/summits/2/registrations" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="BRZuc9EPX0y322_3eqXXUWyF4miphjMHRGucCEXBbanTAQvXDC612-k0_3Wrvcztyfm13M_V_ko-urk6f26Gsw" autocomplete="off" />
    <div class="mb-4">
      <turbo-frame id="error_frame">
</turbo-frame>
    </div>

    <input value="group" autocomplete="off" type="hidden" name="registration[registration_type]" id="registration_registration_type" />
    <input autocomplete="off" type="hidden" name="registration[is_free]" id="registration_is_free" />
    <input autocomplete="off" type="hidden" name="registration[is_ai_discount]" id="registration_is_ai_discount" />
    <input autocomplete="off" type="hidden" name="registration[is_flash_sale]" id="registration_is_flash_sale" />

      <div class="mb-6">
        <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_participation_option">Participation option</label>
        <select class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full bg-white" placeholder="Select an option" name="registration[participation_option]" id="registration_participation_option"><option value="">Select Option</option>
<option value="event">Event</option></select>
        <turbo-frame id="Registration_participation_option_error_frame"></turbo-frame>
      </div>


    <div class="mb-6">
      <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_email">Registration Email</label>
      <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="your.email@example.com" type="email" name="registration[email]" id="registration_email" />
      <turbo-frame id="Registration_email_error_frame"></turbo-frame>
    </div>

    <div class="mb-6">
      <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_additional_information">Additional information</label>
      <textarea class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full h-24 resize-none" placeholder="Any additional information you&#39;d like to share..." name="registration[additional_information]" id="registration_additional_information">
</textarea>
      <turbo-frame id="Registration_additional_information_error_frame"></turbo-frame>
    </div>

    <div class="mb-6 pb-6 border-b border-gray-200">
      <div class="flex items-start">
        <input name="registration[subscribe]" type="hidden" value="0" autocomplete="off" /><input class="w-4 h-4 text-primary-orange bg-gray-100 border-gray-300 rounded focus:outline-none mt-0.5" type="checkbox" value="1" name="registration[subscribe]" id="registration_subscribe" />
        <label class="ml-3 text-sm text-gray-700" for="registration_subscribe">Would you like to stay up to date with the latest Knowledge Innovations events, news, podcasts and more?</label>
      </div>
      <turbo-frame id="Registration_subscribe_error_frame"></turbo-frame>
    </div>

    <h3 class="text-md font-bold text-gray-900 mb-4 mt-6 sm:mt-0">Attendants Information</h3>

    
      <div class="nested-form-wrapper grid grid-cols-1 md:grid-cols-2 gap-4 mb-6 pb-6 border-b border-gray-200" data-new-record="true">
  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_first_name">First name</label>
    <input class="block text-sm rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="First name" type="text" name="registration[attendants_attributes][0][first_name]" id="registration_attendants_attributes_0_first_name" />
    <turbo-frame id="Attendant_first_name_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_last_name">Last name</label>
    <input class="block text-sm rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Last name" type="text" name="registration[attendants_attributes][0][last_name]" id="registration_attendants_attributes_0_last_name" />
    <turbo-frame id="Attendant_last_name_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_gender">Gender</label>
    <select class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full bg-white" name="registration[attendants_attributes][0][gender]" id="registration_attendants_attributes_0_gender"><option value="">Select gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option></select>
    <turbo-frame id="Attendant_gender_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_email">Email</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="email@example.com" type="email" name="registration[attendants_attributes][0][email]" id="registration_attendants_attributes_0_email" />
    <turbo-frame id="Attendant_email_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_contact_number">Contact number</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="+233 XX XXX XXXX" type="tel" name="registration[attendants_attributes][0][contact_number]" id="registration_attendants_attributes_0_contact_number" />
    <turbo-frame id="Attendant_contact_number_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_country">Country</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Ghana" type="text" name="registration[attendants_attributes][0][country]" id="registration_attendants_attributes_0_country" />
    <turbo-frame id="Attendant_country_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_city">City</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Accra" type="text" name="registration[attendants_attributes][0][city]" id="registration_attendants_attributes_0_city" />
    <turbo-frame id="Attendant_city_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_0_employer">Employer</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Company or organization" type="text" name="registration[attendants_attributes][0][employer]" id="registration_attendants_attributes_0_employer" />
    <turbo-frame id="Attendant_employer_error_frame"></turbo-frame>
  </div>


  <div class="md:col-span-2">
    <button type="button" data-action="nested-form#remove" class="w-full mt-4 rounded-lg py-2.5 px-4 bg-red-600 text-sm text-white font-semibold hover:bg-red-700 transition cursor-pointer">
      Remove Attendant
    </button>
  </div>

  <input autocomplete="off" type="hidden" value="false" name="registration[attendants_attributes][0][_destroy]" id="registration_attendants_attributes_0__destroy" />
</div>

    <template data-nested-form-target="template">
      
        <div class="nested-form-wrapper grid grid-cols-1 md:grid-cols-2 gap-4 mb-6 pb-6 border-b border-gray-200" data-new-record="true">
  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_first_name">First name</label>
    <input class="block text-sm rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="First name" type="text" name="registration[attendants_attributes][NEW_RECORD][first_name]" id="registration_attendants_attributes_NEW_RECORD_first_name" />
    <turbo-frame id="Attendant_first_name_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_last_name">Last name</label>
    <input class="block text-sm rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Last name" type="text" name="registration[attendants_attributes][NEW_RECORD][last_name]" id="registration_attendants_attributes_NEW_RECORD_last_name" />
    <turbo-frame id="Attendant_last_name_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_gender">Gender</label>
    <select class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full bg-white" name="registration[attendants_attributes][NEW_RECORD][gender]" id="registration_attendants_attributes_NEW_RECORD_gender"><option value="">Select gender</option>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option></select>
    <turbo-frame id="Attendant_gender_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_email">Email</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="email@example.com" type="email" name="registration[attendants_attributes][NEW_RECORD][email]" id="registration_attendants_attributes_NEW_RECORD_email" />
    <turbo-frame id="Attendant_email_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_contact_number">Contact number</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="+233 XX XXX XXXX" type="tel" name="registration[attendants_attributes][NEW_RECORD][contact_number]" id="registration_attendants_attributes_NEW_RECORD_contact_number" />
    <turbo-frame id="Attendant_contact_number_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_country">Country</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Ghana" type="text" name="registration[attendants_attributes][NEW_RECORD][country]" id="registration_attendants_attributes_NEW_RECORD_country" />
    <turbo-frame id="Attendant_country_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_city">City</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Accra" type="text" name="registration[attendants_attributes][NEW_RECORD][city]" id="registration_attendants_attributes_NEW_RECORD_city" />
    <turbo-frame id="Attendant_city_error_frame"></turbo-frame>
  </div>

  <div class="col-span-1">
    <label class="block text-sm font-semibold text-gray-900 mb-2" for="registration_attendants_attributes_NEW_RECORD_employer">Employer</label>
    <input class="text-sm block rounded-lg border border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="Company or organization" type="text" name="registration[attendants_attributes][NEW_RECORD][employer]" id="registration_attendants_attributes_NEW_RECORD_employer" />
    <turbo-frame id="Attendant_employer_error_frame"></turbo-frame>
  </div>


  <div class="md:col-span-2">
    <button type="button" data-action="nested-form#remove" class="w-full mt-4 rounded-lg py-2.5 px-4 bg-red-600 text-sm text-white font-semibold hover:bg-red-700 transition cursor-pointer">
      Remove Attendant
    </button>
  </div>

  <input autocomplete="off" type="hidden" value="false" name="registration[attendants_attributes][NEW_RECORD][_destroy]" id="registration_attendants_attributes_NEW_RECORD__destroy" />
</div>
    </template>

    <div data-nested-form-target="target"></div>

      <button type="button" data-action="nested-form#add" class="mt-4 mb-8 w-full sm:w-auto rounded-lg py-2.5 px-4 bg-gray-900 text-white text-sm font-semibold hover:bg-gray-800 transition cursor-pointer">
        Add Attendant
      </button>

    <div class="mt-8">
      <turbo-frame id="math_validator">
  <div class="mb-6">
    <div class="p-4 sm:p-5 bg-white rounded-lg border-2 border-ai-blue-200">
      <div class="flex flex-col sm:flex-row items-start gap-3 sm:space-x-3">
        <div class="flex-shrink-0">
          <div class="w-10 h-10 rounded-lg bg-ai-blue-100 flex items-center justify-center">
            <svg class="w-5 h-5 text-ai-blue-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
              <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"></path>
            </svg>
          </div>
        </div>
        <div class="flex-1">
          <h3 class="text-md font-bold text-accent-dark-900 mb-1">Verify You're Human</h3>
          <p class="text-xs sm:text-sm text-gray-600 mb-4">Solve this simple math problem to continue</p>

          <div class="flex flex-wrap items-center gap-2 sm:gap-3">
            <div class="flex items-center justify-center w-12 h-12 bg-accent-orange-100 rounded-lg border border-accent-orange-200">
              <span class="text-md font-bold text-primary-orange">2</span>
            </div>
            <span class="text-md font-bold text-gray-600">+</span>
            <div class="flex items-center justify-center w-12 h-12 bg-accent-orange-100 rounded-lg border border-accent-orange-200">
              <span class="text-md font-bold text-primary-orange">2</span>
            </div>
            <span class="text-md font-bold text-gray-600">=</span>
            <div class="flex-1 max-w-[120px]">
                <input type="number" name="math_answer" id="math_answer" class="text-sm text-center font-semibold block rounded-lg border-2 border-gray-300 focus:outline-none focus:border-primary-orange px-3 py-2.5 w-full" placeholder="?" required="required" />
            </div>
          </div>

            <input type="hidden" name="math_num1" id="math_num1" value="2" autocomplete="off" />
            <input type="hidden" name="math_num2" id="math_num2" value="2" autocomplete="off" />
        </div>
      </div>
    </div>

    <turbo-frame id="Registration_math_answer_error_frame"></turbo-frame>
  </div>
</turbo-frame>
    </div>


    <div class="flex flex-col sm:flex-row justify-end gap-3 mt-6 pt-6 border-t border-gray-200">
      <button name="button" type="submit" class="w-full sm:w-auto rounded-lg py-3 px-6 bg-primary-orange text-white text-sm font-semibold hover:bg-orange-600 transition cursor-pointer" data-turbo-submits-with="&lt;svg aria-hidden=&#39;false&#39; role=&#39;status&#39; class=&#39;inline w-4 h-4 me-3 text-white animate-spin&#39; viewBox=&#39;0 0 100 101&#39; fill=&#39;none&#39; xmlns=&#39;http://www.w3.org/2000/svg&#39;&gt;&lt;path d=&#39;M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z&#39; fill=&#39;#E5E7EB&#39;/&gt;&lt;path d=&#39;M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z&#39; fill=&#39;currentColor&#39;/&gt;&lt;/svg&gt;">Submit Registration</button>
    </div>
</form></turbo-frame>

</template></turbo-stream>