/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

.admission-section {
  width: 100%;
  min-height: 80vh;
  max-height: 80vh;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%,
      /* dark at left */
      rgba(0, 0, 0, 0) 40%,
      /* fade out */
      rgba(0, 0, 0, 0) 58%,
      /* transparent in middle */
      rgba(0, 0, 0, -0.5) 50%
      /* dark at right */
    ), url(../images/admission.png) no-repeat center center / cover;
  background-attachment: scroll;
  display: flex;
  border-radius: 50px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.admission-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 30%,
      /* dark at left */
      rgba(0, 0, 0, 0) 40%,
      /* fade out */
      rgba(0, 0, 0, 0) 58%,
      /* transparent in middle */
      rgba(0, 0, 0, -0.5) 50%
      /* dark at right */
    ), url(../images/admission.png) no-repeat center center / cover;
  background-attachment: scroll;
  display: flex;
  align-items: center;
  padding: 40px;
  justify-content: center;
  border-radius: 50px;
  box-sizing: border-box;
}

.admission-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  width: 100%;
  color: #fff;
  gap: 30px;
  align-items: center;
  height: 100%;
}

.admission-left {
  flex: 1 1 55%;
  padding: 20px;
  box-sizing: border-box;
  min-width: 300px;
}

.admission-left h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: normal;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.admission-left p {
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 470px;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.admission-right {
  flex: 1 1 40%;
  background: rgba(255, 255, 255, 0.416);
  border-radius: 50px;
  padding: 25px;
  color: #333;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  max-height: calc(80vh - 80px);
  /* This will be adjusted for smaller screens */
  overflow-y: auto;
  /* Hide scrollbar for webkit browsers */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Internet Explorer 10+ */
  max-width: 425px;
}

.admission-right::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admission-right h3 {
  font-size: clamp(18px, 2vw, 22px);
  font-size: medium;
  font-family: 'Poppins', sans-serif;
  text-align: start;
  color: black;
  font-weight: normal;
}

.admission-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* Reduced gap between form fields */
}

.admission-form input,
.admission-form select {
  padding: 10px 12px;
  /* Reduced padding */
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  font-size: 13px;
  /* Reduced font size */
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #606060;
  background: white;
}

.admission-form input:focus,
.admission-form select:focus {
  outline: none;
  border-color: #0074D9;
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row select,
.form-row input {
  flex: 1;
}

.admission-form button {
  background: #0074D9;
  color: #fff;
  font-size: 14px;
  /* Reduced font size */
  padding: 10px 12px;
  /* Reduced padding */
  border: none;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
}

.admission-form button:hover {
  background: #005fa3;
  transform: translateY(-1px);
}

.form-row button {
  flex: 0 0 auto;
  min-width: 70px;
  /* Adjusted min-width */
  padding: 10px 12px;
  /* Reduced padding */
  font-size: 13px !important;
  /* Adjusted font size */
  margin-bottom: 0px;
}

.btn-otp {
  white-space: nowrap;
  font-size: 12px !important;
  /* Further reduced font size for OTP button */
}

#form1-otp-section .btn-otp {
  font-size: 13px !important;
}

