Banner Slider With Form

COVID-19

At Canada’s Restoration Services, the health and safety of our customers and employees have always been our highest priority.

We are actively monitoring the COVID-19 situation and are taking all precautions to keep you safe when we enter your home or business.

COVID-19

At Canada’s Restoration Services, the health and safety of our customers and employees have always been our highest priority.

We are actively monitoring the COVID-19 situation and are taking all precautions to keep you safe when we enter your home or business.

COVID-19

At Canada’s Restoration Services, the health and safety of our customers and employees have always been our highest priority.

We are actively monitoring the COVID-19 situation and are taking all precautions to keep you safe when we enter your home or business.


PHP
<section class="main_top_form">
	<div class="top_slider_form hidden_slider" data-slider="top_slider_form">
		<?php for ($i = 0; $i < 3; $i++) :?>
			<div>
				<div class="banner" style="background-image: url('/img/banner2.jpg')"></div>
				<div class="main_content">
					<div class="wrapper">
						<div class="text">
							<h2 style="color:#ff0100;">COVID-19</h2>
							<p style="margin-bottom:2rem;">At Canada’s Restoration Services, the health and safety of our customers and employees have always been our highest priority.</p>
							<p>We are actively monitoring the COVID-19 situation and are taking <b style="color:#ff0100;">all precautions to keep you safe when we enter your home or business</b>.</p>
							<div class="btn_wrap">
								<a href="#" class="button">LEARN MORE</a>
								<a href="#" class="button || black || btn_mobile" data-modals="modal_contact">REQUEST NOW</a>
							</div>
						</div>
					</div>
				</div>
			</div>
		<?php endfor ;?>
	</div>
	
	<div class="banner_form_wrap">
		<div class="wrapper">
			<form action="" method="POST" class="banner_form || validate_form" autocomplete="off" novalidate>
				<p>Request a <span>FREE</span> Estimate<br><small>We Respond within 10 Minutes</small></p>
				<div class="form_item">
					<label>
						<input type="text" name="name" class="input || validate" placeholder="Full Name" autocomplete="off">
					</label>
				</div>
				
				<div class="form_item">
					<label class="label_select">
						<select name="service_type" class="input || validate_select">
							<option value="" selected="">Select Service Type</option>
							<option value="Water Damage">Water Damage</option>
							<option value="Mold Testing">Mold Testing</option>
							<option value="Construction Services">Construction Services</option>
							<option value="Smoke/Fire Damage">Smoke/Fire Damage</option>
							<option value="Mold Inspection">Mold Inspection</option>
							<option value="Asbestos">Asbestos</option>
							<option value="COVID-19">COVID-19</option>
							<option value="Carpet Cleaning">Carpet Cleaning</option>
							<option value="Other">Other</option>
							<option value="" disabled="">----------------------</option>
							<option value="marketing">Marketing Inquiries</option>
						</select>
					</label>
				</div>
				
				<div class="form_item">
					<label>
						<input type="tel" name="phone" class="input phone_us || validate_tel" placeholder="Phone Number" inputmode="numeric" autocomplete="off">
					</label>
				</div>
				
				<div class="form_item">
					<label>
						<input type="email" name="email" class="input || validate_email" placeholder="Email Address" autocomplete="off">
					</label>
				</div>
				
				<div class="form_item">
					<label class="label_select">
						<select name="city" class="input || validate_select">
							<option value="" selected="">Select Your Location</option>
							<option value="GTA">GTA & surrounding</option>
							<option value="Montreal">Montreal</option>
							<option value="Ottawa">Ottawa</option>
							<option value="Edmonton">Edmonton</option>
							<option value="Vancouver">Vancouver</option>
							<option value="Calgary">Calgary</option>
							<option value="Other areas">Other areas</option>
						</select>
					</label>
				</div>
				
				<div class="form_item">
					<label>
						<input type="number" name="a"  class="input || validate_cap" inputmode="numeric" placeholder="<?= $firstCaptchaNumber ?>+<?= $secondCaptchaNumber ?>=" autocomplete="off">
					</label>
				</div>
				
				<button type="submit" class="button">REQUEST NOW</button>
			</form>
		</div>
	</div>
