/* body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f4f4;
  padding: 0;
  margin: 0;
  min-height: 100vh;
}

.heading-center {
  text-align: center;
  margin: 0 auto 12px auto;
  font-size: 1.35em;
  font-weight: 600;
  color: #174ea6;
  max-width: 90%;
  line-height: 1.4;
} */

form {
  background: #fff;
  max-width: 380px;
  margin: 25px auto;
  padding: 25px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 1em;
}

label {
  display: block;
  margin: 15px 0 6px 0;
  font-weight: 500;
  color: #203355;
  font-size: 0.95em;
}

input, select {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #d0d9e6;
  width: 100%;
  font-size: 0.98em;
  margin-bottom: 5px;
  box-sizing: border-box;
  background: #f8fafc;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: #276ef1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.1);
}

.required {
  color: #e21b1b;
  margin-left: 3px;
  font-size: 0.9em;
}

button[type="submit"] {
  padding: 12px 0;
  width: 100%;
  border: none;
  border-radius: 6px;
  background: #276ef1;
  color: #fff;
  font-size: 1.05em;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}

button[type="submit"]:hover {
  background: #174ea6;
  transform: translateY(-1px);
}

#successMsg {
  margin: 15px auto 0 auto;
  text-align: center;
  font-weight: 600;
  min-height: 24px;
  font-size: 1em;
  max-width: 90%;
  line-height: 1.5;
}

/* Responsive for tablets */
@media (max-width: 768px) {
  /* body {
    padding: 15px 0;
  } */
  
  form {
    max-width: 90%;
    padding: 22px 20px;
  }
  
  .heading-center {
    font-size: 1.25em;
  }
}

/* Responsive for mobile phones */
@media (max-width: 480px) {
  /* body {
    padding: 12px 0;
  } */
  
  .heading-center {
    font-size: 1.15em;
    margin-bottom: 10px;
    max-width: 95%;
  }
  
  form {
    max-width: 94%;
    padding: 18px 15px;
    margin: 15px auto;
    border-radius: 12px;
  }
  
  label {
    margin: 12px 0 5px 0;
    font-size: 0.93em;
  }
  
  input, select {
    padding: 9px 10px;
    font-size: 0.95em;
  }
  
  button[type="submit"] {
    padding: 11px 0;
    margin-top: 18px;
    font-size: 1em;
  }
  
  #successMsg {
    font-size: 0.95em;
  }
}

/* Small mobile devices */
@media (max-width: 360px) {
  form {
    padding: 16px 12px;
  }
  
  input, select {
    padding: 8px 10px;
  }
  
  button[type="submit"] {
    padding: 10px 0;
  }
}


form {
  background: #fff;
  max-width: 380px;
  margin: 25px auto;
  padding: 25px 22px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-size: 1em;
  max-height: 85vh;              /* <--- add this */
  overflow-y: auto;              /* <--- and this */
  overscroll-behavior: contain;  /* <--- optional, for mobile experience */
  -webkit-overflow-scrolling: touch; /* <--- for iOS smooth scroll */
}


#successMsg {
  margin: 15px 0 0 0;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s;
}

