  *{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}
body{
  background-color: aliceblue;
  background-position: center;
  background-size: cover;
}
.container{
  width:27%;
  height: 75%;
  margin:8% auto;
  background:#fff;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
form .container{
  width:80%;
  height: 400%;
  margin:8% auto;
  background:#fff;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
h3{
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: #777;
}
.container .tab{
  width: 77%;
  position: absolute;
  top: 100px;
  left: 40px;
  transition: 0.5s;
}
.tab{
  display: flex;
  flex-direction: column;
}
.tab .input{
  width: 100%;
  padding: 2% 1%;
  margin: 2% 0;
  border: 0;
  border-bottom: 1px solid #999;
  outline: none;
  background: transparent;
}
::placeholder{
  color: #999;
  text-transform: capitalize;
}
.btn-box{
  display: flex;
  width: 100%;
  margin: 6% auto;
  text-align: center;
}
.tab button{
  width: 110%;
  height: 35px;
  margin: 0 10px;
  background: linear-gradient(to right, #ff105f, #ffad06);
  border-radius: 30px;
  border: 0;
  color: #fff;
  cursor: pointer;
}
a{
  text-decoration: none;
  cursor: pointer;
}
img{
  height:20%;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
#form2{
  left: 100%;
}
#form3{
  left: 100%;
}
#form4{
  left: 100%;
}
.step-row{
  width: 100%;
  height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  box-shadow: 0 -1px 5px -1px #000;
  position: relative;
}
.step-col{
  width: 100%;
  text-align: center;
  color: #333;
  position: relative;
}
#progress{
  position: absolute;
  height: 100%;
  width: 25%;
  background: linear-gradient(to right, #ff105f, #ffad06);
  transition: 1s;
}
#progress::after{
  content: '';
  height: 0;
  width: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  position: absolute;
  right: -20px;
  top: 0;
  border-left: 20px solid#ffad06;
}
/* The Modal (background) */
.modal {
    cursor: pointer;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    align-items:center;
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 80%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 60px;
  }
 /* .container
  {
    align-items: center;
  }*/
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 5px auto; /* 15% from the top and centered */
    border: 1px solid #888;
    width: 100%; /* Could be more or less, depending on screen size */
  }
  
  /* The Close Button */
  .close {
    /* Position it in the top right corner outside of the modal */
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
  }
  
  /* Close button on hover */
  .close:hover,
  .close:focus {
    color: red;
    cursor: pointer;
  }
  
  /* Add Zoom Animation */
  .animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
  }
  
  @-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
  }
  
  @keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
  }
  @media screen and (max-width: 400px){
   .modal{
    width: 100%;
    height: 100%;
   } 

  }
@media screen and (max-width: 500px) {
  .container{
    width:90%;
    height: 70%;
    margin:8% auto;
    background:#fff;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
  }
  .container .tab{
    width: 77%;
    position: absolute;
    top: 100px;
    left: 40px;
    transition: 0.5s;
  }
  form .container{
  width:100%;
  height: 450%;
  margin:8% auto;
  background:#fff;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}
  .tab .input{
    width: 100%;
    padding: 5% 2%;
    margin: 3% 0;
    border: 0;
    border-bottom: 1px solid #999;
    outline: none;
    background: transparent;
  }
  .step-row{
    width: 100%;
    height: 40px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    box-shadow: 0 -1px 5px -1px #000;
    position: relative;
  }
  .step-col{
    width: 100%;
    text-align: center;
    color: #333;
    position: relative;
  }
  #progress{
    position: absolute;
    height: 100%;
    width: 25%;
    background: linear-gradient(to right, #ff105f, #ffad06);
    transition: 1s;
  }
}