*{
  margin: 0;
  padding: 0 ;
  box-sizing: border-box;
  
  
}
a{
  text-decoration: none;
  color: white;
}
body{
  font-family: 'Roboto Condensed', sans-serif;
}
.header-video{
  background: url("../assets/images/header-bg/contact-mobile.jpeg") no-repeat;
  background-size: cover;
  background-position: 35%;
}

.form-heading{
  font-size: 2.2rem;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  text-align: center;
  height: 240px;
  /* background-color: royalblue; */
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: normal;
}

.form{
  position: relative;
  width: 100%;
  height: 400px;
  margin: 0px 0  150px 0;
  padding:  0 10%;
  /* border: 5px solid yellowgreen; */
  display: flex;
}

.form-section{
  width: 50%;
  
}
.form-control{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 90%;
  margin: 30px 20px;
  position: relative;
  /* border: 1px solid red; */
  
  
}


.form-control .control-wrapper{
  height: 40px;
  width: 100%;
  position: relative;
  outline: none;
  margin: 0 5px;
}
.form-control .control-wrapper .input-field{
  height: 100%;
  width: 100%;
  border: none;
  font-size: 17px;
  border-bottom: 1px solid silver;
  outline: none;
  font-family: 'Roboto Condensed', sans-serif;
}
.control-wrapper .input-field:focus ~ label,
.control-wrapper .input-field:valid ~ label{
  transform: translateY(-20px);
  font-size: 12px;
  color: grey;
}

.form-control .control-wrapper label{
  position: absolute;
  bottom: 10px;
  left: 0;
  color: rgba(0, 0, 0, 0.863);
  pointer-events: none;
  transition: all 0.3s ease;
  font-family: 'Roboto Condensed', sans-serif;
}
.control-wrapper .underline{
  position: absolute;
  height: 2px;
  width: 100%;
  bottom: 0;
}
.control-wrapper .underline:before{
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  background: #000;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s ease;
}
.control-wrapper .input-field:focus ~ .underline:before,
.control-wrapper .input-field:valid ~ .underline:before{
  transform: scaleX(1);
}



.form-control > select {
  width: 100%;
  height: 40px;
  background: transparent;
  border: none;
  border-bottom: 1px solid silver;
  outline: none;
  font-size: 16px;
  font-family: 'Roboto Condensed', sans-serif;
}
.control-wrapper > textarea{
  padding: 10px 5px ;
  font-size: 14px;
  overflow: hidden;
  transition: 0.5s ease;
  font-family: 'Roboto Condensed', sans-serif;
 
}
.textarea .underline{
  transition: 0.5s ease;
 
}


textarea:focus,
textarea:valid{
  height: 180px !important;
}

 

textarea:focus ~ .textarea-underline,
textarea:valid ~ .textarea-underline{
  transform: translateY(140px);
}



 
.submit-btn{
  position: absolute;
  bottom: 0vh;
  right: 12%;
  background: transparent;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  border: 1px solid #000;
  text-transform: uppercase;
  overflow: hidden;
  transition: 1s all ease;
  width: 150px;
  height: 50px;
}
.submit-btn::before{
  background: #000;
  color: white;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  transition: all 0.6s ease;
}
.submit-btn> span {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  /* background-color: red; */
  width: 100%;
  text-align: center;
}

.submit-btn:hover{
  color: white ;
}

.submit-btn::before{
  width: 100%;
  height: 0%;
  transform: translate(-50%,-50%) rotate(-45deg);
}
.submit-btn:hover::before{
  height: 380%;

} 
.required-fields{
  position: absolute;
  bottom: 30px;
  left: 12%;
  pointer-events: none;
  text-transform: capitalize;
  
}


@media screen and (max-width:768px){
  .form-heading{
    font-size: 1.5rem;
    /* height: 200px; */
    margin-bottom: -40px;
  }
  .form{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 400px;
    padding: 0 5% ;
    margin-top: 0;
    margin-bottom : 200px ;
    /* border: 2px solid yellowgreen; */
    
  }
  .form-section{
    width: 100%;
  }
  .form-control{
    margin:  20px 0;
    margin-bottom: 0;
  }
  .required-fields{
    position: absolute;
    bottom: -10px;
    left: 6%;
    font-size: 14px;
    
    
  }
  .submit-btn{
    bottom: -100px;
    width: 100px;
    height: 40px;
  
    
  }
  textarea:focus,
  textarea:valid{
  height: 100px !important;
}

 

textarea:focus ~ .textarea-underline,
textarea:valid ~ .textarea-underline{
  transform: translateY(60px);
}



 
        
}