:root {
  --color1: #1113A2; /*#2b2f84; /*#04264d(other blue) #1eb0e7(sky blue)*/
  --color2: white;
  --color3: black;
  --color4: royalblue;
}

/***** Animations *****/
.slide-right {
  animation: 1s slide-right ease-out;
}
@keyframes slide-right {
  from {
    margin-left: -20%;
  }
  to {
    margin-left: 12%;
  }
}
@keyframes zoom{
  0% {
    transform: scale(.80, .80);
  }
  50% {
    transform: scale(.98, .98);
  }
  100% {
    transform: scale(1, 1);
  }
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif; 
	/*scroll-behavior: smooth;*/
} 
.body{
  width: 100%;
  height: 100%;
  position: relative;
}
.cover{
  width: 100%;
  height: 100%;
  position: relative;
  background-size: 100% 100%;
  
}
.cover img{
  width: 100%;
  height:100vh;    
  background-position: center;
  background-size: 100% 100%;
  
}  
.insidecover-a{
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom,
  rgba(17, 19, 162, 1) 5%,
  rgba(17, 19, 162, .7) 30%,
  rgba(17, 19, 162, .4) 80%,
  rgba(17, 19, 162, 0) 100%);
}

.navbar{
  width: 100%;
  position:relative;
  top: 0;
  background-color: transparent; /*temporary*/
  display: flex;
  align-items: center;
  padding-left: 10px;
}
.navbar-icon{
  position: relative;
  padding: 3px;
}
.navbar-icon img{
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 10px 10px rgba(255, 255, 255, 0.22));
}
#img2{
  width: 95px;
  height:95px;  
}
.navbar-title{
  color: var(--color2);
  padding-left: 10px;
}
.navbar-links{
  position: absolute;
  right: 1rem;
}
.navbar-links ul {
  list-style: none;
  display: flex;
    
}
.navbar-links li {
  height: 100%;
  margin: 0 10px; 
  padding: 1rem;
  border-bottom: 5px solid transparent;
}
.navbar-links li:hover, 
.navbar .active{
  border-bottom: 5px solid #fff;
    
}
.navbar-links a {
  padding: 1rem;
  text-decoration: none;
  color: #fff;
  width: 100%;
}
.navbar-links .user-icon{
  position: relative;
  width: 50px;
  height: 50px;
  margin: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}
.navbar-links .user-icon img{
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  position: absolute;
  margin: 10px;
}


.footer{
  width: 100%;
  height: 25px;
  position:relative;
  bottom: 0;
}
.footer p{
  width: 100%;
  display: block;
  text-align: center;
  font-size: 14px;
  color: #333;
}



/*Main Content*/
.form{
  margin: 10rem auto 5rem auto;
  max-width: 75%;
  animation: 1s zoom ease-out;
}
.form-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem;
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
  position: relative; 
}

/*Main Content - Header*/
.form-header{
  padding: 1rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 6px -6px rgba(0,0,0,0.22);
  display: block;
}
.form-header h1 {
  font-size: 30px;
  color: var(--color1);
  position: relative;
  padding: 1rem 0;
}
.form-header i{
  margin: 0 20px 0 0;
  font-size: 35px;
}
.form-header p{
  color: var(--color1);
  font-size: 18px;
}



/*Main Content - Body*/
.form-content{
  width: 90%;
  margin: auto;
}
.form-content .flex{
  display: flex;
  width: 100%;
  gap: 6px;
  flex-direction: row;
}
.form-content .flex{
  margin: 1rem 0;
}
.form-content .signup-label{
  font-size: 20px;
  margin: .8rem 0;
} 
.form-content label {
  position: relative;
  width: 100%;
  margin: .5rem 0;
}
.form-content label .input {
  width: 100%;
  padding: 15px 10px 15px 10px;
  outline: 0;
  border: 1px solid rgba(105, 105, 105, 0.397);
  border-radius: 10px;
  font-size: 18px;
  display: block;
}
.i-sty{
  padding-right: 5px;
}
#lastname-error,
#firstname-error,
#middlename-error,
#suffix-error,
#bday-error,
#sex-error,
#add1-error,
#add2-error,
#add3-error,
#add4-error,
#mobile-error,
#email-error,
#pass1-error,
#pass2-error,
#check-error{
  font-size: 12px;
  color: red;
  position: absolute;
  right: 6px;
  bottom: 5px;
}
#check-error{
  left: 6px;
}
.form-content label .input + span {
  position: absolute;
  left: 10px;
  top: -1.5rem;
  color: grey;
  font-size: 1em;
  cursor: text;
  transition: 0.3s ease;
}
.form-content label .input:focus
{
  border: 1.5px solid  #2196f3;
}
.form-content label .input:focus + span {
  color:  #2196f3;
}