.form-message {
  padding: 8px;
  /* Reduced padding */
  margin-top: 8px;
  /* Reduced margin */
  border-radius: 4px;
  font-size: 13px;
  /* Reduced font size */
  display: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.success_msg {
  background-color: #e0f7e9;
  color: #2e7d32;
}

.error_msg {
  background-color: #fdecea;
  color: #c62828;
}

.otp-container {
  margin-top: 8px;
  /* Reduced margin */
  display: flex;
  gap: 8px;
  /* Reduced gap */
}

.otp-input {
  flex: 1;
  padding: 10px 12px;
  /* Reduced padding */
  font-size: 13px;
  /* Reduced font size */
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.btn-verify-otp {
  padding: 10px 12px;
  /* Reduced padding */
  font-size: 13px;
  /* Reduced font size */
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.toast-message {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #0074D9;
  color: #fff;
  padding: 10px 18px;
  /* Reduced padding */
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  /* Reduced font size */
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease, top 0.3s ease;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}

.toast-message.show {
  display: block;
  opacity: 1;
  top: 40px;
}

.toast-message.error {
  background-color: #c62828;
}

.toast-message.success {
  background-color: #2e7d32;
}

/* Tablet Responsive - 768px to 1024px */
@media (max-width: 1024px) {
  .admission-overlay {
    padding: 30px;
  }

  .admission-container {
    gap: 20px;
  }

  .admission-left {
    flex: 1 1 100%;
    text-align: center;
    padding: 15px;
  }

  .admission-right {
    flex: 1 1 100%;
    max-width: 500px;
    margin: 0 auto;
    max-height: none;
    /* Allow height to adjust naturally */
    overflow-y: visible;
    /* Remove scroll on tablet */
  }
}

/* Mobile Responsive - Below 768px */
@media (max-width: 768px) {
  .admission-section {
    padding: 0;
    border-radius: 0;
    min-height: 100vh;
    max-height: none;
    background-attachment: scroll;
  }

  .admission-overlay {
    padding: 15px;
    border-radius: 0;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 40px;
    background-attachment: scroll;
  }

  .admission-container {
    flex-direction: column;
    gap: 15px;
    /* Reduced gap */
    max-width: 100%;
  }

  .admission-left {
    flex: 1 1 100%;
    text-align: center;
    padding: 10px;
  }

  .admission-left h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .admission-left p {
    font-size: clamp(14px, 4vw, 18px);
    margin: 0 auto;
    max-width: 90%;
  }

  .admission-right {
    flex: 1 1 100%;
    margin: 0 auto;
    max-width: 100%;
    max-height: none;
    /* Ensure no fixed max-height */
    border-radius: 15px;
    padding: 25px;
    /* Adjusted padding */
    overflow-y: visible;
    /* Prevent scrollbar */
  }

  .admission-right h3 {
    font-size: clamp(16px, 5vw, 20px);
    margin-bottom: 15px;
    font-weight: normal;
  }

  .admission-form {
    gap: 8px;
    /* Further reduced gap */
  }

  .admission-form input,
  .admission-form select {
    font-size: 14px;
    /* Adjusted font size */
    padding: 10px 12px;
    /* Adjusted padding */
  }

  .admission-form button {
    font-size: 15px;
    /* Adjusted font size */
    padding: 10px 12px;
    /* Adjusted padding */
  }

  .form-row {
    /* flex-direction: column; */
    gap: 8px;
    /* Further reduced gap */
  }

  .form-row button {
    /* width: 100%; */
    min-width: auto;
    margin-bottom: 0px !important;
  }

  .btn-otp {
    font-size: 13px !important;
  }

  #form1-otp-section .btn-otp {
    font-size: 14px !important;
  }
}

/* Very Small Mobile - Below 480px */
@media (max-width: 480px) {
  .admission-overlay {
    padding: 10px;
    padding-top: 30px;
  }

  .admission-right {
    border-radius: 10px;
    padding: 15px;
    /* Further reduced padding */
  }

  .admission-left h1 {
    font-size: clamp(24px, 9vw, 32px);
    text-align: start;
  }

  .admission-left p {
    font-size: clamp(13px, 4.5vw, 16px);
    text-align: start;
    margin: 0;
    pad: 0;
  }

  .admission-right h3 {
    font-size: clamp(15px, 5.5vw, 18px);
    text-align: start;
    margin-bottom: 10px;
    font-weight: normal;
  }

  .admission-form input,
  .admission-form select,
  .admission-form button {
    font-size: 13px;
    /* Further reduced font size */
    padding: 9px 10px;
    /* Further reduced padding */
  }

  .form-row button {
    padding: 9px 10px;
    font-size: 13px !important;
    margin-bottom: 0px !important;
  }

  .btn-otp {
    font-size: 12px !important;
  }

  #form1-otp-section .btn-otp {
    font-size: 13px !important;
  }
}

/* Landscape Mobile */
@media (max-height: 600px) and (orientation: landscape) {
  .admission-section {
    min-height: 100vh;
    max-height: none;
    background-attachment: scroll;
  }

  .admission-overlay {
    min-height: 100vh;
    padding: 15px;
    align-items: flex-start;
    padding-top: 20px;
    background-attachment: scroll;
  }

  .admission-left {
    padding: 10px;
  }

  .admission-left h1 {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 10px;
  }

  .admission-left p {
    font-size: clamp(12px, 3vw, 16px);
  }

  .admission-right {
    padding: 10px;
    max-height: none;
    overflow-y: visible;
    /* Prevent scrollbar */
  }

  .admission-form {
    gap: 8px;
    /* Reduced gap */
  }

  .admission-form input,
  .admission-form select,
  .admission-form button {
    font-size: 12px;
    /* Further reduced font size */
    padding: 8px 10px;
    /* Further reduced padding */
  }

  .form-row button {
    padding: 8px 10px;
    font-size: 12px !important;
    margin-bottom: 0px !important;
  }

  .btn-otp {
    font-size: 11px !important;
  }

  #form1-otp-section .btn-otp {
    font-size: 12px !important;
  }
}