<a id="popclose" class="popup-close close" data-dismiss="modal" aria-label="Close">×</a>
<div class="modal-body">
    <h3>Quick Enquiry</h3>
    <?=form_open('',['id'=>"contact_form"])?>
        <div class="row">
            <div class="form-group col-sm-12 col-lg-12">
                <input class="input-gray" type="text" name="name" id="name" 
                    value="<?= set_value('name') ?>" required placeholder="Name*">
                <?= $validation->showError('name') ?>
            </div>

            <div class="form-group col-sm-6 col-lg-6">
                <input class="input-gray" type="email" name="email" id="email" 
                    value="<?= set_value('email') ?>" placeholder="Email">
                <?= $validation->showError('email') ?>
            </div>

            <div class="form-group col-sm-6 col-lg-6">
                <input class="input-gray" type="tel" name="phone" id="phone" 
                    value="<?= set_value('phone') ?>" required placeholder="Phone*">
                <?= $validation->showError('phone') ?>
            </div>
            
            <div class="form-group col-sm-6 col-lg-6">
                <input class="input-gray" type="text" name="city" id="city" 
                    value="<?=set_value('city')?>" required placeholder="City*">
                <?= $validation->showError('city') ?>
            </div>
            
            <div class="form-group col-sm-6 col-lg-6">
                <input class="input-gray" type="text" name="state" id="state" 
                    value="<?=set_value('state')?>" placeholder="State*">
                <?= $validation->showError('state') ?>
            </div>

            <div class="form-group col-sm-6 col-lg-6">
                <select name="profession" id="profession" class="input-gray" required>
                    <option value="">Are you a*</option>
                    <option value="Home Owner" <?= set_select('profession', 'Home Owner') ?>>Home Owner</option>
                    <option value="Architect" <?= set_select('profession', 'Architect') ?>>Architect</option>
                    <option value="Builder" <?= set_select('profession', 'Builder') ?>>Builder</option>
                    <option value="Interior Designer" <?= set_select('profession', 'Interior Designer') ?>>Interior Designer</option>
                    <option value="Other" <?= set_select('profession', 'Other') ?>>Other</option>
                </select>
                <?= $validation->showError('profession') ?>
            </div>

            <div class="form-group col-sm-6 col-lg-6">
                <select name="looking_for" id="looking_for" class="input-gray" required>
                    <option value="">Are you looking for*</option>
                    <option value="New Construction" <?= set_select('looking_for', 'New Construction') ?>>New Construction</option>
                    <option value="Renovation" <?= set_select('looking_for', 'Renovation') ?>>Renovation</option>
                    <option value="Farm House" <?= set_select('looking_for', 'Farm House') ?>>Farm House</option>
                </select>
                <?= $validation->showError('looking_for') ?>
            </div>
            
            <div class="form-group col-sm-6 col-lg-offset-3 col-sm-6 col-sm-offset-3">
                <table width="100%">
                    <tr>
                        <td>
                            <input required name="captcha_code" class="input-gray" type="text" placeholder="Enter Security Code">
                            <?=$validation->showError('captcha_code')?>
                        </td>
                        <td class="text-right">
                            <?=$captcha['image_src']?>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="col-sm-12 text-center">
                <button type="button" onclick="postAppointementModal();" class="btn-upper btn-yellow btn">Send</button>
            </div>
        </div>
        
    </form>
    
    
    
    
    
    
    
    
</div>