.form-content .check{
  color: #333;
  padding: .5rem 0;
  position: relative;
}
.form-content .check label{
  line-height: 3rem;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
}
.btn-tac{
  text-decoration: underline;
  font-style: italic;
  cursor: pointer;
  color: var(--color1);
} 

.up-input{
    text-transform:uppercase;
}

/*Main Content - Footer*/
.form-footer{
  width: 100%;
  display: block;
  margin: .5rem 0;
}
.form-footer button, .ok-tac{
  display: flex;
  justify-content: center;
  align-items: center;
  width:80%;
  margin: auto;
  transition: all 0.2s ease-in-out 0ms;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--color1);
  color: #fff;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}
.form-footer button:hover, .ok-tac:hover{
  background: #0c0e8b;
}
.form-footer button > svg {
  width: 34px;
  margin-left: 10px;
  transition: transform .3s ease-in-out;
}
.form-footer button:hover svg {
  transform: translateX(25px);
}
.form-footer button:active, .ok-tac:active {
  transform: scale(0.95);
}
.form-footer .signin {
  text-align: center;
  color:var(--color1);
  font-size: 14px;
  padding: 1rem;
}
.form-footer .signin a {
  color: var(--color1);
  cursor: pointer;
}
.form-footer .signin a:hover {
  text-decoration: underline royalblue;
}
.footer{
  width: 100%;
  height: 25px;
  position:relative;
  bottom: 0;
}
.footer p{
  width: 100%;
  display: block;
  text-align: center;
  font-size: 14px;
  color: #333;
}

.input-container {
  position: relative;
}
.input-container input{
  outline: none;
  border: 1px solid transparent;
  margin: 8px 0;
}
.input-container input { 
  padding: 1rem;
  padding-right: 3rem;
  font-size: 1rem;
  line-height: 1.25rem;
  width: 100%;;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  border:1px solid lightgray;
}
.input-container span {
  display: grid;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  place-content: center;
  cursor: pointer;
}
.input-container span svg {
  color: #9CA3AF;
  width: 1rem;
  height: 1rem;
}

.required-label::after {
  content: " *";
  color: red;
}

.formError{
  color: #c40233; 
  text-align:center; 
  background:pink; 
  border:1.5px solid #c40233; 
  padding: 10px;
  margin:2px;
  display:none;
}

/*Pop up Modal Payment*/
.modal{
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}
.close-btn-tac{
  float: right;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: rgb(231, 230, 230);
}
.close-btn-tac:hover{
  background-color: darkgray;
}
.close-btn-tac:active{
  transform: scale(0.95);
} 
.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1.0);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 1rem 2rem;
  width: 35rem;
  border-radius: 0.5rem;
  
}
.modal-header{
  width: 100%;
  padding: 0 0 5px 0;
  margin: 20px 10px;
  color: var(--color1);
}
.modal-body{
  width: 100%;
  padding: 0 15px 5px 1.5rem;
  text-align: justify;
  overflow-y: scroll;
  height: 300px;
}
.modal-body h3{
  padding: 12px 0;
  color: #333;
}
.modal-body li{
  padding-left: 25px;
}
.modal-body p{
  padding: 5px 0;
}
.modal-footer{
  width: 100%;
  padding: 0 0 5px 0;
  margin: 20px 10px;
  display: flex;
  justify-content: center;
}
.modal-footer button{
  padding: 10px 20px;
  font-size: 15px;
}

@media only screen and (max-width: 900px){
 
  .form{
    margin: 0 auto;
    padding: 0;
    max-width: 90%;
  }
  .form-container{
    margin: 60px auto;
    padding: 0;
  }
  .navbar-icon img{
    width: 85px;
    height: 85px;
  }
  #img2{
    width: 80px;
    height:80px;  
  }
  .navbar-title{
    padding: 0;
  }
  .navbar-title p{
    text-align: center;
    font-size: 15px;
  }

    /*Main Content - Header*/
  .form-header{
    padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .form-header h1 {
    font-size: 27px;
    padding: .5rem 0;
  }
  .form-header i{
    margin: 0 10px 0 0;
    font-size: 25px;
  }
  .form-header p{
    font-size: 16px;
  }

  /*Main Content - Body*/

  .form-content .flex{
    margin: 1rem 0;
  }

  .form-content .signup-label{
    font-size: 17px;
    margin: .5rem 0;
  } 
  .form-content label {
    margin: .5rem 0;
  }
  .form-content label .input {
    padding: 12px 5px 12px 10px;
    font-size: 14px;
  }
  .form-content label .input + span {
    top: -1.2rem;
    font-size: 13px;
  }
  .form-content .check label{
    font-size: 13px;
  }

  /*Main Content - Footer*/

  .form-footer button{
    font-size: 15px;
  }
  .form-footer .signin {
    font-size: 13px;
  }

  .footer p{
    font-size: 12px;
  }

  #lastname-error,
  #firstname-error,
  #middlename-error,
  #suffix-error,
  #bday-error,
  #sex-error,
  #add1-error,
  #add2-error,
  #add3-error,
  #add4-error,
  #mobile-error,
  #email-error,
  #pass1-error,
  #pass2-error,
  #check-error{
    font-size: 10px;
    right: 6px;
    bottom: 3px;
  }
  #check-error{
    left: 6px;
  }
}

