[et_pb_section fb_built="1" fullwidth="on" _builder_version="4.23.1" module_alignment="center" global_colors_info="{}"][et_pb_fullwidth_image src="https://www.tucsonmariachi.org/wp-content/uploads/2017/01/register-page.jpg" _builder_version="4.23.1" module_alignment="center" animation="off" use_border_color="off" border_color="#ffffff" border_style="solid" global_colors_info="{}"]&nbsp;[/et_pb_fullwidth_image][et_pb_fullwidth_code disabled_on="on|on|on" _builder_version="4.25.1" _module_preset="default" module_alignment="center" custom_css_main_element="    display: flex;||    align-items: center;||    justify-content: center;" custom_css_free_form="@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;1,200;1,300;1,400;1,500;1,600&display=swap');||||* {||    margin: 0;||    padding: 0;||    box-sizing: border-box;||    font-family: 'Poppins', sans-serif;||}||||body {||    min-height: 100vh;||    background: #008000||}||||.form-container {||    background-color: #fff;||    position: relative;||  	max-width: 900px;||    width: 100%;||    border-radius: 6px;||    padding: 30px;||    margin: 25px 15px;||    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);||}||||.form-container header {||    font-size: 20px;||    font-weight: 600;||    color: #333;||}||||.form-container form {||    position: relative;||    background-color: #fff;||}||||.pre-form {||    display: flex;||    flex-direction: column;||    width: 40%;||}||||.button-container {||    display: flex;||    justify-content: space-evenly;||}||||#participant-type {||    max-width: 175px;||}||||#group-number {||    max-width: 80px;||}||||.number {||    display: flex;||    flex-direction: column;||}||||.title {||    display: block;||    margin-bottom: 8px;||    font-size: 16px;||    font-weight: 600;||    margin: 6px 0;||    color: #333;||}||||.fields {||    display: flex;||    flex-wrap: wrap;||    align-items: center;||    justify-content: space-between;||  	background-color: #f2f2f2;||  	margin-bottom: 40px;||  	padding: 15px;||  	border-radius: 5px;||}||||.input-field {||    display: flex;||    flex-direction: column;||    width: calc(100% / 2 - 10px);||    margin: 4px 0||}||||#address {||    width: 100%||}||||label {||    font-size: 12px;||    font-weight: 500;||    color: #2e2e2e;||}||||p {||    font-size: 14px;||    font-weight: 500;||    color: #2e2e2e;||    margin-bottom: 15px;||}||||input {||    height: 42px;||    margin: 8px 0;||    outline: none;||    font-size: 14px;||    font-weight: 400;||    color: #333;||    border-radius: 5px;||    border: 1px solid #aaa;||    padding: 0 15px;||}||||select {||    height: 42px;||    margin: 8px 0;||    outline: none;||    font-size: 14px;||    font-weight: 400;||    color: #333;||    border-radius: 5px;||    border: 1px solid #aaa;||    padding: 0 15px;||}||||.hide {||    display: none;||}||||.block {||    display: block||}||||button {||    font-size: 14px;||    font-weight: 400;||    color: #333;||    border-radius: 5px;||    border: 1px solid #aaa;||    padding: 0 15px;||    height: 42px;||    margin: 8px 0;||}||||.song-container {||    display: flex;||    flex-wrap: wrap;||    align-items: center;||    justify-content: space-between;||    flex-direction: column;||}||||.button-container {||    display: flex;||    justify-content: space-between;||}||||/* Main confirmation section styles - Already aligned */||.confirmation-section {||    background-color: #fafafa;||    position: relative;||    max-width: 900px;||    width: 90%;||    border: 1px solid #e0e0e0;||    border-radius: 6px;||    padding: 20px;||    margin: 25px auto;||    box-shadow: 0 2px 4px rgba(0,0,0,0.1);||}||||/* Adjusting styles for the details sections */||.individual-details, .performer-details {||    background-color: #fff;||    border: 1px solid #e0e0e0;||    border-left: 5px solid #4CAF50;||    padding: 15px;||    margin-bottom: 15px;||}||||/* Style for all headings within the confirmation section */||.confirmation-section h3, .confirmation-section h4 {||    color: #4CAF50;||    margin-bottom: 10px;||}||||/* Text content styles */||.confirmation-section p {||    color: #666;||    margin: 5px 0;||}||||.back-to-form, .payment {||    margin-top: 10px;||    margin-right: 5px;||}||||.payment-container {||  display: flex;||  justify-content: flex-end;||}||||#link {||  color: #2e2e2e;||}" disabled="on" global_colors_info="{}"]    <div class="form-container"><!-- [et_pb_line_break_holder] -->        <h1>TIMC 2024 Individual Registration</h1><!-- [et_pb_line_break_holder] -->        <form class="form individual"><!-- [et_pb_line_break_holder] -->            <div class="details"><!-- [et_pb_line_break_holder] -->                <div class="fields"><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="single-workshop-type">Workshop Type</label><!-- [et_pb_line_break_holder] -->                        <select name="single-workshop-type" id="single-workshop-type"><!-- [et_pb_line_break_holder] -->                            <option value="select-workshop" selected disabled>Select a workshop type</option><!-- [et_pb_line_break_holder] -->                            <option value="Folklorico">Folklorico</option><!-- [et_pb_line_break_holder] -->                            <option value="Mariachi">Mariachi</option><!-- [et_pb_line_break_holder] -->                        </select><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                <span class="title">Personal Details</span><!-- [et_pb_line_break_holder] -->              	<label>The person filling out this form should enter their information here</label><!-- [et_pb_line_break_holder] -->                <div class="fields"><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-first-name">First Name</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-first-name" id="personal-single-first-name"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your first name" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-last-name">Last Name</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-last-name" id="personal-single-last-name"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your last name" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-street-address">Street Address</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-street-address" id="personal-single-street-address"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your address" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-city">City</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-city" id="personal-single-city"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your city" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-state">State</label><!-- [et_pb_line_break_holder] -->                        <select name="personal-single-state" id="personal-single-state" required><!-- [et_pb_line_break_holder] -->                            <option value="select-a-value">Select a state</option><!-- [et_pb_line_break_holder] -->                            <option value="AL">Alabama</option><!-- [et_pb_line_break_holder] -->                            <option value="AK">Alaska</option><!-- [et_pb_line_break_holder] -->                            <option value="AZ">Arizona</option><!-- [et_pb_line_break_holder] -->                            <option value="AR">Arkansas</option><!-- [et_pb_line_break_holder] -->                            <option value="CA">California</option><!-- [et_pb_line_break_holder] -->                            <option value="CO">Colorado</option><!-- [et_pb_line_break_holder] -->                            <option value="CT">Connecticut</option><!-- [et_pb_line_break_holder] -->                            <option value="DE">Delaware</option><!-- [et_pb_line_break_holder] -->                            <option value="DC">District Of Columbia</option><!-- [et_pb_line_break_holder] -->                            <option value="FL">Florida</option><!-- [et_pb_line_break_holder] -->                            <option value="GA">Georgia</option><!-- [et_pb_line_break_holder] -->                            <option value="HI">Hawaii</option><!-- [et_pb_line_break_holder] -->                            <option value="ID">Idaho</option><!-- [et_pb_line_break_holder] -->                            <option value="IL">Illinois</option><!-- [et_pb_line_break_holder] -->                            <option value="IN">Indiana</option><!-- [et_pb_line_break_holder] -->                            <option value="IA">Iowa</option><!-- [et_pb_line_break_holder] -->                            <option value="KS">Kansas</option><!-- [et_pb_line_break_holder] -->                            <option value="KY">Kentucky</option><!-- [et_pb_line_break_holder] -->                            <option value="LA">Louisiana</option><!-- [et_pb_line_break_holder] -->                            <option value="ME">Maine</option><!-- [et_pb_line_break_holder] -->                            <option value="MD">Maryland</option><!-- [et_pb_line_break_holder] -->                            <option value="MA">Massachusetts</option><!-- [et_pb_line_break_holder] -->                            <option value="MI">Michigan</option><!-- [et_pb_line_break_holder] -->                            <option value="MN">Minnesota</option><!-- [et_pb_line_break_holder] -->                            <option value="MS">Mississippi</option><!-- [et_pb_line_break_holder] -->                            <option value="MO">Missouri</option><!-- [et_pb_line_break_holder] -->                            <option value="MT">Montana</option><!-- [et_pb_line_break_holder] -->                            <option value="NE">Nebraska</option><!-- [et_pb_line_break_holder] -->                            <option value="NV">Nevada</option><!-- [et_pb_line_break_holder] -->                            <option value="NH">New Hampshire</option><!-- [et_pb_line_break_holder] -->                            <option value="NJ">New Jersey</option><!-- [et_pb_line_break_holder] -->                            <option value="NM">New Mexico</option><!-- [et_pb_line_break_holder] -->                            <option value="NY">New York</option><!-- [et_pb_line_break_holder] -->                            <option value="NC">North Carolina</option><!-- [et_pb_line_break_holder] -->                            <option value="ND">North Dakota</option><!-- [et_pb_line_break_holder] -->                            <option value="OH">Ohio</option><!-- [et_pb_line_break_holder] -->                            <option value="OK">Oklahoma</option><!-- [et_pb_line_break_holder] -->                            <option value="OR">Oregon</option><!-- [et_pb_line_break_holder] -->                            <option value="PA">Pennsylvania</option><!-- [et_pb_line_break_holder] -->                            <option value="RI">Rhode Island</option><!-- [et_pb_line_break_holder] -->                            <option value="SC">South Carolina</option><!-- [et_pb_line_break_holder] -->                            <option value="SD">South Dakota</option><!-- [et_pb_line_break_holder] -->                            <option value="TN">Tennessee</option><!-- [et_pb_line_break_holder] -->                            <option value="TX">Texas</option><!-- [et_pb_line_break_holder] -->                            <option value="UT">Utah</option><!-- [et_pb_line_break_holder] -->                            <option value="VT">Vermont</option><!-- [et_pb_line_break_holder] -->                            <option value="VA">Virginia</option><!-- [et_pb_line_break_holder] -->                            <option value="WA">Washington</option><!-- [et_pb_line_break_holder] -->                            <option value="WV">West Virginia</option><!-- [et_pb_line_break_holder] -->                            <option value="WI">Wisconsin</option><!-- [et_pb_line_break_holder] -->                            <option value="WY">Wyoming</option><!-- [et_pb_line_break_holder] -->                        </select><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-zip-code">Zip Code</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-zip-code" id="personal-single-zip-code"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your zip code" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-phone-number">Phone Number</label><!-- [et_pb_line_break_holder] -->                        <input type="text" name="personal-single-phone-number" id="personal-single-phone-number"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your phone number" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                    <div class="input-field"><!-- [et_pb_line_break_holder] -->                        <label for="personal-single-email">Email (required)</label><!-- [et_pb_line_break_holder] -->                        <input type="email" name="personal-single-email" id="personal-single-email"<!-- [et_pb_line_break_holder] -->                            placeholder="Enter your email address" required><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                <div class="performer-single-container"><!-- [et_pb_line_break_holder] -->                    <div class="single-performer-details"><!-- [et_pb_line_break_holder] -->                        <span class="title">Participant Details</span><!-- [et_pb_line_break_holder] -->                        <div class="fields"><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-first-name">Participant First Name (required)</label><!-- [et_pb_line_break_holder] -->                                <input type="text" name="performer-single-first-name" id="performer-single-first-name"<!-- [et_pb_line_break_holder] -->                                    placeholder="Enter participant's first name"><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-last-name">Participant Last Name (required)</label><!-- [et_pb_line_break_holder] -->                                <input type="text" name="performer-single-last-name" id="performer-single-last-name"<!-- [et_pb_line_break_holder] -->                                    placeholder="Enter participant's last name"><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                            <div class="input-field number"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-age">Participant Age</label><!-- [et_pb_line_break_holder] -->                                <input type="number" name="performer-single-age" id="performer-single-age"><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-gender">Participant Gender</label><!-- [et_pb_line_break_holder] -->                                <select name="performer-single-gender" id="performer-single-gender"><!-- [et_pb_line_break_holder] -->                                    <option value="select-gender" selected disabled>Select a gender</option><!-- [et_pb_line_break_holder] -->                                    <option value="Male">Male</option><!-- [et_pb_line_break_holder] -->                                    <option value="Female">Female</option><!-- [et_pb_line_break_holder] -->                                </select><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] -->                          <!-- [et_pb_line_break_holder] -->                          	<div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-race">Participant Race</label><!-- [et_pb_line_break_holder] -->                                <select name="performer-single-race" id="performer-single-race"><!-- [et_pb_line_break_holder] -->                                    <option value="select-gender" selected disabled>Select a race</option><!-- [et_pb_line_break_holder] -->                                    <option value="African American">African American</option><!-- [et_pb_line_break_holder] -->                                  <!-- [et_pb_line_break_holder] -->                                  	<option value="Asian American">Asian American</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->																		<option value="Hispanic">Hispanic</option><!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->																		<option value="Mexican American">Mexican American</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->																		<option value="Native American">Native American</option><!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->																		<option value="White">White</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->																		<option value="Other">Other</option><!-- [et_pb_line_break_holder] -->                                </select><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-grade">Participant Grade</label><!-- [et_pb_line_break_holder] -->                                <select name="performer-single-grade" id="performer-single-grade"><!-- [et_pb_line_break_holder] -->                                    <option value="select-grade" selected disabled>Select a grade</option><!-- [et_pb_line_break_holder] -->                                    <option value="Elementary School">Elementary School</option><!-- [et_pb_line_break_holder] -->                                    <option value="Middle School">Middle School</option><!-- [et_pb_line_break_holder] -->                                    <option value="High School">High School</option><!-- [et_pb_line_break_holder] -->                                    <option value="College">College</option><!-- [et_pb_line_break_holder] -->                                    <option value="N/A">N/A</option><!-- [et_pb_line_break_holder] -->                                </select><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-class">Participant Class (required)</label><!-- [et_pb_line_break_holder] -->                                <select name="performer-single-class" id="performer-single-class"><!-- [et_pb_line_break_holder] -->                                    <option value="select-class" selected>Select a class</option><!-- [et_pb_line_break_holder] -->                                    <option value="Dance">Dance</option><!-- [et_pb_line_break_holder] -->                                    <option value="Guitar">Guitar</option><!-- [et_pb_line_break_holder] -->                                    <option value="Guitarron">Guitarron</option><!-- [et_pb_line_break_holder] -->                                    <option value="Harp">Harp</option><!-- [et_pb_line_break_holder] -->                                    <option value="Trumpet">Trumpet</option><!-- [et_pb_line_break_holder] -->                                    <option value="Vihuela">Vihuela</option><!-- [et_pb_line_break_holder] -->                                    <option value="Violin">Violin</option><!-- [et_pb_line_break_holder] -->                                    <option value="Voice">Voice</option><!-- [et_pb_line_break_holder] -->                                </select><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->                            <div class="input-field"><!-- [et_pb_line_break_holder] -->                                <label for="performer-single-level">Participant Level (required)</label><!-- [et_pb_line_break_holder] -->                                <select name="performer-single-level" id="performer-single-level"><!-- [et_pb_line_break_holder] -->                                    <option value="select-level" selected>Select a level</option><!-- [et_pb_line_break_holder] -->                                    <option value="I">I</option><!-- [et_pb_line_break_holder] -->                                    <option value="II">II</option><!-- [et_pb_line_break_holder] -->                                    <option value="III">III</option><!-- [et_pb_line_break_holder] -->                                    <option value="Master">Master</option><!-- [et_pb_line_break_holder] -->                                </select><!-- [et_pb_line_break_holder] -->                            </div><!-- [et_pb_line_break_holder] -->                        </div><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                </div><!-- [et_pb_line_break_holder] --><div><!-- [et_pb_line_break_holder] --> <button class="continue" type="button"><a id='link' href="#">Continue to Confirmation</a></button><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] -->            </div><!-- [et_pb_line_break_holder] -->            <!-- Confirmation Section, initially hidden --><!-- [et_pb_line_break_holder] -->            <div class="confirmation-section" style="display: none;"><!-- [et_pb_line_break_holder] -->                <!-- Confirmation details will be dynamically inserted here --><!-- [et_pb_line_break_holder] -->            </div><!-- [et_pb_line_break_holder] -->        </form><!-- [et_pb_line_break_holder] -->    </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- JavaScript includes (jQuery, Stripe, custom scripts) --><!-- [et_pb_line_break_holder] --><script src="https://code.jquery.com/jquery-3.7.1.min.js"></script><!-- [et_pb_line_break_holder] --><script src="https://js.stripe.com/v3/"></script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><script><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->$(document).ready(function () {<!-- [et_pb_line_break_holder] -->  	initiateStripePayment();<!-- [et_pb_line_break_holder] -->  	clearSessionStorage();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $(".save-for-later").on("click", function () {<!-- [et_pb_line_break_holder] -->        saveAndContinueLater();<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $(".continue").on("click", function () {<!-- [et_pb_line_break_holder] -->      if (validateIndividualForm()) {<!-- [et_pb_line_break_holder] -->        displayConfirmation();<!-- [et_pb_line_break_holder] -->        bindBackButton();<!-- [et_pb_line_break_holder] -->        bindMoneyOrderButton();<!-- [et_pb_line_break_holder] -->        $(".details").hide();<!-- [et_pb_line_break_holder] -->        $(".confirmation-section").show();<!-- [et_pb_line_break_holder] -->      }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $('#back-to-form').on('click', function() {<!-- [et_pb_line_break_holder] -->        $('.confirmation-section').hide();<!-- [et_pb_line_break_holder] -->        $('.form-inputs').show();<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->  	    $('#single-workshop-type').change(function() {<!-- [et_pb_line_break_holder] -->        var workshopType = $(this).val();<!-- [et_pb_line_break_holder] -->        if (workshopType === 'Folklorico') {<!-- [et_pb_line_break_holder] -->            // If 'Folklorico' is selected, change the options in 'Participant Class' dropdown<!-- [et_pb_line_break_holder] -->            $('#performer-single-class').html('<option value="Dance">Dance</option>');<!-- [et_pb_line_break_holder] -->        } else {<!-- [et_pb_line_break_holder] -->            // Otherwise, populate with the original options<!-- [et_pb_line_break_holder] -->            $('#performer-single-class').html(`<!-- [et_pb_line_break_holder] -->                <option value="select-class">Select a class</option><!-- [et_pb_line_break_holder] -->                <option value="Guitar">Guitar</option><!-- [et_pb_line_break_holder] -->                <option value="Guitarron">Guitarron</option><!-- [et_pb_line_break_holder] -->                <option value="Harp">Harp</option><!-- [et_pb_line_break_holder] -->                <option value="Trumpet">Trumpet</option><!-- [et_pb_line_break_holder] -->                <option value="Vihuela">Vihuela</option><!-- [et_pb_line_break_holder] -->                <option value="Violin">Violin</option><!-- [et_pb_line_break_holder] -->                <option value="Voice">Voice</option><!-- [et_pb_line_break_holder] -->            `);<!-- [et_pb_line_break_holder] -->        }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function gatherGroupData() {<!-- [et_pb_line_break_holder] -->    let firstName = $("#performer-single-first-name").val();<!-- [et_pb_line_break_holder] -->    let lastName = $("#performer-single-last-name").val();<!-- [et_pb_line_break_holder] -->    let groupName = "INDIVIDUAL - " + firstName + " " + lastName;<!-- [et_pb_line_break_holder] -->    let performers = gatherPerformerData();<!-- [et_pb_line_break_holder] -->  	let totalCost = gatherTotalCost();<!-- [et_pb_line_break_holder] -->  return {<!-- [et_pb_line_break_holder] -->    groupName: groupName,<!-- [et_pb_line_break_holder] -->    groupType: 'Individual',<!-- [et_pb_line_break_holder] -->    groupShowcaseQuestion: '',<!-- [et_pb_line_break_holder] -->    groupGaribaldiQuestion: '',<!-- [et_pb_line_break_holder] -->    schoolName: '',<!-- [et_pb_line_break_holder] -->    workshopType: $("#single-workshop-type").val(),<!-- [et_pb_line_break_holder] -->    userFirstName: $("#personal-single-first-name").val(),<!-- [et_pb_line_break_holder] -->    userLastName: $("#personal-single-last-name").val(),<!-- [et_pb_line_break_holder] -->    userEmail: $("#personal-single-email").val(),<!-- [et_pb_line_break_holder] -->    userPhone: $("#personal-single-phone-number").val(),<!-- [et_pb_line_break_holder] -->    totalCost: totalCost<!-- [et_pb_line_break_holder] -->  };<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function gatherTotalCost() {<!-- [et_pb_line_break_holder] -->  let performersCostData = gatherPerformerData();<!-- [et_pb_line_break_holder] -->   let totalCost = 0; // Initialize totalCost<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    if (<!-- [et_pb_line_break_holder] -->      performersCostData[0].performerLevel === "Master" &&<!-- [et_pb_line_break_holder] -->      performersCostData[0].performerClass !== "Voice"<!-- [et_pb_line_break_holder] -->    ) {<!-- [et_pb_line_break_holder] -->      totalCost += 165;<!-- [et_pb_line_break_holder] -->    } else {<!-- [et_pb_line_break_holder] -->      totalCost += 115;<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->    return totalCost;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function gatherPerformerData() {<!-- [et_pb_line_break_holder] -->  let performers = [];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $(".single-performer-details").each(function () {<!-- [et_pb_line_break_holder] -->    let performer = {<!-- [et_pb_line_break_holder] -->      performerFirstName: $(this).find("#performer-single-first-name").val(),<!-- [et_pb_line_break_holder] -->      performerLastName: $(this).find("#performer-single-last-name").val(),<!-- [et_pb_line_break_holder] -->      performerAge: $(this).find("#performer-single-age").val(),<!-- [et_pb_line_break_holder] -->      performerGender: $(this).find("#performer-single-gender").val(),<!-- [et_pb_line_break_holder] -->      performerGrade: $(this).find("#performer-single-grade").val(),<!-- [et_pb_line_break_holder] -->      performerClass: $(this).find("#performer-single-class").val(),<!-- [et_pb_line_break_holder] -->      performerLevel: $(this).find("#performer-single-level").val(),<!-- [et_pb_line_break_holder] -->      performerRace: $(this).find("#performer-single-race").val(),<!-- [et_pb_line_break_holder] -->    };<!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->    // Calculate performer cost directly here<!-- [et_pb_line_break_holder] -->    if (<!-- [et_pb_line_break_holder] -->      performer.performerLevel === "Master" &&<!-- [et_pb_line_break_holder] -->      performer.performerClass !== "Voice"<!-- [et_pb_line_break_holder] -->    ) {<!-- [et_pb_line_break_holder] -->      performer.performerCost = 165;<!-- [et_pb_line_break_holder] -->    } else {<!-- [et_pb_line_break_holder] -->      performer.performerCost = 115;<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    performers.push(performer);<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] -->    return performers;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function compileData() {<!-- [et_pb_line_break_holder] -->  return {<!-- [et_pb_line_break_holder] -->    group: gatherGroupData(),<!-- [et_pb_line_break_holder] -->    performers: gatherPerformerData(),<!-- [et_pb_line_break_holder] -->  };<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function saveToSessionStorage() {<!-- [et_pb_line_break_holder] -->  let formData = {<!-- [et_pb_line_break_holder] -->    group: gatherGroupData(),<!-- [et_pb_line_break_holder] -->    performers: gatherPerformerData()<!-- [et_pb_line_break_holder] -->  };<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Save formData to session storage<!-- [et_pb_line_break_holder] -->  sessionStorage.setItem("formData", JSON.stringify(formData));<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  console.log('formData saved to Session Storage!');<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function initiateStripePayment() {<!-- [et_pb_line_break_holder] -->  const stripe = Stripe("pk_live_odbJE8ek2vn50XiF7r118nwp"); // Replace with your Stripe public key<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $(document).on('click', '.payment', function () {<!-- [et_pb_line_break_holder] -->    saveToSessionStorage();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    let performer = gatherPerformerData();<!-- [et_pb_line_break_holder] -->    let group = gatherGroupData();// Function to gather data for single performer<!-- [et_pb_line_break_holder] -->   	let totalCost = gatherTotalCost();<!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->    let formData = JSON.parse(sessionStorage.getItem("formData"));<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Check if formData exists and is not null<!-- [et_pb_line_break_holder] -->  if (formData) {<!-- [et_pb_line_break_holder] -->    $.ajax({<!-- [et_pb_line_break_holder] -->      url: "/wp-content/themes/customtheme/pre-purchase-email.php", // Replace with the actual path to your PHP script<!-- [et_pb_line_break_holder] -->      type: "POST",<!-- [et_pb_line_break_holder] -->      contentType: "application/json",<!-- [et_pb_line_break_holder] -->      data: JSON.stringify(formData),<!-- [et_pb_line_break_holder] -->      success: function (response) {<!-- [et_pb_line_break_holder] -->        console.log(response); // Log the response from the server<!-- [et_pb_line_break_holder] -->        // Handle success, e.g., show a success message to the user<!-- [et_pb_line_break_holder] -->      },<!-- [et_pb_line_break_holder] -->      error: function (xhr, status, error) {<!-- [et_pb_line_break_holder] -->        console.error(xhr.responseText); // Log any errors to the console<!-- [et_pb_line_break_holder] -->        // Handle errors, e.g., show an error message to the user<!-- [et_pb_line_break_holder] -->      },<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  } else {<!-- [et_pb_line_break_holder] -->    console.error("formData not found in session storage.");<!-- [et_pb_line_break_holder] -->    // Handle the case where formData is not found in session storage<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $.ajax({<!-- [et_pb_line_break_holder] -->      url: "/wp-content/themes/customtheme/payment-server.php",<!-- [et_pb_line_break_holder] -->      method: "POST",<!-- [et_pb_line_break_holder] -->      dataType: "json",<!-- [et_pb_line_break_holder] -->      data: JSON.stringify({<!-- [et_pb_line_break_holder] -->        performer: performer,<!-- [et_pb_line_break_holder] -->        totalCost: totalCost,<!-- [et_pb_line_break_holder] -->      }),<!-- [et_pb_line_break_holder] -->      success: function (session) {<!-- [et_pb_line_break_holder] -->        stripe.redirectToCheckout({ sessionId: session.id })<!-- [et_pb_line_break_holder] -->          .then(function (result) {<!-- [et_pb_line_break_holder] -->            if (result.error) {<!-- [et_pb_line_break_holder] -->              alert(result.error.message);<!-- [et_pb_line_break_holder] -->            }<!-- [et_pb_line_break_holder] -->          });<!-- [et_pb_line_break_holder] -->      },<!-- [et_pb_line_break_holder] -->      error: function (jqXHR, textStatus, errorThrown) {<!-- [et_pb_line_break_holder] -->        console.error("Error:", errorThrown);<!-- [et_pb_line_break_holder] -->      },<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function displayConfirmation() {<!-- [et_pb_line_break_holder] -->    let individualData = gatherGroupData();<!-- [et_pb_line_break_holder] -->    let performerData = gatherPerformerData();<!-- [et_pb_line_break_holder] -->  	let totalCost = gatherTotalCost();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    let confirmationHtml = '<h3>Confirmation Details</h3>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Display Individual's Personal Details<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="individual-details">';<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<h4>Personal Details</h4>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>First Name:</strong> ${individualData.userFirstName}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Last Name:</strong> ${individualData.userLastName}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Email:</strong> ${individualData.userEmail}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Phone:</strong> ${individualData.userPhone}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Workshop Type:</strong> ${individualData.workshopType}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->// Display Performer Details<!-- [et_pb_line_break_holder] -->confirmationHtml += '<div class="performer-details">';<!-- [et_pb_line_break_holder] -->confirmationHtml += `<h4>Participant Details</h4>`;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->// Access the first performer in the performers array<!-- [et_pb_line_break_holder] -->if (performerData.length > 0) {<!-- [et_pb_line_break_holder] -->    let firstPerformer = performerData[0];<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Name:</strong> ${firstPerformer.performerFirstName} ${firstPerformer.performerLastName}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Class:</strong> ${firstPerformer.performerClass}</p>`;<!-- [et_pb_line_break_holder] -->    confirmationHtml += `<p><strong>Level:</strong> ${firstPerformer.performerLevel}</p>`;<!-- [et_pb_line_break_holder] -->  	  	// Create a dynamic div for displaying the total cost<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="total-cost"><p><strong>Total Cost:</strong> $' + totalCost + '</p></div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->} else {<!-- [et_pb_line_break_holder] -->    confirmationHtml += "<p>No performer details available.</p>";<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->    confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    confirmationHtml += '<button class="back-to-form" type="button">Back to Form</button>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="payment-container"><button class="payment" type="button">Pay With Credit Card</button>';<!-- [et_pb_line_break_holder] -->  	confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    $('.confirmation-section').html(confirmationHtml);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function bindBackButton() {<!-- [et_pb_line_break_holder] -->    $('.back-to-form').on('click', function() {<!-- [et_pb_line_break_holder] -->        // Hide the confirmation section<!-- [et_pb_line_break_holder] -->        $('.confirmation-section').hide();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        // Show the form sections<!-- [et_pb_line_break_holder] -->        $('.details').show();<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function bindMoneyOrderButton() {<!-- [et_pb_line_break_holder] -->  $('.pay-with-money-order').on('click', function() {<!-- [et_pb_line_break_holder] -->    // Save current form data to sessionStorage first<!-- [et_pb_line_break_holder] -->    if (confirm("Are you sure you want to proceed with Purchase Order payment?")) {<!-- [et_pb_line_break_holder] -->      // User clicked 'Yes', proceed with Money Order payment process<!-- [et_pb_line_break_holder] -->      saveToSessionStorage();<!-- [et_pb_line_break_holder] -->      console.log('Proceeding with Purchase Order payment');<!-- [et_pb_line_break_holder] -->      window.location.href = 'https://www.tucsonmariachi.org/success-purchase-order';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    } else {<!-- [et_pb_line_break_holder] -->      // User clicked 'No', cancel the Money Order payment process<!-- [et_pb_line_break_holder] -->      console.log('Money Purchase payment cancelled by user.');<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --> });<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function clearSessionStorage() {<!-- [et_pb_line_break_holder] -->  try {<!-- [et_pb_line_break_holder] -->    sessionStorage.clear();<!-- [et_pb_line_break_holder] -->    console.log("Session storage cleared successfully.");<!-- [et_pb_line_break_holder] -->  } catch (error) {<!-- [et_pb_line_break_holder] -->    console.error("Error clearing session storage:", error);<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->// Function to validate the individual performer registration form<!-- [et_pb_line_break_holder] -->function validateIndividualForm() {<!-- [et_pb_line_break_holder] -->  // Reset any previous error messages<!-- [et_pb_line_break_holder] -->  const errorMessages = [];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  const userEmailInput = $("#personal-single-email");<!-- [et_pb_line_break_holder] -->  if (userEmailInput.val().trim() === "") {<!-- [et_pb_line_break_holder] -->    errorMessages.push("Personal Email is required.");<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Validate performer first name<!-- [et_pb_line_break_holder] -->  const performerFirstNameInput = $("#performer-single-first-name");<!-- [et_pb_line_break_holder] -->  if (performerFirstNameInput.val().trim() === "") {<!-- [et_pb_line_break_holder] -->    errorMessages.push("Performer First Name is required.");<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Validate performer last name<!-- [et_pb_line_break_holder] -->  const performerLastNameInput = $("#performer-single-last-name");<!-- [et_pb_line_break_holder] -->  if (performerLastNameInput.val().trim() === "") {<!-- [et_pb_line_break_holder] -->    errorMessages.push("Performer Last Name is required.");<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Validate performer class<!-- [et_pb_line_break_holder] -->  const performerClassInput = $("#performer-single-class");<!-- [et_pb_line_break_holder] -->  if (performerClassInput.val() === "select-class") {<!-- [et_pb_line_break_holder] -->    errorMessages.push("Performer Class is required.");<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Validate performer level<!-- [et_pb_line_break_holder] -->  const performerLevelInput = $("#performer-single-level");<!-- [et_pb_line_break_holder] -->  if (performerLevelInput.val() === "select-level") {<!-- [et_pb_line_break_holder] -->    errorMessages.push("Performer Level is required.");<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  // Display error messages if any<!-- [et_pb_line_break_holder] -->  if (errorMessages.length > 0) {<!-- [et_pb_line_break_holder] -->    const errorMessageString = errorMessages.join("\n");<!-- [et_pb_line_break_holder] -->    alert("Validation Error:\n" + errorMessageString);<!-- [et_pb_line_break_holder] -->    return false; // Prevent form submission<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  return true; // Form is valid<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></script>[/et_pb_fullwidth_code][/et_pb_section][et_pb_section fb_built="1" _builder_version="4.16" background_color="#527839" custom_padding="30px|0px|20px|0px" global_colors_info="{}"][et_pb_row _builder_version="4.16" background_size="initial" background_position="top_left" background_repeat="repeat" custom_margin="0px||0px|" custom_padding="0px|0px|0px|0px" custom_css_main_element="border: 1px solid #d6d6d6;" make_fullwidth="off" use_custom_width="off" width_unit="on" global_colors_info="{}"][et_pb_column type="4_4" _builder_version="4.16" background_color="#f2f2f2" custom_padding="|||" global_colors_info="{}" custom_padding__hover="|||"][et_pb_text admin_label="EXPLANATORY TEXT - HIDDEN" _builder_version="4.23.1" background_size="initial" background_position="top_left" background_repeat="repeat" text_orientation="center" module_alignment="center" custom_margin="0px||0px|" custom_padding="20px|20px|20px|20px" use_border_color="off" global_colors_info="{}"]<p>&nbsp;</p>
<h3><span style="color: #d50022;">PARTICIPANT RELEASE FORM</span></h3>
<p><strong>A MEDICAL RELEASE FORM AND PHOTO/PUBLICITY FORM, MUST BE SIGNED BY ALL PARTICIPANTS OR PARENT/GUARDIAN OF PARTICIPANTS UNDER AGE 18. THIS FORM IS REQUIRED.</strong><br />Make copies of this form as needed, and email a copy to Teri Lagunas at  <strong><a href="mailto:info@tucsonmariachi.org">info@tucsonmariachi.org</a></strong></p>
<p>&nbsp;</p>[/et_pb_text][/et_pb_column][/et_pb_row][et_pb_row _builder_version="4.16" background_size="initial" background_position="top_left" background_repeat="repeat" global_colors_info="{}"][et_pb_column type="4_4" _builder_version="4.16" custom_padding="|||" global_colors_info="{}" custom_padding__hover="|||"][et_pb_button button_url="https://www.tucsonmariachi.org/wp-content/uploads/2024/01/2024-TIMC-Release.pdf" url_new_window="on" button_text="DOWNLOAD PARTICIPANT RELEASE FORM" button_alignment="center" admin_label="PARTICIPANT RELEASE" _builder_version="4.23.1" background_layout="dark" global_colors_info="{}" button_text_size__hover_enabled="off" button_text_size__hover="null" button_one_text_size__hover_enabled="off" button_one_text_size__hover="null" button_two_text_size__hover_enabled="off" button_two_text_size__hover="null" button_text_color__hover_enabled="off" button_text_color__hover="null" button_one_text_color__hover_enabled="off" button_one_text_color__hover="null" button_two_text_color__hover_enabled="off" button_two_text_color__hover="null" button_border_width__hover_enabled="off" button_border_width__hover="null" button_one_border_width__hover_enabled="off" button_one_border_width__hover="null" button_two_border_width__hover_enabled="off" button_two_border_width__hover="null" button_border_color__hover_enabled="off" button_border_color__hover="null" button_one_border_color__hover_enabled="off" button_one_border_color__hover="null" button_two_border_color__hover_enabled="off" button_two_border_color__hover="null" button_border_radius__hover_enabled="off" button_border_radius__hover="null" button_one_border_radius__hover_enabled="off" button_one_border_radius__hover="null" button_two_border_radius__hover_enabled="off" button_two_border_radius__hover="null" button_letter_spacing__hover_enabled="off" button_letter_spacing__hover="null" button_one_letter_spacing__hover_enabled="off" button_one_letter_spacing__hover="null" button_two_letter_spacing__hover_enabled="off" button_two_letter_spacing__hover="null" button_bg_color__hover_enabled="off" button_bg_color__hover="null" button_one_bg_color__hover_enabled="off" button_one_bg_color__hover="null" button_two_bg_color__hover_enabled="off" button_two_bg_color__hover="null"][/et_pb_button][/et_pb_column][/et_pb_row][/et_pb_section]