</section>
CSS
.main_top_form{position:relative;padding:0;z-index:2}
.main_top_form .banner{background-repeat:no-repeat;background-position:center top;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;width:100%;max-width:100%;position:relative;height:66rem;z-index:1}
.main_top_form .banner:after{content:'';position:absolute;top:0;left:0;display:block;width:100%;height:100%;background:rgba(0,0,0,.2);z-index:-1}
.main_top_form .main_content{position:absolute;top:50%;left:50%;width:100%;display:block;z-index:5;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}
.main_top_form .main_content .text{text-align:left;max-width:50%;width:50%;color:#fff;display:block;position:relative;text-transform:capitalize}
.main_top_form .main_content .text h1,.main_top_form .main_content .text h2,.main_top_form .main_content .text h3,.main_top_form .main_content .text .h1{margin:0 0 1rem;font-size:5rem;color:#fff;line-height:1.2;display:block;font-weight:700;text-transform:capitalize;text-shadow:-.1rem 0 1.3rem #242424}
.main_top_form .main_content .text span,.main_top_form .main_content .text strong,.main_top_form .main_content .text p{font-size:2.4rem;line-height:1.3;font-weight:400;display:block;color:#fff;text-transform:capitalize;text-shadow:-.1rem 0 1.3rem #242424;margin:0 0 1rem}
.main_top_form .main_content .text .btn_mobile{display:none}
.main_top_form .top_slider_form.hidden_slider{opacity:0;overflow:hidden;max-height:66rem}
.main_top_form .top_slider_form .dots_wrapper{width:100%;max-width:125rem;padding:0 1.5rem;margin:0 auto;position:relative}
.main_top_form .top_slider_form .slick-dots{bottom:5.5rem;left:1.5rem;-webkit-transform:translate(0,0);-moz-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}
.main_top_form .banner_form_wrap{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);-o-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:block;z-index:4;width:100%}
.main_top_form .banner_form_wrap .banner_form{position:absolute;top:50%;right:1.5rem;-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-ms-transform:translate(0,-50%);-o-transform:translate(0,-50%);transform:translate(0,-50%);display:block;width:34rem;margin-left:auto;background:#fff;padding:2.5rem;text-align:center}
.main_top_form .banner_form_wrap .banner_form p{font-size:2.5rem;line-height:1.2;color:#343434;text-align:center;margin:0 0 1rem}
.main_top_form .banner_form_wrap .banner_form p span{color:red;font-weight:800}

@media only screen and (max-width: 1300px) {
	.main_top_form .banner{height:56rem}
	.main_top_form .top_slider_form.hidden_slider{max-height:56rem}
	.main_top_form .main_content .text h1,.main_top_form .main_content .text h2,.main_top_form .main_content .text h3,.main_top_form .main_content .text .h1{font-size:4rem}
	.main_top_form .main_content .text span,.main_top_form .main_content .text strong,.main_top_form .main_content .text p{font-size:2rem}
}

@media only screen and (max-width: 992px) {
	.main_top_form .banner{height:50rem}
	.main_top_form .top_slider_form.hidden_slider{max-height:50rem}
	.main_top_form .top_slider_form .slick-dots{bottom:2.5rem}
	.main_top_form .main_content .text h1,.main_top_form .main_content .text h2,.main_top_form .main_content .text h3,.main_top_form .main_content .text .h1{font-size:3.4rem}
	.main_top_form .main_content .text span,.main_top_form .main_content .text strong,.main_top_form .main_content .text p{font-size:1.7rem}
	.main_top_form .banner_form_wrap .banner_form{width:28rem;padding:2rem 2rem 2.5rem}
	.main_top_form .banner_form_wrap .banner_form p{font-size:2rem}
}

@media only screen and (max-width: 767px) {
	.main_top_form .banner{height:40rem}
	.main_top_form .top_slider_form.hidden_slider{max-height:40rem}
	.main_top_form .banner_form_wrap{display:none}
	.main_top_form .main_content .text{max-width:100%;width:100%;text-align:center}
	.main_top_form .main_content .text .btn_wrap{font-size:0;margin:1.5rem 0 0}
	.main_top_form .main_content .text .button{margin:0 .5rem}
	.main_top_form .main_content .text .btn_mobile{display:inline-block}
	.main_top_form .top_slider_form .slick-dots{left:50%;-webkit-transform:translate(-50%,0);-moz-transform:translate(-50%,0);-ms-transform:translate(-50%,0);-o-transform:translate(-50%,0);transform:translate(-50%,0)}
}

@media only screen and (max-width: 550px) {
	.main_top_form .main_content .text h1,.main_top_form .main_content .text h2,.main_top_form .main_content .text h3,.main_top_form .main_content .text .h1{font-size:3rem}
	.main_top_form .main_content .text span,.main_top_form .main_content .text strong,.main_top_form .main_content .text p{font-size:1.4rem}
	.main_top .top_slider.hidden_slider{max-height:45rem}
	.main_top .banner{height:45rem}
}

@media only screen and (max-width: 350px) {
	.main_top_form .main_content .text .button{font-size:1.4rem}
}
SCSS
/* Vars */
$cb:               #000000;
$white:            #ffffff;
$textShadow:       #242424;

.main_top_form {
	position: relative;
	padding: 0;
	z-index: 2;
	
	.banner {
		background-repeat: no-repeat;
		background-position: center top;
		background-size: cover;
		width: 100%;
		max-width: 100%;
		position: relative;
		height: 66rem;
		z-index: 1;
		
		&:after {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			display: block;
			width: 100%;
			height: 100%;
			background: rgba($cb, .2);
			z-index: -1;
		}
		
	}
	
	.main_content {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 100%;
		display: block;
		z-index: 5;
		transform: translate(-50%, -50%);
		
		.text {
			text-align: left;
			max-width: 50%;
			width: 50%;
			color: $white;
			display: block;
			position: relative;
			text-transform: capitalize;
			
			h1, h2, h3, .h1 {
				margin: 0 0 1rem;
				font-size: 5rem;
				color: $white;
				line-height: 1.2;
				display: block;
				font-weight: 700;
				text-transform: capitalize;
				text-shadow: -.1rem 0 1.3rem $textShadow;
			}
			
			span, strong, p {
				font-size: 2.4rem;
				line-height: 1.3;
				font-weight: 400;
				display: block;
				color: $white;
				text-transform: capitalize;
				text-shadow: -.1rem 0 1.3rem $textShadow;
				margin: 0 0 1rem;
			}
			
			.btn_mobile {display: none}
		}
	}
	
	.top_slider_form {
		&.hidden_slider {
			opacity: 0;
			overflow: hidden;
			max-height: 66rem;
		}
		
		.dots_wrapper {
			width: 100%;
			max-width: 125rem;
			padding: 0 1.5rem;
			margin: 0 auto;
			position: relative;
		}
		
		.slick-dots {
			bottom: 5.5rem;
			left: 1.5rem;
			transform: translate(0, 0);
		}
		
	}
	
	.banner_form_wrap {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: block;
		z-index: 4;
		width: 100%;
		
		.banner_form {
			position: absolute;
			top: 50%;
			right: 1.5rem;
			transform: translate(0, -50%);
			display: block;
			width: 34rem;
			margin-left: auto;
			background: #fff;
			padding: 2.5rem;
			text-align: center;
			
			p {
				font-size: 2.5rem;
				line-height: 1.2;
				color: #343434;
				text-align: center;
				margin: 0 0 1rem 0;
				
				span {
					color: #ff0000;
					font-weight: 800;
				}
			}
		}
	}
}

@media only screen and (max-width: 1300px) {
	.main_top_form .banner {height: 56rem;}
	.main_top_form .top_slider_form.hidden_slider {max-height: 56rem;}
	.main_top_form .main_content .text h1, .main_top_form .main_content .text h2, .main_top_form .main_content .text h3, .main_top_form .main_content .text .h1 {font-size: 4rem;}
	.main_top_form .main_content .text span, .main_top_form .main_content .text strong, .main_top_form .main_content .text p {font-size: 2rem}
}

@media only screen and (max-width: 992px) {
	.main_top_form .banner {height: 50rem;}
	.main_top_form .top_slider_form.hidden_slider {max-height: 50rem;}
	.main_top_form .top_slider_form .slick-dots {bottom: 2.5rem;}
	.main_top_form .main_content .text h1, .main_top_form .main_content .text h2, .main_top_form .main_content .text h3, .main_top_form .main_content .text .h1 {font-size: 3.4rem;}
	.main_top_form .main_content .text span, .main_top_form .main_content .text strong, .main_top_form .main_content .text p {font-size: 1.7rem;}
	.main_top_form .banner_form_wrap .banner_form {width: 28rem; padding: 2rem 2rem 2.5rem;}
	.main_top_form .banner_form_wrap .banner_form p {font-size: 2rem;}
}

@media only screen and (max-width: 767px) {
	.main_top_form .banner {height: 40rem;}
	.main_top_form .top_slider_form.hidden_slider {max-height: 40rem;}
	.main_top_form .banner_form_wrap {display: none}
	.main_top_form .main_content .text {max-width: 100%;width: 100%;text-align: center;}
	.main_top_form .main_content .text .btn_wrap {font-size: 0;margin: 1.5rem 0 0}
	.main_top_form .main_content .text .button {margin: 0 .5rem}
	.main_top_form .main_content .text .btn_mobile {display: inline-block}
	.main_top_form .top_slider_form .slick-dots {left: 50%;transform: translate(-50%, 0);}
}

@media only screen and (max-width: 550px) {
	.main_top_form .main_content .text h1, .main_top_form .main_content .text h2, .main_top_form .main_content .text h3, .main_top_form .main_content .text .h1 {font-size: 3rem;}
	.main_top_form .main_content .text span, .main_top_form .main_content .text strong, .main_top_form .main_content .text p {font-size: 1.4rem;}
	.main_top .top_slider.hidden_slider {max-height: 45rem;}
	.main_top .banner {height: 45rem;}
}

@media only screen and (max-width: 350px) {
	.main_top_form .main_content .text .button {font-size: 1.4rem;}
}
JavaScript
$('.top_slider_form').slick({
	dots: true,
	arrows: false,
	infinite: true,
	autoplay: true,
	autoplaySpeed: 5000,
	speed: 500,
	fade: true,
	cssEase: 'linear'
});

Please, enter a valid value