@media only screen and (max-width: 600px){ 
  .form{
    margin: 0 auto;
    padding: 0;
  }
  .form-container{
    margin: 50px auto;
    padding: 0;
  }
  .navbar{
    padding: 0;
    justify-content: center;
    flex-direction: column;
  }
  .navbar-icon{
    padding: 5px;
  }
  .navbar-icon img{
    width: 70px;
    height: 70px;
  }
  #img2{
    width: 65px;
    height:65px;  
  }
  .navbar-title{
    padding: 0;
  }
  .navbar-title p{
    text-align: center;
    font-size: 12px;
  }

    /*Main Content - Header*/
  .form-header{
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .form-header h1 {
    font-size: 23px;
    padding: .5rem 0;
  }
  .form-header i{
    margin: 0 10px 0 0;
    font-size: 25px;
  }
  .form-header p{
    font-size: 13px;
  }

  /*Main Content - Body*/
  
  .form-content .flex{
    flex-direction: column;
    margin: 1rem 0;
  }
  
  .form-content .signup-label{
    font-size: 15px;
    margin: .5rem 0;
  } 
  .form-content label {
    margin: .5rem 0;
  }
  .form-content label .input {
    padding: 12px 5px 12px 10px;
    font-size: 14px;
  }
  .form-content label .input + span {
    top: -1.2rem;
    font-size: 13px;
  }
  .form-content .check label{
    font-size: 11px;
  }

  /*Main Content - Footer*/
  
  .form-footer button{
    font-size: 15px;
  }
  .form-footer .signin {
    font-size: 12px;
  }
  
  .footer p{
    font-size: 12px;
  }


  /*Modal TAC*/
  .modal-content {
    width: 300px;
  }
  .modal-header{
    padding: 0 0 5px 0;
    margin: 10px 5px;
    font-size: 15px;
  }
  .modal-body{
    padding: 0 20px 5px 20px;
    text-align: left;
    overflow-y: scroll;
    height: 150px;
  }
  .modal-body p{
    text-align: justify;
  }
  .modal-footer{
    margin: 10px 0;
  }
  
  /*For Validation*/
  #lastname-error,
  #firstname-error,
  #middlename-error,
  #suffix-error,
  #bday-error,
  #sex-error,
  #add1-error,
  #add2-error,
  #add3-error,
  #add4-error,
  #mobile-error,
  #email-error,
  #pass1-error,
  #pass2-error,
  #check-error{
    font-size: 8px;
    right: 6px;
    bottom: 3px;
  }
  #check-error{
    left: 6px;
  }
}
@media only screen and (max-width:780px) {
  .modal-content {
    padding: 1rem;
    width: 400px;
  }
  .modal-header{
    margin: 10px;
  }
  .modal-body{
    height: 280px;
    font-size: 13px;
  }
  .modal-footer{
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .modal-footer button{
    padding: 10px ;
    font-size: 15px;
  }
}
@media only screen and (max-width:600px) {
  .modal-content {
    padding: 1rem;
    width: 430px;
  }
  .modal-header{
    margin: 10px;
    font-size: 15px;
  }
  .modal-footer{
    width: 100%;
    padding: 0;
    margin: 10px;
    display: flex;
    justify-content: center;
  }
  .modal-footer button{
    padding: 10px ;
    font-size: 15px;
  }
}
@media only screen and (max-width:480px) {
   /*Pop up Modal Payment*/
  .modal-content {
    padding: 1rem;
    width: 350px;
  }
  .modal-header{
    margin: 7px;
    font-size: 13px;
  }
  .modal-body{
    padding: 0 10px 5px 10px;
    height: 300px;
    font-size: 13px;
  }
  .modal-footer{
    width: 100%;
    padding: 0;
    margin: 10px;
    display: flex;
    justify-content: center;
  }
  .modal-footer button{
    padding: 10px ;
    font-size: 15px;
  }
  
  .form-content .check label{
     line-height: 0;
  }
}
@media only screen and (max-width:380px) {
  /*Pop up Modal Payment*/
  .modal-header{
    margin: 4px;
  }
  .modal-content {
    width: 280px;
 }
 .modal-body{
    height: 250px;
  }
}