* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
}
body {
  background-color: #f5f5f5;
}
.form-container {
  position: relative;
  min-height: 100vh;
  z-index: 0;
  justify-content: center;
  align-items: center;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 40px;
}
.form-container .zing-logo {
  width: 130px;
  display: block;
  margin: 0 auto 20px;
}
.container {
  max-width: 800px;
  margin: 0 auto;
}
.content {
  flex-basis: 50%;
  padding: 3em 3em;
  background-color: white;
  box-shadow: 2px 9px 49px -17px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}
.content p,
a {
  text-align: center;
  color: black;
  font-size: 1rem;
  font-weight: 500;
}
.content a {
  color: #4d1cb6;
  text-decoration: none;
}
.content h1 {
  line-height: 40px;
  margin-bottom: 5px;
  font-size: 1.75rem;
  font-weight: 600;
  color: #4d1cb6;
  text-align: center;
}
.main {
  position: relative;
  display: flex;
  margin: 30px 0;
}
.form-img-section {
  flex-basis: 50%;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  align-items: center;
  background: #d9d8ff;
  display: grid;
  padding: 40px;
}
.form-img-section img {
  background-size: cover;
  max-width: 100%;
}
.form-img-section p {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: black;
  justify-content: center;
}
#form-btn,
input {
  border-radius: 35px;
}
#form-btn {
  border: none;
  background-color: #4d1cb6;
  color: white;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.3s ease;
  width: 100%;
  padding: 14px 15px;
  margin-top: 15px;
}
#form {
  margin: 30px 0;
}
#form label {
  font-size: 1rem;
  font-weight: 500;
  padding: 0 20px;
}
#form input {
  outline: none;
  margin-bottom: 20px;
  font-size: 16px;
  color: #000000;
  text-align: left;
  padding: 14px 20px;
  width: 100%;
  display: inline-block;
  box-sizing: border-box;
  border: none;
  background: #d9d8ff;
  margin-top: 4px;
}
#form input:focus {
  background: transparent;
  border: 1px solid #4d1cb6;
}
#form-btn:hover {
  background-color: #aa0008;
  transition: 0.5s ease;
  color: white;
  transition: 0.3s ease;
}
.message {
  font-size: 1rem;
  color: #aa0008;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  display: block;
}
#loader {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader::after {
  content: "";
  width: 50px;
  height: 50px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 1150px) {
  .form-container .zing-logo {
    width: 100px;
  }
  .content h1 {
    font-size: 1.5rem;
  }
  #form label,
  #form input,
  #form-btn,
  .content p,
  a {
    font-size: 0.9rem;
  }
  .form-img-section p {
    font-size: 1.125rem;
  }
}
@media only screen and (max-width: 850px) {
  .main {
    flex-direction: column-reverse;
    border-radius: 8px;
  }
  .form-img-section,
  .content {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
  }
  .form-img-section img {
    max-height: 300px; /* reduce as needed */
    object-fit: cover; /* keeps image proportion while cropping edges */
    width: 100%; /* full width */
    display: block;
  }
  .form-img-section p {
    margin-top: 15px;
  }
  .form-img-section {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
  }
  .content {
    padding: 60px;
  }
}
@media only screen and (max-width: 600px) {
  .form-img-section img {
    max-height: 250px;
  }
}
@media only screen and (max-width: 550px) {
  .content {
    padding: 40px;
  }
  .main {
    margin-top: 0;
  }
}
