<section class="bg-primary-gradient">
   <div class="container">
      <div class="row ptb-50">
      <?php
if($_SESSION["created"]!=''){

?>
<script> swal("Save!", "Your contact form!", "success");  </script>

<?php
unset($_SESSION["created"]);
}
?>
         <div class="col-md-6 bg-white shadow">
         <div class="card-header bg-white border-bottom py-2">
                                    <h5 class="m-0 fw-bold text-center">Contact-Us</h5>
                                 </div>
            <!--hubspot script begin-->
            <form  action="./contentpages/contact/save_contact" method="post" enctype="multipart/form-data">
            <div class=" mx-auto ptb-50">
            <div class="col-md-12">
                         <!--Email Address-->
                        <div class="mb-3">
                           <label class="fw-bold form-label">Name:<span class="text-danger ps-1">*</span></label>
                            <input type="text"  class="form-control   validate[required,custom[name]] text-input" name="<?=SESS_MASTER?>name" maxlength="45" placeholder="Type Name">
                        </div>
                     </div>
            <div class="col-md-12">
                         <!--Email Address-->
                        <div class="mb-3">
                           <label class="fw-bold form-label">Email Address:<span class="text-danger ps-1">*</span></label>
                            <input type="email"  class="form-control   validate[required,custom[email]] text-input" name="<?=SESS_MASTER?>emailid" maxlength="45" placeholder="Type Email">
                        </div>
                     </div>
                     <div class="col-md-12">
                           <!--Password-->
                        <div class="mb-3">
                           <label class="fw-bold form-label">Subject:<span class="text-danger ps-1">*</span></label>
                           <input type="text" class="form-control  validate[required,minSize[3],maxSize[16]] text-input"  maxlength="15" name="<?=SESS_MASTER ?>subject" placeholder="Enter your Subject">
                        </div>
                     </div>
                     <div class="col-md-12">
                           <!--Password-->
                        <div class="mb-3">
                           <label class="fw-bold form-label">Message:<span class="text-danger ps-1">*</span></label>
                           <textarea class="form-control" name="<?=SESS_MASTER ?>message" id="exampleFormControlTextarea1" rows="3"></textarea>
                        </div>
                     </div>
                     <div class="row">
                        <div class="col-md-6">
                            <!--Remember me-->
                           <div class="mb-3">
                              <div class="form-check">
                                 <input type="checkbox" class="form-check-input" id="exampleCheck1" required>
                                 <label class="form-check-label" for="exampleCheck1"><small>Remember me</small></label>
                              </div>
                           </div>
                        </div>
                        </div>
                        <div class="col-md-12 my-3">
                         <!--Submit-->
                        <div class="d-grid text-center">
                           <button type="submit" class="btn btn-secondary">Submit</button>
                        </div>
                     </div>
</div>
             </form>
         </div>
         <div class="col-md-5 ms-auto">
            <!--contact us banner begin-->
            <img src="<?=$banner_img?>" class="img-fluid rounded-3" alt="contact us" title="contact us">
            <!--contact us banner end-->
         </div>
      </div>
      <div class="row">
         <div class="col-md-12 mt-4 mb-5">
            <!--Banner Begin-->
            <?php    if(!empty($google_adar )){
               echo $google_adar ;
               }else{
               echo ' <img src="admin/forms/'.$adimg3.'" alt="horizontal banner" title="horizontal banner" class="img-fluid rounded-3 mb-5">';
               }
               
               ?>
            <!--Banner End-->
         </div>
      </div>
   </div>
</section>