<?php

if(get_theme_mod('contact_section_disable') != 'on' ){
	?>
	<!-- contact Area Start -->
	<?php 
	if( get_theme_mod('contact_areaTpadding',true) ) {
		$contact_areaTpadding = 'padding-top:'.esc_attr(get_theme_mod('contact_areaTpadding')).';';
	}
	if( get_theme_mod('contact_areaBpadding',true) ) {
		$contact_areaBpadding = 'padding-bottom:'.esc_attr(get_theme_mod('contact_areaBpadding')).';';
	}	
	?>		
	<div class="contact-area" id="contact">
		<div class="container">
		<?php
			$contact_sectitle = get_theme_mod('contact_sectitle', 'We are here to help you');
			$contact_headtext = get_theme_mod('contact_headtext', 'It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.');
		?>
			<div class="row justify-content-center">
				<div class="col-xl-6 col-lg-6 col-sm-11 col-xs-12">	
					<div class="section-title-area">
						<?php if($contact_sectitle){ ?>
							<?php if($contact_sectitle){ ?>
							<div class="section-title">
								<h2><?php echo ($contact_sectitle);  ?></h2>
							
						
								<div class="title-icon1">
			 					 	<img src="<?php echo esc_html(get_template_directory_uri()); ?>/images/sectitle.png" />
			 					</div>
		 					</div>
	 					<?php }?>
	 					<div class="clearfix"></div>	
						<?php }?>
						<div class="section-subtitle">
							<p><?php echo ($contact_headtext);  ?></p>
						</div>
					</div>
				</div>
			</div>
			<div class="clearfix"></div>
		</div>
		<div class="container">  
			<!-- <div class="contact-area-space"> -->
				<div class="row contact-area-inn">
					<div class="col-md-6 col-sm-6 col-xs-12  pd-0">
						<div class="contact-l-block">		
							<div class="contactsec-img">
								<?php 
								$contactsec_image = get_theme_mod('contactsec_image');
								if(!empty($contactsec_image)){
									echo '<img alt="'. esc_html(get_the_title()) .'" src="'.esc_url($contactsec_image).'" class="img-responsive secondry-bg-img" />';
								}else{
									echo '<img src="'.get_template_directory_uri().'/images/Contactsec.jpg" class="img-responsive" />';
								}

								?>
								
							</div>
						<div class="clearfix"></div>				
						</div>
					<div class="clearfix"></div>
					</div>

					<div class="col-md-6 col-sm-6 col-xs-12 ">
						<div class="appont-mg">					
						<?php 
							$contsec_form_title = get_theme_mod('contsec_form_title', 'Make An Enquiry');
							$contact_form_shortcode = get_theme_mod('contact_form_shortcode', 'Add your form shortcode on customiser');
						?>	

						<?php if($contsec_form_title){ ?>
							<div class="contsecf-title ">
								<h3><?php echo ($contsec_form_title);  ?></h3>
								<div class="title-icon1">
			 					 	<img src="<?php echo esc_html(get_template_directory_uri()); ?>/images/sectitle.png" />
			 					</div>
			 				</div>
			 			<?php }?>
							<div class="ht-contact-member-wrap">
								<?php echo do_shortcode($contact_form_shortcode);?>
								<div class="clearfix"></div>
							</div>
							<div class="clearfix"></div>
						</div>
					</div>
				</div>
				<div class="clearfix"></div>
			<!-- </div> -->
			
		</div>
	</div> 
	
<?php } 