<style>
    .ui-autocomplete { z-index:2147483647;}
</style>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">&times;</button>
    <h2 class="modal-title"><?php echo $heading; ?></h2>
    <!--Click to select if we Exceeded, Met or Did Not meet your Expectations-->
</div>
<div id="displayMsg"></div>
<div class="modal-body">

<?php
$form = $this->form;
$form->prepare();
$form->setAttribute('action', $this->url('submit-enquiry', ['action' => 'submit-enquiry']));
$form->setAttribute('method', 'post');
echo $this->form()->openTag($form);
echo $this->formHidden($form->get('enquiry_type'));
?>

    <div class="row">
        <div class="form-group-lg form-group-select-plus pull-left width100per">
            <div class="col-sm-6">
                <div class="form-group">
                    <div class="spanclass">Name<span style="color: red">*</span></div>
                    <?php echo $this->formElement($form->get('customer_name')); ?>
                      <?php echo $this->formElementErrors($form->get('customer_name'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                </div>
            </div>

            <div class="col-sm-6">
                <div class="form-group">
                    <div class="spanclass">Email<span style="color: red">*</span></div>
                    <?php echo $this->formElement($form->get('customer_email')); ?>
                     <?php echo $this->formElementErrors($form->get('customer_email'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                </div>
            </div>
        </div>

        <div class="form-group-lg form-group-select-plus pull-left width100per">
            <div class="col-sm-6">
                <div class="form-group">
                    <div class="spanclass">Contact No.<span style="color: red">*</span></div>
                    <?php echo $this->formElement($form->get('customer_mobile')); ?>
                     <?php echo $this->formElementErrors($form->get('customer_mobile'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                </div>
            </div>

            <div class="col-sm-6">
                <div class="form-group">
                    <div class="spanclass">Origin City <span style="color: red">*</span></div>
                    <?php echo $this->formElement($form->get('origin_city')); ?>
                    <?php echo $this->formElement($form->get('origin_city_id')); ?>
                     <?php echo $this->formElementErrors($form->get('origin_city'), ['class' => 'error']); ?>
                    <span class="highlight"></span>
                    <span class="bar"></span>

                </div>
            </div>
        </div>



        <div class="form-group-lg form-group-select-plus pull-left width100per">
            <div class="col-sm-6">
                <div class="col-md-12 no-padding" id="round_trip">
                    <div class="form-group-lg form-group-icon-left">
                        <div class="col-sm-6 padding0">
                            <div class="form-group">
                                <div class="spanclass">Start Date <span style="color: red">*</span></div>

                                <?php echo $this->formElement($form->get('start_date')); ?>
                                 <?php echo $this->formElementErrors($form->get('start_date'), ['class' => 'error']); ?>

                                <span class="highlight"></span>
                                <span class="bar"></span>
                            </div>
                        </div>

                        <div class="col-sm-6 paddig-right0">
                            <div class="form-group">
                                <div class="spanclass">Time</div>
                                <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
               <?php echo $this->formElement($form->get('start_time')); ?>
                                 <?php echo $this->formElementErrors($form->get('start_time'), ['class' => 'error']); ?>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-time"></span>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-sm-6">
                <div class="col-md-12 no-padding" id="round_trip">
                    <div class="form-group-lg form-group-icon-left">
                        <div class="col-sm-6 padding0">
                            <div class="form-group">
                                <div class="spanclass">End Date</div>
                                <?php echo $this->formElement($form->get('end_date')); ?>
                                 <?php echo $this->formElementErrors($form->get('end_date'), ['class' => 'error']); ?>
                                <span class="highlight"></span>
                                <span class="bar"></span>
                            </div>
                        </div>

                        <div class="col-sm-6 paddig-right0">
                            <div class="form-group">
                                <div class="spanclass">Time</div>
                                <div class="input-group clockpicker" data-placement="bottom" data-align="left" data-donetext="Done">
                                     <?php echo $this->formElement($form->get('end_time')); ?>
                                 <?php echo $this->formElementErrors($form->get('end_time'), ['class' => 'error']); ?>
                                    <span class="input-group-addon">
                                        <span class="glyphicon glyphicon-time"></span>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <div class="form-group-lg form-group-select-plus pull-left width100per margin-bot20px"style="margin-bottom: 18px;">

            <div class="col-sm-6">
                <?php if($type=="self-drive" || $type=="conference" || $type=="mice" || $type=="wedding" || $type=="luxury" || $type=="international-destination") {?>
                <div class="group">
                    <div class="spanclass"> Select Car </div>
                    <span class="bar"></span>
                    <div class="select-style">
                       <?php echo $this->formElement($form->get('vehicle_type')); ?>
                                 <?php echo $this->formElementErrors($form->get('vehicle_type'), ['class' => 'error']); ?>
                    </div>
                    <span class="highlight"></span>
                    <span class="bar"></span>

                </div>
                <?php } else { ?>
                <div class="group">
                    <div class="spanclass"> Package </div>
                    <span class="bar"></span>
                    <div class="select-style">
                        <?php echo $this->formElement($form->get('package_name')); ?>
                        <?php echo $this->formElementErrors($form->get('package_name'), ['class' => 'error']); ?>
                    </div>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                </div>
                <?php } ?>
            </div>

            <div class="col-sm-6">

                <div class="group">
                    <div class="spanclass">Budget</div>
                    <span class="bar"></span>
                    <div class="select-style">
                        <?php echo $this->formElement($form->get('budget')); ?>
                        <?php echo $this->formElementErrors($form->get('budget'), ['class' => 'error']); ?>
                    </div>
                    <span class="highlight"></span>
                    <span class="bar"></span>
                </div>
            </div>







        </div>


        <div class="form-group-lg form-group-select-plus pull-left width100per">


            <div class="col-sm-3">

               <div class="form-group-lg form-group-select-plus">
                        <div class="group adult quantity">
                            <?php echo $this->formElement($form->get('adults')); ?>
                            <?php echo $this->formElementErrors($form->get('adults'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('adults'))); ?>
                        </div>
                    </div>
            </div>

            <div class="col-sm-3">

                <div class="form-group-lg form-group-select-plus">

                        <div class="group chield quantity">
                            <?php echo $this->formElement($form->get('childs')); ?>
                            <?php echo $this->formElementErrors($form->get('childs'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('childs'))); ?>
                        </div>
                </div>
            </div>

            <div class="col-sm-3">

                <div class="form-group-lg form-group-select-plus">


                    <div class="group laggage quantity">
                        <?php echo $this->formElement($form->get('luggages')); ?>
                            <?php echo $this->formElementErrors($form->get('luggages'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('luggages'))); ?>
                   </div>

                </div>



            </div>

            <div class="col-sm-3">

                <div class="form-group-lg form-group-select-plus">


                    <div class="group car quantity">

                    <?php echo $this->formElement($form->get('no_of_vehicles')); ?>
                            <?php echo $this->formElementErrors($form->get('no_of_vehicles'), ['class' => 'error']); ?>
                            <span class="highlight"></span>
                            <span class="bar"></span>
                            <?php echo $this->translate($this->formLabel($form->get('no_of_vehicles'))); ?>                       </div>

                </div>



            </div>

        </div>

        <div class="form-group-lg form-group-select-plus pull-left width100per" style="margin-top: 20px;">

            <div class="col-md-8 no-padding">

                <div class="col-md-8">

                    <div class="form-group">
                        <div class="g-recaptcha" data-sitekey="<?php echo $captchaKey; ?>"></div>
                        <div class="captcha-error" style="color:#a94442;"><?php echo $this->error; ?></div>
                    </div>

                </div>
<!--                <div class="col-sm-4">
                    <div class="spanclass">Captcha</div>
                    <input type="text" value="1376" id="ran" readonly="readonly" class="captcha form-control valid" aria-invalid="false"></div>-->

            </div>

            <div class="col-sm-4 text-right">
                <div class="spanclass"></div>
                <div class="group">
                    <?php echo $this->formElement($form->get('enquiry_submit')); ?>
                </div>
            </div>



        </div>

    </div>

<?php echo $this->form()->closeTag(); ?>

</div>
</div>
<div class="modal-footer" style=" padding-top:2px !important;">
    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
<script src="https://www.google.com/recaptcha/api.js" async defer></script>