[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.16" animation="off" use_border_color="off" border_color="#ffffff" border_style="solid" global_colors_info="{}"]&nbsp;[/et_pb_fullwidth_image][et_pb_fullwidth_slider _builder_version="4.23.1" _module_preset="default" global_colors_info="{}"][/et_pb_fullwidth_slider][/et_pb_section][et_pb_section fb_built="1" admin_label="REGISTRATION CLOSED - LIVE" _builder_version="4.20.0" custom_padding="0px|0px|0px|0px" transparent_background="off" make_fullwidth="off" use_custom_width="off" width_unit="on" global_colors_info="{}"][et_pb_row _builder_version="4.16" background_size="initial" background_position="top_left" background_repeat="repeat" custom_margin="||0px|" custom_padding="60px||60px|" global_colors_info="{}"][et_pb_column type="4_4" _builder_version="4.16" custom_padding="|||" global_colors_info="{}" custom_padding__hover="|||"][et_pb_code disabled_on="on|on|on" _builder_version="4.25.1" _module_preset="default" module_alignment="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);||}||||.container header {||    font-size: 20px;||    font-weight: 600;||    color: #333;||}||||.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: 18px;||    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;||  	padding-bottom: 5px;||}||||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;||}||||button {||    font-size: 14px;||    font-weight: 400;||    color: #333;||    border-radius: 5px;||    border: 1px solid #aaa;||    padding: 0 15px;||    height: 42px;||    margin: 8px 0;||  	margin-bottom: 40px;||}||||.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 */||.confirmation-section {||    background-color: #fafafa; /* light grey background for the entire section */||    position: relative;||    max-width: 900px;||    width: 90%; /* slightly smaller width for better margins */||    border: 1px solid #e0e0e0; /* light border for definition */||    border-radius: 6px;||    padding: 20px;||    margin: 25px auto; /* centers the section on the page */||    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* subtle shadow for depth */||}||||.et_pb_code_inner {||  width: 100%;||	display: flex;||	justify-content: center;||}||||/* Style for all headings within the confirmation section */||.confirmation-section h3, .confirmation-section h4, .confirmation-section h5 {||    color: #4CAF50; /* green color for headings */||    margin-bottom: 10px; /* spacing between headings and content */||}||||/* Style for individual detail sections */||.group-details, .director-details, .performer-details, .total-cost {||    background-color: #fff; /* white background for content blocks */||    border: 1px solid #e0e0e0; /* light border around content blocks */||    border-left: 5px solid #4CAF50; /* thick green left border for highlight */||    padding: 15px;||    margin-bottom: 15px; /* spacing between sections */||}||||/* Text content styles */||.confirmation-section p {||    color: #666; /* darker grey for text for readability */||    margin:  5px 0; /* vertical spacing for paragraphs */||}||||.director-info, .performer-info {||    background-color: #fff;||    padding: 10px;||    margin-bottom: 10px;||    border: 1px solid #eee;||    box-shadow: 0 1px 3px rgba(0,0,0,0.05);||}||||.pay-container {||  display: flex;||  justify-content: flex-end;||}||||.payment {||  margin-right: 5px;||}||||.button {||    background-color: #4CAF50;||    color: white;||    padding: 10px 15px;||    text-align: center;||    text-decoration: none;||    display: inline-block;||    font-size: 16px;||    margin: 4px 2px;||    cursor: pointer;||}||||.delete-button-container {||  display: flex;||  justify-content: flex-end;||}||||.delete-performer {||  background-color: rgba(255, 0, 0, 0.7);||}||||#link {||  color: #2e2e2e;||}" disabled="on" global_colors_info="{}"]<div class="form-container"><!-- [et_pb_line_break_holder] --><h1>TIMC 2025 Group Registration</h1><!-- [et_pb_line_break_holder] --><form class="form group"><!-- [et_pb_line_break_holder] --><div class="form-inputs"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="details"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="fields"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="group-workshop-type">Workshop Type</label><!-- [et_pb_line_break_holder] --><select id="group-workshop-type" name="group-workshop-type"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-workshop">Select a workshop type</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Folklorico">Folklorico</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Mariachi">Mariachi</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="group-type">What type of group?</label><!-- [et_pb_line_break_holder] --><select id="group-type" name="group-type"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-group">Select a group type</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="School Group">School Group</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Community Group">Community Group</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="group-showcase-question">Would this group like to perform in Showcase? (required)</label><!-- [et_pb_line_break_holder] --><select id="group-showcase-question" name="group-showcase-question"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option selected="selected" value="select-showcase">Select an option</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Yes">Yes</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="No">No</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="group-garibaldi-question">Would this group like to perform in Garibaldi? (required)</label><!-- [et_pb_line_break_holder] --><select id="group-garibaldi-question" name="group-garibaldi-question"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option selected="selected" value="select-garibaldi">Select an option</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Yes">Yes</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="No">No</option><!-- [et_pb_line_break_holder] --><!-- [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="competition-participation-question">Does your group want to be excluded from competition?</label><!-- [et_pb_line_break_holder] --><select id="competition-participation-question" name="competition-participation-question"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-garibaldi">Select an option</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Yes">Yes</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="No">No</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="group-name">Group Name (required)</label><!-- [et_pb_line_break_holder] --> <input id="group-name" name="group-name" type="text" data-label="Group Name" placeholder="Enter your group's name"/><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="school-name">School Name (if you are a Community Group please leave<!-- [et_pb_line_break_holder] --> blank)</label><!-- [et_pb_line_break_holder] --> <input id="school-name" name="school-name" type="text" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->                  <div class="user-container"><!-- [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="user-first-name">First Name</label><!-- [et_pb_line_break_holder] -->                            <input type="text" name="user-first-name" id="user-first-name" class="user-first-name"<!-- [et_pb_line_break_holder] -->                                placeholder="Enter your first name" /><!-- [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="user-last-name">Last Name</label><!-- [et_pb_line_break_holder] -->                            <input type="text" name="user-last-name" id="user-last-name" class="user-last-name"<!-- [et_pb_line_break_holder] -->                                placeholder="Enter your last name" /><!-- [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="user-email">Email (required)</label><!-- [et_pb_line_break_holder] -->                            <input type="email" name="user-email" id="user-email" class="user-email"<!-- [et_pb_line_break_holder] -->                                placeholder="Enter your email" data-label='User Email'/><!-- [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="user-phone">Phone Number</label><!-- [et_pb_line_break_holder] -->                            <input type="tel" name="user-phone" id="user-phone" class="user-phone"<!-- [et_pb_line_break_holder] -->                                placeholder="Enter your phone number" /><!-- [et_pb_line_break_holder] -->                        </div><!-- [et_pb_line_break_holder] -->                    </div><!-- [et_pb_line_break_holder] -->                </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="director-container"><!-- [et_pb_line_break_holder] --> <span class="title">Director 1 Details</span><!-- [et_pb_line_break_holder] -->  <label>Directors registering 10 - 19 students will be issued a Director Badge and wristband, and a second Director Badge and wristband for registering more than 20 students.</label><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="fields"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-first-name">First Name (required)</label><!-- [et_pb_line_break_holder] --> <input id="director-first-name" name="director-first-name" type="text" class="director-first-name" placeholder="Enter your first name" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-last-name">Last Name (required)</label><!-- [et_pb_line_break_holder] --> <input id="director-last-name" name="director-last-name" type="text" class="director-last-name" placeholder="Enter your last name" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-street-address">Street Address</label><!-- [et_pb_line_break_holder] --> <input id="director-street-address" name="director-street-address" type="text" class="director-street-address" placeholder="Enter your address" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-city">City</label><!-- [et_pb_line_break_holder] --> <input id="director-city" class="director-city" name="director-city" type="text" placeholder="Enter your city" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-state">State</label><!-- [et_pb_line_break_holder] --><select id="director-state" class="director-state" name="director-state" required=""><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="select-a-value">Select a state</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="AL">Alabama</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="AK">Alaska</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="AZ">Arizona</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="AR">Arkansas</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="CA">California</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="CO">Colorado</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="CT">Connecticut</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="DE">Delaware</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="DC">District Of Columbia</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="FL">Florida</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="GA">Georgia</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="HI">Hawaii</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="ID">Idaho</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="IL">Illinois</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="IN">Indiana</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="IA">Iowa</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="KS">Kansas</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="KY">Kentucky</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="LA">Louisiana</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="ME">Maine</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MD">Maryland</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MA">Massachusetts</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MI">Michigan</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MN">Minnesota</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MS">Mississippi</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MO">Missouri</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="MT">Montana</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NE">Nebraska</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NV">Nevada</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NH">New Hampshire</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NJ">New Jersey</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NM">New Mexico</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NY">New York</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="NC">North Carolina</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="ND">North Dakota</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="OH">Ohio</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="OK">Oklahoma</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="OR">Oregon</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="PA">Pennsylvania</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="RI">Rhode Island</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="SC">South Carolina</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="SD">South Dakota</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="TN">Tennessee</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="TX">Texas</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="UT">Utah</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="VT">Vermont</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="VA">Virginia</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="WA">Washington</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="WV">West Virginia</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="WI">Wisconsin</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="WY">Wyoming</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-zip-code">Zip Code</label><!-- [et_pb_line_break_holder] --> <input id="director-zip-code" class="director-zip-code" name="director-zip-code" type="text" placeholder="Enter your zip code" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-daytime-phone">Daytime Phone Number</label><!-- [et_pb_line_break_holder] --> <input id="director-daytime-phone" name="director-daytime-phone" type="tel" class="director-daytime-phone" placeholder="Enter your phone number" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-cell-phone">Cell Phone Number</label><!-- [et_pb_line_break_holder] --> <input id="director-cell-phone" name="director-cell-phone" type="tel" class="director-cell-phone" placeholder="Enter your phone number" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="director-email">Email</label><!-- [et_pb_line_break_holder] --> <input id="director-email" class="director-email" placeholder="Enter your email" name="director-email" type="email" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="add-director-button"><!-- [et_pb_line_break_holder] --> <button class="add-director" type="button">Click to Add Another Director</button><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="group-performer-container"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="group-performer-details"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="performer-title-container"><!-- [et_pb_line_break_holder] --> <span class="title">Participant 1 Details</span><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="fields"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-first-name">Participant First Name (required)</label><!-- [et_pb_line_break_holder] --> <input id="performer-first-name" name="performer-first-name" type="text" class="performer-first-name" placeholder="Enter participants's first name"><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-last-name">Participant Last Name (required)</label><!-- [et_pb_line_break_holder] --> <input class="performer-last-name" name="performer-last-name" type="text" placeholder="Enter participants's last name"><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field number"><!-- [et_pb_line_break_holder] --> <label for="performer-age">Participant Age</label><!-- [et_pb_line_break_holder] --> <input class="performer-age" name="performer-age" type="number" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-gender">Participant Gender</label><!-- [et_pb_line_break_holder] --><select class="performer-gender" name="performer-gender"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-gender">Select a gender</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Male">Male</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Female">Female</option><!-- [et_pb_line_break_holder] --><!-- [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-race">Participant Race</label><!-- [et_pb_line_break_holder] --><select class="performer-race" name="performer-race"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-race">Select a race</option><!-- [et_pb_line_break_holder] --><!-- [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] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-grade">Participant Grade</label><!-- [et_pb_line_break_holder] --><select class="performer-grade" name="performer-grade"><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option disabled="disabled" selected="selected" value="select-grade">Select a grade</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Elementary School">Elementary School</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Middle">Middle School</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="High">High School</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="College">College</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="N/A">N/A</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-class">Participant Class (required)</label><!-- [et_pb_line_break_holder] --><select class="performer-class" name="performer-class" data-label='Performer Class'><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option selected="selected" value="select-class">Select a class</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Dance">Dance</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Guitar">Guitar</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Guitarron">Guitarron</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Harp">Harp</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Trumpet">Trumpet</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Vihuela">Vihuela</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Violin">Violin</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Voice">Voice</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="performer-level">Participant Level (required)</label><!-- [et_pb_line_break_holder] --><select class="performer-level" name="performer-level" data-label='Performer Level'><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option selected="selected" value="select-level">Select a level</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="I">I</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="II">II</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="III">III</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><option value="Master">Master</option><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></select><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->              <div class="add-participant-button"><!-- [et_pb_line_break_holder] -->                <button class="add-participant" type="button">Click to Add Another Participant</button><!-- [et_pb_line_break_holder] -->            </div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="song-container" style="display: none;"><!-- [et_pb_line_break_holder] --> <span class="title">Song List</span><!-- [et_pb_line_break_holder] --><p>Only the first 14 Mariachi and 4 Folklorico groups to register <strong>and pay in full for the workshops</strong> will be eligible to perform in the Showcase concert. TOTAL PERFORMANCE TIME NOT TO EXCEED 9 MINUTES.</p><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="first-song">First Song</label><!-- [et_pb_line_break_holder] --> <input class="first-song" name="first-song" type="text" /><!-- [et_pb_line_break_holder] --> <label for="first-song">First Song Length (X:XX)</label><!-- [et_pb_line_break_holder] --> <input class="first-song-length" name="first-song-length" type="text" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="second-song">Second Song</label><!-- [et_pb_line_break_holder] --> <input class="second-song" name="second-song" type="text" /><!-- [et_pb_line_break_holder] --> <label for="second-song">Second Song Length (X:XX)</label><!-- [et_pb_line_break_holder] --> <input class="second-song-length" name="second-song-length" type="text" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="input-field"><!-- [et_pb_line_break_holder] --> <label for="third-song">Third Song</label><!-- [et_pb_line_break_holder] --> <input class="third-song" name="third-song" type="text" /><!-- [et_pb_line_break_holder] --> <label for="third-song">Third Song Length (X:XX)</label><!-- [et_pb_line_break_holder] --> <input class="third-song-length" name="third-song-length" type="text" /><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div class="button-container"><!-- [et_pb_line_break_holder] --><!-- [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] --><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --><div><!-- [et_pb_line_break_holder] --> <button class="save-for-later" type="button">Save & Continue Later</button><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --></div><!-- [et_pb_line_break_holder] --><div class="confirmation-section" style="display: none;"><!-- [et_pb_line_break_holder] --><!-- [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] --><script src="https://code.jquery.com/jquery-3.7.1.min.js"<!-- [et_pb_line_break_holder] -->        integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script><!-- [et_pb_line_break_holder] --><!-- [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] -->  $(document).ready(function () {<!-- [et_pb_line_break_holder] -->  initiateStripePayment();<!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->  $(".add-participant").on("click", function () {<!-- [et_pb_line_break_holder] -->    addPerformerContainer();<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $(".add-director").on("click", function () {<!-- [et_pb_line_break_holder] -->    addDirectorContainer();<!-- [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 (validateForm()) {<!-- [et_pb_line_break_holder] -->    displayConfirmation();<!-- [et_pb_line_break_holder] -->    bindBackButton();<!-- [et_pb_line_break_holder] -->    bindMoneyOrderButton();<!-- [et_pb_line_break_holder] -->    $('.form-inputs').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] -->    $(".save-for-later").on("click", function () {<!-- [et_pb_line_break_holder] -->    saveAndContinueLater();<!-- [et_pb_line_break_holder] -->    alert("A link has been sent to your email to continue this registration later!");<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $("#group-showcase-question, #group-garibaldi-question").change(function() {<!-- [et_pb_line_break_holder] -->    toggleSongContainer();<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  setupCharacterLimit("#group-name", 50);<!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->  function getQueryParam(param) {<!-- [et_pb_line_break_holder] -->        let params = new URLSearchParams(window.location.search);<!-- [et_pb_line_break_holder] -->        return params.get(param);<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Check for token in the URL<!-- [et_pb_line_break_holder] -->    let token = getQueryParam('token');<!-- [et_pb_line_break_holder] -->    if (token) {<!-- [et_pb_line_break_holder] -->        // Send AJAX request to retrieve form data<!-- [et_pb_line_break_holder] -->        $.ajax({<!-- [et_pb_line_break_holder] -->            url: '/wp-content/themes/customtheme/retrieve-form-data.php',<!-- [et_pb_line_break_holder] -->            type: 'GET',<!-- [et_pb_line_break_holder] -->            data: { 'token': token },<!-- [et_pb_line_break_holder] -->            dataType: 'json',<!-- [et_pb_line_break_holder] -->            success: function(data) {<!-- [et_pb_line_break_holder] -->                if(data.success) {<!-- [et_pb_line_break_holder] -->                  	console.log("Form data to populate:", data.formData);<!-- [et_pb_line_break_holder] -->                    populateForm(data.formData);<!-- [et_pb_line_break_holder] -->                } else {<!-- [et_pb_line_break_holder] -->                    console.error('Error fetching form data:', data.message);<!-- [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:', textStatus, 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] -->    $('#group-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-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-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] -->    $(document).on("click", ".delete-performer", function() {<!-- [et_pb_line_break_holder] -->      $(this).closest(".group-performer-container").remove();<!-- [et_pb_line_break_holder] -->      updateDeleteButtons(); // Update the delete buttons after removal<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] -->});<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function addPerformerContainer() {<!-- [et_pb_line_break_holder] -->    let newPerformer = $(".group-performer-container").last().clone();<!-- [et_pb_line_break_holder] -->    let performerCount = $(".group-performer-container").length + 1;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Updating the title for the new performer<!-- [et_pb_line_break_holder] -->    newPerformer.find(".title").text("Participant " + performerCount + " Details");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Clear input values and reset dropdowns in the cloned container<!-- [et_pb_line_break_holder] -->    newPerformer.find("input[type='text'], input[type='number']").val("");<!-- [et_pb_line_break_holder] -->    newPerformer.find("select").prop("selectedIndex", 0);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Append the new performer container to the form<!-- [et_pb_line_break_holder] -->    $(".group-performer-container").last().after(newPerformer);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Update delete buttons<!-- [et_pb_line_break_holder] -->    updateDeleteButtons();<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->// Function to update delete buttons<!-- [et_pb_line_break_holder] -->function updateDeleteButtons() {<!-- [et_pb_line_break_holder] -->    // Remove existing delete buttons<!-- [et_pb_line_break_holder] -->    $(".delete-performer").remove();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Only add delete button if there are multiple performers<!-- [et_pb_line_break_holder] -->    if ($(".group-performer-container").length > 1) {<!-- [et_pb_line_break_holder] -->        let deleteButtonContainer = $("<div class='delete-button-container'></div>");<!-- [et_pb_line_break_holder] -->        let deleteButton = $("<button class='delete-performer' type='button'>Delete Participant</button>");<!-- [et_pb_line_break_holder] -->        deleteButtonContainer.append(deleteButton);<!-- [et_pb_line_break_holder] -->        $(".group-performer-container").last().append(deleteButtonContainer);<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function addDirectorContainer() {<!-- [et_pb_line_break_holder] -->  let directorCount = $(".director-container").length + 1;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  if (directorCount > 2) {<!-- [et_pb_line_break_holder] -->    alert("You can only add up to two directors.");<!-- [et_pb_line_break_holder] -->    return;<!-- [et_pb_line_break_holder] -->  }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  let newDirector = $(".director-container").first().clone();<!-- [et_pb_line_break_holder] -->  newDirector.find(".title").text("Director " + directorCount + " Details");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  newDirector.find("input[type='text'], input[type='tel'], input[type='email']").val("");<!-- [et_pb_line_break_holder] -->  newDirector.find("select").prop("selectedIndex", 0);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $(".director-container").last().after(newDirector);<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->function setupCharacterLimit(inputSelector, maxCharacterCount) {<!-- [et_pb_line_break_holder] -->  $(inputSelector).on("input", function () {<!-- [et_pb_line_break_holder] -->    const currentCharacterCount = $(this).val().length;<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    if (currentCharacterCount > maxCharacterCount) {<!-- [et_pb_line_break_holder] -->      alert(`Character limit exceeded! Maximum allowed: ${maxCharacterCount}`);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      const trimmedValue = $(this).val().substring(0, maxCharacterCount);<!-- [et_pb_line_break_holder] -->      $(this).val(trimmedValue);<!-- [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 performers = gatherPerformerData();<!-- [et_pb_line_break_holder] -->  return {<!-- [et_pb_line_break_holder] -->    groupName: $("#group-name").val(),<!-- [et_pb_line_break_holder] -->    groupType: $("#group-type").val(),<!-- [et_pb_line_break_holder] -->    workshopType: $("#group-workshop-type").val(),<!-- [et_pb_line_break_holder] -->    groupShowcaseQuestion: $("#group-showcase-question").val(),<!-- [et_pb_line_break_holder] -->    groupGaribaldiQuestion: $("#group-garibaldi-question").val(),<!-- [et_pb_line_break_holder] -->    schoolName: $("#school-name").val(),<!-- [et_pb_line_break_holder] -->    userFirstName: $("#user-first-name").val(),<!-- [et_pb_line_break_holder] -->    userLastName: $("#user-last-name").val(),<!-- [et_pb_line_break_holder] -->    userEmail: $("#user-email").val(),<!-- [et_pb_line_break_holder] -->    userPhone: $("#user-phone").val(),<!-- [et_pb_line_break_holder] -->    totalCost: calculateTotalCost(performers),<!-- [et_pb_line_break_holder] -->    competitionQuestion: $("#competition-participation-question").val()<!-- [et_pb_line_break_holder] -->  };<!-- [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] --><!-- [et_pb_line_break_holder] -->  $(".group-performer-container").each(function () {<!-- [et_pb_line_break_holder] -->    let performer = {<!-- [et_pb_line_break_holder] -->      performerFirstName: $(this).find(".performer-first-name").val(),<!-- [et_pb_line_break_holder] -->      performerLastName: $(this).find(".performer-last-name").val(),<!-- [et_pb_line_break_holder] -->      performerAge: $(this).find(".performer-age").val(),<!-- [et_pb_line_break_holder] -->      performerGender: $(this).find(".performer-gender").val(),<!-- [et_pb_line_break_holder] -->      performerGrade: $(this).find(".performer-grade").val(),<!-- [et_pb_line_break_holder] -->      performerClass: $(this).find(".performer-class").val(),<!-- [et_pb_line_break_holder] -->      performerLevel: $(this).find(".performer-level").val(),<!-- [et_pb_line_break_holder] -->      performerRace: $(this).find(".performer-race").val()<!-- [et_pb_line_break_holder] -->    };<!-- [et_pb_line_break_holder] -->    <!-- [et_pb_line_break_holder] -->    // Calculate the cost for the performer and add it to the performer object<!-- [et_pb_line_break_holder] -->    performer.performerCost = calculatePerformerCost(performer);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    performers.push(performer);<!-- [et_pb_line_break_holder] -->  });<!-- [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 gatherDirectorData() {<!-- [et_pb_line_break_holder] -->  let directors = [];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $(".director-container").each(function () {<!-- [et_pb_line_break_holder] -->    let director = {<!-- [et_pb_line_break_holder] -->      directorFirstName: $(this).find(".director-first-name").val(),<!-- [et_pb_line_break_holder] -->      directorLastName: $(this).find(".director-last-name").val(),<!-- [et_pb_line_break_holder] -->      directorStreetAddress: $(this).find(".director-street-address").val(),<!-- [et_pb_line_break_holder] -->      directorCity: $(this).find(".director-city").val(),<!-- [et_pb_line_break_holder] -->      directorState: $(this).find(".director-state").val(),<!-- [et_pb_line_break_holder] -->      directorZipCode: $(this).find(".director-zip-code").val(),<!-- [et_pb_line_break_holder] -->      directorDaytimePhone: $(this).find(".director-daytime-phone").val(),<!-- [et_pb_line_break_holder] -->      directorCellPhone: $(this).find(".director-cell-phone").val(),<!-- [et_pb_line_break_holder] -->      directorEmail: $(this).find(".director-email").val(),<!-- [et_pb_line_break_holder] -->    };<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    directors.push(director);<!-- [et_pb_line_break_holder] -->  });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  return directors;<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function gatherSongListData() {<!-- [et_pb_line_break_holder] -->    let songListData = [];<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Iterate over each song input field<!-- [et_pb_line_break_holder] -->$(".song-container .input-field").each(function () {<!-- [et_pb_line_break_holder] -->    let songTitle = $(this).find("input[type='text']").val();<!-- [et_pb_line_break_holder] -->    let songLength = $(this).find("input[type='text']").last().val(); // assuming the song length is the second text input<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Add song data to the array if the title is not empty<!-- [et_pb_line_break_holder] -->    if (songTitle) {<!-- [et_pb_line_break_holder] -->        songListData.push({<!-- [et_pb_line_break_holder] -->            title: songTitle,<!-- [et_pb_line_break_holder] -->            length: songLength // keep the length as string in format X:XX<!-- [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] -->    return songListData;<!-- [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] -->    directors: gatherDirectorData(),<!-- [et_pb_line_break_holder] -->    songs: gatherSongListData()<!-- [et_pb_line_break_holder] -->  };<!-- [et_pb_line_break_holder] -->}<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function saveAndContinueLater() {<!-- [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] -->    director: gatherDirectorData(),<!-- [et_pb_line_break_holder] -->    songs: gatherSongListData(),<!-- [et_pb_line_break_holder] -->    email: $('.user-email').val()<!-- [et_pb_line_break_holder] -->  };<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->  let data = JSON.stringify(formData);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->  $.ajax({<!-- [et_pb_line_break_holder] -->    url: "/wp-content/themes/customtheme/email-server.php",<!-- [et_pb_line_break_holder] -->    type: "POST",<!-- [et_pb_line_break_holder] -->    contentType: "application/json",<!-- [et_pb_line_break_holder] -->    data: data,<!-- [et_pb_line_break_holder] -->    success: function (response) {<!-- [et_pb_line_break_holder] -->      console.log("Server response:", response);<!-- [et_pb_line_break_holder] -->    },<!-- [et_pb_line_break_holder] -->    error: function (xhr, status, error) {<!-- [et_pb_line_break_holder] -->      console.error("Error:", error);<!-- [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 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] -->    directors: gatherDirectorData(),<!-- [et_pb_line_break_holder] -->    songs: gatherSongListData()<!-- [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 displayConfirmation() {<!-- [et_pb_line_break_holder] -->    // Gather data from inputs<!-- [et_pb_line_break_holder] -->    let groupData = gatherGroupData();<!-- [et_pb_line_break_holder] -->    let performersData = gatherPerformerData();<!-- [et_pb_line_break_holder] -->    let directorData = gatherDirectorData();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    let confirmationHtml = '<h3>Confirmation Details</h3>';<!-- [et_pb_line_break_holder] -->  	confirmationHtml += '<p><strong>REGISTRATION IS NOT COMPLETE UNTIL PAYMENT METHOD IS SELECTED AT THE BOTTOM OF THIS PAGE.</strong></p>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Display Group Data<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="group-details"><h4>Group Details</h4>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>Group Name:</strong> ' + groupData.groupName + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>Workshop Type:</strong> ' + groupData.workshopType + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>Group Type:</strong> ' + groupData.groupType + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>Showcase Performance:</strong> ' + groupData.groupShowcaseQuestion + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>Garibaldi Performance:</strong> ' + groupData.groupGaribaldiQuestion + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>School Name:</strong> ' + groupData.schoolName + '</p>';<!-- [et_pb_line_break_holder] -->		confirmationHtml += '<p><strong>Name:</strong> ' + groupData.userFirstName + ' ' + groupData.userLastName + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>User Email:</strong> ' + groupData.userEmail + '</p>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<p><strong>User Phone:</strong> ' + groupData.userPhone + '</p></div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Display Director Data<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="director-details"><h4>Director Details</h4>';<!-- [et_pb_line_break_holder] -->    directorData.forEach(function(director, index) {<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<div class="director-info">';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<h5>Director ' + (index + 1) + '</h5>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Name:</strong> ' + director.directorFirstName + ' ' + director.directorLastName + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Street Address:</strong> ' + director.directorStreetAddress + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>City:</strong> ' + director.directorCity + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>State:</strong> ' + director.directorState + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Zip Code:</strong> ' + director.directorZipCode + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Daytime Phone:</strong> ' + director.directorDaytimePhone + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Cell Phone:</strong> ' + director.directorCellPhone + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Email:</strong> ' + director.directorEmail + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->    confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->  	// Calculate total cost for all performers<!-- [et_pb_line_break_holder] -->		let totalCostForAllPerformers = calculateTotalCost(performersData);<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Display Performer Data<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="performer-details"><h4>Participant Details</h4>';<!-- [et_pb_line_break_holder] -->    performersData.forEach(function(performer, index) {<!-- [et_pb_line_break_holder] -->      	const performerCost = calculatePerformerCost(performer);<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<div class="performer-info">';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<h5>Performer ' + (index + 1) + '</h5>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Name:</strong> ' + performer.performerFirstName + ' ' + performer.performerLastName + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Class:</strong> ' + performer.performerClass + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '<p><strong>Level:</strong> ' + performer.performerLevel + '</p>';<!-- [et_pb_line_break_holder] -->    		confirmationHtml += '<p><strong>Cost:</strong> $' + performerCost + '</p>';<!-- [et_pb_line_break_holder] -->        confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] -->    confirmationHtml += '</div>';<!-- [et_pb_line_break_holder] -->  <!-- [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> $' + totalCostForAllPerformers + '</p></div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="back-container"><button class="back-to-form" type="button">Back to Form</button></div>';<!-- [et_pb_line_break_holder] -->    confirmationHtml += '<div class="pay-container"><button class="payment" type="button">Pay With Credit Card</button>';<!-- [et_pb_line_break_holder] -->  	confirmationHtml += '<button class="pay-with-money-order" type="button">Pay With Purchase Order</button></div>';<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Inject this HTML into a confirmation section/div<!-- [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] -->        $('.form-inputs').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 a 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 Order 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] --><!-- [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] -->    // Confirmation prompt<!-- [et_pb_line_break_holder] -->    if (confirm("Are you sure you want to continue to payment?")) {<!-- [et_pb_line_break_holder] -->      // User clicked 'Yes', proceed with payment process<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      // Save current form data to sessionStorage first<!-- [et_pb_line_break_holder] -->      saveToSessionStorage();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      let performers = gatherPerformerData(); // Assuming this function exists and returns an array of performers<!-- [et_pb_line_break_holder] -->      let totalCost = calculateTotalCost(performers); // Function to calculate the total cost<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->      $.ajax({<!-- [et_pb_line_break_holder] -->        url: "/wp-content/themes/customtheme/payment-server.php", // The URL to your payment-server.php file<!-- [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] -->          performers: performers,<!-- [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] -->    } else {<!-- [et_pb_line_break_holder] -->      // User clicked 'No', cancel the payment process<!-- [et_pb_line_break_holder] -->      console.log('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 calculateTotalCost(performers) {<!-- [et_pb_line_break_holder] -->  console.log("Participant Data:", performers);<!-- [et_pb_line_break_holder] -->  let totalCost = 0;<!-- [et_pb_line_break_holder] -->  performers.forEach(function (performer) {<!-- [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] -->      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] -->  });<!-- [et_pb_line_break_holder] -->  return totalCost;<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function calculatePerformerCost(performer) {<!-- [et_pb_line_break_holder] -->    if (performer.performerLevel === "Master" && performer.performerClass !== "Voice") {<!-- [et_pb_line_break_holder] -->        return 165;<!-- [et_pb_line_break_holder] -->    } else {<!-- [et_pb_line_break_holder] -->        return 115;<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->};<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->function getQueryParam(param) {<!-- [et_pb_line_break_holder] -->        let params = new URLSearchParams(window.location.search);<!-- [et_pb_line_break_holder] -->        return params.get(param);<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Check for token in the URL<!-- [et_pb_line_break_holder] -->    let token = getQueryParam('token');<!-- [et_pb_line_break_holder] -->    if (token) {<!-- [et_pb_line_break_holder] -->        // Send AJAX request to retrieve form data<!-- [et_pb_line_break_holder] -->        $.ajax({<!-- [et_pb_line_break_holder] -->            url: '/wp-content/themes/customtheme/retrieve-form-data.php',<!-- [et_pb_line_break_holder] -->            type: 'GET',<!-- [et_pb_line_break_holder] -->            data: { 'token': token },<!-- [et_pb_line_break_holder] -->            dataType: 'json',<!-- [et_pb_line_break_holder] -->            success: function(data) {<!-- [et_pb_line_break_holder] -->                if(data.success) {<!-- [et_pb_line_break_holder] -->                  	console.log("Form data to populate:", data.formData);<!-- [et_pb_line_break_holder] -->                    populateForm(data.formData);<!-- [et_pb_line_break_holder] -->                } else {<!-- [et_pb_line_break_holder] -->                    console.error('Error fetching form data:', data.message);<!-- [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:', textStatus, 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] -->    function populateForm(formData) {<!-- [et_pb_line_break_holder] -->        // Example of populating form fields<!-- [et_pb_line_break_holder] -->      $('#group-name').val(formData.group.groupName);<!-- [et_pb_line_break_holder] -->      $('#group-type').val(formData.group.groupType);<!-- [et_pb_line_break_holder] -->      $('#group-workshop-type').val(formData.group.workshopType);<!-- [et_pb_line_break_holder] -->      $('#group-showcase-question').val(formData.group.groupShowcaseQuestion);<!-- [et_pb_line_break_holder] -->      $('#group-garibaldi-question').val(formData.group.groupGaribaldiQuestion);<!-- [et_pb_line_break_holder] -->      $('#school-name').val(formData.group.schoolName);<!-- [et_pb_line_break_holder] -->      $('#user-first-name').val(formData.group.userFirstName);<!-- [et_pb_line_break_holder] -->      $('#user-last-name').val(formData.group.userLastName);<!-- [et_pb_line_break_holder] -->      $('#user-email').val(formData.group.userEmail);<!-- [et_pb_line_break_holder] -->      $('#user-phone').val(formData.group.userPhone);<!-- [et_pb_line_break_holder] -->      <!-- [et_pb_line_break_holder] -->          // Populate Directors<!-- [et_pb_line_break_holder] -->    if (formData.director && formData.director.length > 0) {<!-- [et_pb_line_break_holder] -->        // Remove any existing director containers except the first one<!-- [et_pb_line_break_holder] -->        $(".director-container:not(:first)").remove();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        // Loop through each director and populate data<!-- [et_pb_line_break_holder] -->        formData.director.forEach(function(director, index) {<!-- [et_pb_line_break_holder] -->            if (index > 0) { // Don't add a new container for the first director<!-- [et_pb_line_break_holder] -->                addDirectorContainer(); // Add new director container<!-- [et_pb_line_break_holder] -->            }<!-- [et_pb_line_break_holder] -->            // Assuming your director fields have names like directorFirstName, directorLastName, etc.<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-first-name").val(director.directorFirstName);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-last-name").val(director.directorLastName);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-street-address").val(director.directorStreetAddress);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-city").val(director.directorCity);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-state").val(director.directorState);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-zip-code").val(director.directorZipCode);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-daytime-phone").val(director.directorDaytimePhone);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-cell-phone").val(director.directorCellPhone);<!-- [et_pb_line_break_holder] -->            $('.director-container').eq(index).find("#director-email").val(director.directorEmail);<!-- [et_pb_line_break_holder] -->        });<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->      <!-- [et_pb_line_break_holder] -->        // Populate Performers<!-- [et_pb_line_break_holder] -->    if (formData.performers && formData.performers.length > 0) {<!-- [et_pb_line_break_holder] -->        // Remove any existing performer containers<!-- [et_pb_line_break_holder] -->        $(".group-performer-container:not(:first)").remove();<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        // Loop through each performer and populate data<!-- [et_pb_line_break_holder] -->        formData.performers.forEach(function(performer, index) {<!-- [et_pb_line_break_holder] -->            if (index > 0) { // Don't add a new container for the first performer<!-- [et_pb_line_break_holder] -->                addPerformerContainer(); // Add new performer container<!-- [et_pb_line_break_holder] -->            }<!-- [et_pb_line_break_holder] -->            // Assuming your performer fields have names like performerFirstName, performerLastName, etc.<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-first-name").val(performer.performerFirstName);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-last-name").val(performer.performerLastName);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-age").val(performer.performerAge);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-gender").val(performer.performerGender);<!-- [et_pb_line_break_holder] -->          	$('.group-performer-container').eq(index).find(".performer-race").val(performer.performerRace);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-grade").val(performer.performerGrade);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-class").val(performer.performerClass);<!-- [et_pb_line_break_holder] -->            $('.group-performer-container').eq(index).find(".performer-level").val(performer.performerLevel);<!-- [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 to validate the form<!-- [et_pb_line_break_holder] -->function validateForm() {<!-- [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] -->    // Validate the group name<!-- [et_pb_line_break_holder] -->    const groupNameInput = $("#group-name");<!-- [et_pb_line_break_holder] -->    if (groupNameInput.val().trim() === "") {<!-- [et_pb_line_break_holder] -->        errorMessages.push("Group Name is required.");<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->    // Validate the Showcase Question<!-- [et_pb_line_break_holder] -->    const groupShowcaseInput = $("#group-showcase-question");<!-- [et_pb_line_break_holder] -->    if (groupShowcaseInput.val() === "select-showcase") {<!-- [et_pb_line_break_holder] -->        errorMessages.push("Selecting an option for the Showcase Question is required.");<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] -->  <!-- [et_pb_line_break_holder] -->  	const groupGaribaldiInput = $("#group-garibaldi-question");<!-- [et_pb_line_break_holder] -->    if (groupGaribaldiInput.val() === "select-garibaldi") {<!-- [et_pb_line_break_holder] -->        errorMessages.push("Selecting an option for the Garibaldi Question is required.");<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Validate the user email<!-- [et_pb_line_break_holder] -->    const userEmailInput = $(".user-email");<!-- [et_pb_line_break_holder] -->    if (userEmailInput.val().trim() === "") {<!-- [et_pb_line_break_holder] -->        errorMessages.push("User Email is required.");<!-- [et_pb_line_break_holder] -->    }<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Validate performer class and level for each performer<!-- [et_pb_line_break_holder] -->    $(".group-performer-container").each(function (index) {<!-- [et_pb_line_break_holder] -->        const performerClass = $(this).find(".performer-class").val();<!-- [et_pb_line_break_holder] -->        const performerLevel = $(this).find(".performer-level").val();<!-- [et_pb_line_break_holder] -->        const performerFirstName = $(this).find(".performer-first-name").val(); // Add this line<!-- [et_pb_line_break_holder] -->        const performerLastName = $(this).find(".performer-last-name").val(); // Add this line<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        if (performerClass === "select-class" || performerLevel === "select-level" || performerFirstName.trim() === "" || performerLastName.trim() === "") {<!-- [et_pb_line_break_holder] -->            errorMessages.push(`Participant ${index + 1} is missing required inputs.`);<!-- [et_pb_line_break_holder] -->        }<!-- [et_pb_line_break_holder] -->    });<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Validate director first and last name for each director<!-- [et_pb_line_break_holder] -->    $(".director-container").each(function (index) {<!-- [et_pb_line_break_holder] -->        const directorFirstName = $(this).find(".director-first-name").val(); // Add this line<!-- [et_pb_line_break_holder] -->        const directorLastName = $(this).find(".director-last-name").val(); // Add this line<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->        if (directorFirstName.trim() === "" || directorLastName.trim() === "") {<!-- [et_pb_line_break_holder] -->            errorMessages.push(`Director ${index + 1} is missing required fields.`);<!-- [et_pb_line_break_holder] -->        }<!-- [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] -->   function toggleSongContainer() {<!-- [et_pb_line_break_holder] -->    const showcaseSelect = $("#group-showcase-question");<!-- [et_pb_line_break_holder] -->    const garibaldiSelect = $("#group-garibaldi-question");<!-- [et_pb_line_break_holder] -->    const songContainer = $(".song-container");<!-- [et_pb_line_break_holder] --><!-- [et_pb_line_break_holder] -->    // Check if "Yes" is selected in either of the two select elements<!-- [et_pb_line_break_holder] -->    if (<!-- [et_pb_line_break_holder] -->      showcaseSelect.val() === "Yes" ||<!-- [et_pb_line_break_holder] -->      garibaldiSelect.val() === "Yes"<!-- [et_pb_line_break_holder] -->    ) {<!-- [et_pb_line_break_holder] -->      songContainer.show(); // Show the song container<!-- [et_pb_line_break_holder] -->    } else {<!-- [et_pb_line_break_holder] -->      songContainer.hide(); // Hide the song container<!-- [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_line_break_holder] -->[/et_pb_code][/et_pb_column][/et_pb_row][/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: <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]