To avoid using an extra row (
<div class="row " style="z-index: 99999; top: 40%;
position: absolute; color: white; left: 100px; right: 5%; margin: 0px;">
),
it is recommended to add a div named
form-wrapper
and apply some CSS for positioning the div at the center.
.section .section-center {
position: absolute;
top: 50%;
left: 0;
right: 0;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
#booking::before {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
top: 0;
background: rgba(255, 255, 255, 0.15);
}
.booking-form {
background: #fff;
border-radius: 2px;
}
.booking-form>form .row.no-margin {
margin-right: 0px;
margin-left: 0px;
}
.booking-form>form .row.no-margin>[class*="col-"] {
padding-right: 0px;
padding-left: 0px;
}
.booking-form .form-group {
position: relative;
padding: 25px;
margin-bottom: 0px;
}
.booking-form .form-group:after {
content: '';
background: rgba(129, 131, 144, 0.15);
position: absolute;
top: 25px;
bottom: 0;
right: 0px;
width: 2px;
height: 75px;
}
.booking-form .form-control {
background-color: transparent;
border-radius: 0px;
border: none;
height: 50px;
-webkit-box-shadow: none;
box-shadow: none;
font-size: 20px;
color: #222;
font-weight: 400;
padding: 0;
}
.booking-form .form-control::-webkit-input-placeholder {
color: #818390;
}
.booking-form .form-control:-ms-input-placeholder {
color: #818390;
}
.booking-form .form-control::placeholder {
color: #818390;
}
.booking-form input[type="date"].form-control:invalid {
color: #818390;
}
.booking-form select.form-control {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.booking-form select.form-control+.select-arrow {
position: absolute;
right: 0px;
bottom: 30px;
width: 32px;
line-height: 32px;
height: 32px;
text-align: center;
pointer-events: none;
color: #818390;
font-size: 14px;
}
.booking-form select.form-control+.select-arrow:after {
content: '\279C';
display: block;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.booking-form .form-label {
color: #07c;
display: block;
font-weight: 400;
height: 25px;
line-height: 25px;
font-size: 14px;
}
.booking-form .form-btn {
padding: 25px;
}
.booking-form .submit-btn {
background: #07c;
border: none;
text-transform: capitalize;
display: block;
border-radius: 2px;
width: 100%;
height: 75px;
font-size: 16px;
font-weight: 400;
color: #fff;
}
/* Place custom global styles here
-------------------------------------------------- */
.form-wrapper {
z-index: 99999;
top: 50%;
position: absolute;
color: white;
left: 50%;
right: auto;
margin: 0px;
transform: translate(-50%,-50%);
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>