<?php
$guestForm = $this->guestForm;
$guestForm->prepare();
$guestForm->setAttribute('action', $this->url('point-to-point', ['action' => 'vehicle-listing']));
$guestForm->setAttribute('id', 'guest-form');
echo $this->form()->openTag($guestForm);
?>
<div class="panel panel-default">
    <div>
        <h4 class="panel-title">
            <div class="login-as-guest margin-top20px" >
                <div class="mapcantiner_inner1 no-padding">
                    <div class="testimonial_box no-padding margin0">
                        <div class="marginbot-40 margin-top20px pull-left widthpercent100">
                            <div align="center" class="col-md-3 "> 
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('first_name')); ?>
                                    <?php echo $this->formElementErrors($guestForm->get('first_name'), ['class' => 'error']); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('first_name'))); ?>
                                </div>
                            </div>
                            
                            <div align="left" class="col-md-3 sightmargin">
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('last_name')); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('last_name'))); ?>
                                </div>
                            </div>
                            
                            <div align="left" class="col-md-3 sightmargin">
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('email')); ?>
                                    <?php echo $this->formElementErrors($guestForm->get('email'), ['class' => 'error']); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('email'))); ?>
                                </div>
                            </div>

                            <div align="left" class="col-md-3 sightmargin">
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('mobile')); ?>
                                    <?php echo $this->formElementErrors($guestForm->get('mobile'), ['class' => 'error']); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('mobile'))); ?>
                                </div>
                            </div>
                        </div>

                        <div class=" margin-top20px marginbot-20 pull-left widthpercent100">
                            <div align="left" class="col-md-3 sightmargin"> 
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('alt_mobile_no')); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('alt_mobile_no'))); ?>
                                </div>
                            </div>

                            <div align="left" class="col-md-6 sightmargin margintop10">
                                <div class="col-sm-6 ">
                                    <div class="carbooking margin-left31">
                                        <input type="radio" name="gender" id="gender" checked="true" value="male">
                                        <label for="male"><span class="radio">Male</span></label>
                                    </div>
                                </div>
                                
                                <div class="col-sm-6">
                                    <div class="carbooking">
                                        <input type="radio" name="gender" id="female" value="female">
                                        <label for="female"><span class="radio">Female</span></label>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div align="left" class="col-md-12 sightmargin margin-top20px ">
                            <label class="booking-check">I have a GST number(optional)
                                <?php echo $this->formElement($guestForm->get('gst')); ?>
                                <span class="checkmark"></span>
                            </label>
                        </div>

                        <div id="gst-number" style="display:none;">
                            <div align="left" class="col-md-4 sightmargin margin-top20px">
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('gst_registration_number')); ?>
                                    <?php echo $this->formElementErrors($guestForm->get('gst_registration_number'), ['class' => 'error']); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('gst_registration_number'))); ?>
                                </div>
                            </div>

                            <div align="left" class="col-md-4 sightmargin margin-top20px ">  
                                <div class="group">      
                                    <?php echo $this->formElement($guestForm->get('gst_registered_company_name')); ?>
                                    <?php echo $this->formElementErrors($guestForm->get('gst_registered_company_name'), ['class' => 'error']); ?>
                                    <span class="highlight"></span>
                                    <span class="bar"></span>
                                    <?php echo $this->translate($this->formLabel($guestForm->get('gst_registered_company_name'))); ?>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="clearfix"> </div>
                    <div  class="marginbot10 no-border padding-top10px ">
                        <div class="mapcantiner_inner1 no-padding">
                            <div class="marginbot10 padding-bot10px">
                                <div class="col-md-2 sightmargin" align="left"> 
                                    <?php echo $this->FormElement($guestForm->get('guest-submit')); ?>
                                </div>
                            </div>
                        </div>
                        <div class="clearfix"> </div>
                    </div>
                </div>
            </div>
        </h4>
    </div>
</div>
<?php echo $this->formElement($guestForm->get('form_type')); ?>
<?php echo $this->form()->closeTag(); ?>
