@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,600;1,700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

:root {
  --primary-color: #2cc6a3;
  --secondary-color: rgb(44, 198, 163);
  --dark-color: rgb(9, 1, 58);
  --light-color: rgb(255, 255, 255);
  --tertiary-color: rgb(241, 68, 103);
  --yellow-color: #ecc818;
  --dark-color1: rgba(9, 1, 58, 0.5);
  --dark-color2: rgba(241, 68, 103, 0.2);
  --light-color1: rgba(255, 255, 255, 0.4);
  --gray: #808080;
  --dark-gray: #555;
  --tertiary-color-shadow: rgba(241, 68, 103, 0.2);
  -webkit-tap-highlight-color: transparent;
}
body{
  background: #f5f5f5;
  font-family: 'Philosopher', sans-serif;
  overflow: hidden;
}
.container{
  width: 100%;
  min-height: 100vh;
  background-color: white;
  gap: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  
}
.left-section{
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--dark-color);
}
.left-section h1{
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--light-color);
  text-align: center;
  margin-top: 1rem;
}
.left-section p{
  font-size: 1rem;
  font-weight: 300;
  color: var(--light-color);
  text-align: center;
  margin: 1rem;
  width: 80%;
  /* margin-left: 25%; */

}
.left-section .social-links{
  width: 100%;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin-top: 1rem;
}
.left-section .social-links a{
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  margin: 0 0.5rem;
  border-radius: 50%;
  background-color: var(--light-color);
  box-shadow: 0 0.5rem 1rem var(--tertiary-color-shadow);
  transition: all 0.3s ease;
}
.left-section .social-links a:hover{
  transform: translateY(-0.5rem);
}
.left-section .social-links a i{
  font-size: 1.5rem;
  color: var(--dark-color);
}

.left-section .image{
  width: 80%;
  /* height: 50%; */
  margin-top:2rem;

}
.left-section .image img{
  width: 80%;
  /* height: 50%; */
  position: relative;
  margin-left:5rem ;
}

.right-section{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: var(--light-color);
  gap:1rem

}
/* label and input should side by side */

.right-section form{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
  margin-left:2rem;
  margin-top: 0.5rem;
}
label{
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-color);
  margin-bottom: 0.5rem;

}
input{
  width: 80%;
  height: 2.5rem;
  border: 1px solid var(--dark-color);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-color);
  background-color: var(--light-color1);
  text-align: justify;
}

/* Use different margin-left values for different types of input elements */
input[type="text"] {
  margin-left: 2.8rem;
}

input[type="email"] {
  margin-left: 3rem;
}

input[type="tel"] {
  margin-left: 2.5rem;
}

input[type="date"] {
  margin-left: 3.5rem;
}

input[type="number"] {
  margin-left: 2.3rem;
}
input[type="checkbox"]{
  margin-top: 1rem;
  /* margin-left: em; */
  margin-bottom: 1.5em;
  height: 1em !important;
  width: 1em !important;

}
select{
  width: 80%;
  height: 2.5rem;
  border: 1px solid;
  border-radius: 0.5rem;
  margin-bottom:0.5rem;
  margin-left: 1.5rem;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-color);
  background-color: var(--light-color1);
  

}

button {
  width: 50%;
  display: block;
  margin: 0 auto;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--light-color);
  background-color: var(--tertiary-color);
  box-shadow: 0 0.5rem 1rem var(--tertiary-color-shadow);
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  font-weight: 300;
}
button:hover::after {
  transform: scaleX(1);
}
button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  z-index: -1;
  transition: all 0.8s ease;
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
}
textarea{
  width: 80%;
  height: 7em;
  border: 1px solid;
  border-radius: 0.5rem;
  /* margin-bottom:0.5rem; */
  margin-left: 1.3rem;
  padding: 0.5rem;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--dark-color);
  background-color: var(--light-color1);
 transform: translate(15%,-20%);
}
label[for="msg"]{
  transform: translate(0, 60%);
}

@media screen and (max-width: 1250px){
  body{
    overflow: auto;
  }
  .container{
    flex-direction: column;
  }
  .left-section{
    width: 100%;
    height: 60vh;
  }
  .left-section h1{
    font-size: 2rem;
  }
  .left-section p{
    font-size: 1rem;
  }
  .left-section .social-links{
    height: 2.5rem;
  }
  .left-section .social-links a{
    width: 2.5rem;
    height: 2.5rem;
  }
  .left-section .social-links a i{
    font-size: 1.3rem;
  }
  .left-section .image{
    width: 100%;
  }
  .left-section .image img{
    width: 50%;
  }
  label{
    font-size: 1rem;
    margin-left: 0.5rem;
  }
  .right-section{
    width: 100%;
    height: 50%;
  
  }
  .right-section form{
    margin-left: 0;
  }
  input{
    width: 50%;
  }
  input[type="text"] {
    margin-left: 1.5rem;
  }
  input[type="email"] {
    margin-left: 1.5rem;
  }
  input[type="tel"] {
    margin-left: 1.5rem;
  }
  input[type="date"] {
    margin-left: 1.5rem;
  }
  input[type="number"] {
    margin-left: 1.5rem;
  }
  select{
    margin-left: 1.5rem;
    width: 50%;
  }
  textarea{
    margin-left: 1.5rem;
  }
  label[for="msg"]{
    transform: translate(0, 50%);
  }
}
@media screen and (max-width: 750px) {
  body{
    overflow: auto;
  }
  .container{
    flex-direction: column;
  }
  .left-section{
    width: 100%;
    height: 50vh;
  }
  .left-section h1{
    font-size: 2rem;
  }
  .left-section p{
    font-size: 1rem;
  }
  .left-section .social-links{
    height: 2.5rem;
  }
  .left-section .social-links a{
    width: 2.5rem;
    height: 2.5rem;
  }
  .left-section .social-links a i{
    font-size: 1.3rem;
  }
  .left-section .image{
    width: 50%;
    display: none;
  }
  .right-section{
    width: 80%;
    height: 50%;
 }
  .right-section form{
    margin-left: 0;
  }
  input {
        width: 80%; /* Adjusted width for better responsiveness */
        margin-left: 2rem; /* Adjusted margin for better alignment */
    }
    label {
        font-size: 1rem;
        margin-left: 0.5rem;
        margin-bottom: 0.5rem;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    input[type="number"],
    select,
    textarea {
        width: 80%; /* Adjusted width for better responsiveness */
        margin-left: 2rem; /* Adjusted margin for better alignment */
    }
    textarea {
        width: 85%; /* Adjusted width for better responsiveness */
        margin-left: -0.5rem; 
        margin-top: 1.5rem;
    }
    label[for="msg"] {
        transform: translate(-3%, 0);
    }
}