/* General body styles */
body {
  padding: 0;
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

/* Main container for the form */
.nbody {
  padding-top: 100px;
}

/* Form container */
.form {
  width: 600px;
  border-radius: 25px;
  background-color: rgba(128, 117, 0, 0.5);
  padding: 20px;
}

/* Form input fields */
.form input {
  width: 500px;
  height: 50px;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.494);
}

/* Placeholder text for inputs */
.form input::placeholder {
  color: rgb(96, 70, 5);
}

/* Gender selection section */
.gender {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 50px;
}

.gender input {
  width: 20px;
  margin: 10px 30px 0px 30px;
}

.gender p {
  font-size: 22px;
  color: gold;
}

/* Account type selection section */
.ac_type {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 100px;
}

.ac_type input {
  width: 25px;
  margin-top: 16px;
  margin-right: 15px;
  margin-left: 15px;
}

.ac_type p {
  font-size: 26px;
  color: gold;
  font-weight: bold;
}

/* Submit button */
form #submit {
  margin-top: 10px;
  width: 300px;
  background-color: yellow;
  font-weight: bold;
  font-size: 23px;
  cursor: pointer;
  box-shadow: 5px 5px black;
  border: none;
  border-radius: 10px;
}

/* Submit button hover effect */
form #submit:hover {
  background-color: red;
  color: white;
  transition: all 0.5s;
}

/* Form heading */
.form h1 {
  font-size: 40px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
}

/* Additional styles for labels or other elements */
form label {
  display: block;
  font-size: 18px;
  color: gold;
  margin-bottom: 10px;
  margin-left: 15px;
}

/*/* Phone number input container */
.phone-input {
  display: flex;
  align-items: center;
  justify-content: center; /* Centers the content */
  gap: 20px; /* Adds space between the select and input fields */
  margin-bottom: 30px;
}

/* Country code dropdown */
.phone-input select {
  width: 150px; /* Reduced width for better visual balance */
  height: 50px;
  border: 1px solid #ccc; /* Adds a subtle border for definition */
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.494);
  font-size: 16px;
  text-align: center;
  color: #333; /* Neutral text color */
  transition: box-shadow 0.3s, transform 0.3s; /* Adds hover effects */
  cursor: pointer;
}

.phone-input select:focus,
.phone-input select:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2); /* Focus and hover effects */
  transform: scale(1.02); /* Subtle zoom effect */
}

/* Phone number input field */
.phone-input input {
  flex: 1; /* Takes available space */
  max-width: 500px; /* Restricts width for responsiveness */
  height: 50px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 18px;
  padding: 0 15px; /* Adds padding for better text alignment */
  color: #333;
  text-align: left; /* Align text naturally */
  background-color: rgba(255, 255, 255, 0.494);
  transition: box-shadow 0.3s, transform 0.3s;
}

.phone-input input:focus,
.phone-input input:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .phone-input {
    flex-direction: column; /* Stacks the elements vertically */
    gap: 10px; /* Adjusts spacing for smaller screens */
  }

  .phone-input select,
  .phone-input input {
    width: 100%; /* Full width for smaller devices */
    max-width: none;
  }
}


/* Qualification dropdown */
select[name="qualification"] {
  width: 500px;
  height: 50px;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.494);
}
select[name="tutor_preference"] {
  width: 500px;
  height: 50px;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.494);
}
/* University dropdown */
select[name="university"] {
  width: 500px;
  height: 50px;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.494);
}

/* File upload input */
input[type="file"] {
  width: 500px;
  height: 50px;
  border: none;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 18px;
  margin-left: 15px;
  background-color: rgba(255, 255, 255, 0.494);
  padding: 10px;
}


/* Mobile responsiveness */
@media (max-width: 768px) {
  /* Ensure all form fields are full-width on mobile */
  .form input,
  select[name="qualification"],
  select[name="university"],
  select[name="tutor_preference"],
  input[type="file"],
  form #submit {
    width: 100%;
    max-width: none;
  }

  /* Stack phone input fields on smaller screens */
  .phone-input {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .phone-input select,
  .phone-input input {
    width: 100%;
    max-width: none;
  }

  /* Adjust gender and account type selection layout */
  .gender,
  .ac_type {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gender p,
  .ac_type p {
    text-align: center;
  }

  /* Form container centering */
  .form {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  /* Form heading and labels adjustments for mobile */
  .form h1 {
    font-size: 30px;
  }

  form label {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* For extra small devices, further reduce font sizes and form margins */
  .form h1 {
    font-size: 26px;
  }

  form label {
    font-size: 14px;
  }

  form #submit {
    font-size: 20px;
  }

  /* Adjust the padding for better visual alignment */
  .form {
    padding: 15px;
  }

  .phone-input {
    gap: 5px;
  }
}


@media (max-width: 600px) {
  .form {
    padding: 10px;
    width: 100%;
  }

  .form input,
  select[name="qualification"],
  select[name="university"],
  select[name="tutor_preference"],
  input[type="file"],
  form #submit {
    width: 100%;
    font-size: 16px;
  }

  .phone-input {
    gap: 8px;
  }

  .form h1 {
    font-size: 28px;
  }

  form label {
    font-size: 15px;
  }

  .gender p,
  .ac_type p {
    font-size: 20px;
  }
}@media only screen and (max-width: 600px) {
  /* Adjust the gender section to stack vertically */

 .form h1 {
    font-size: 15px; /* Adjust font size for mobile */
    text-align: center; /* Center the heading text */
    padding: 10px;
  }
  .gender {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the radio buttons */
    gap: 10px; /* Adds some spacing between the radio buttons */
    padding: 10px;
  }

  /* Ensure the gender p tags are aligned */
  .gender p {
    margin: 0;
    font-size: 16px; /* Adjust font size for mobile */
  }

  /* Adjust the radio button size and spacing */
  .gender input[type="radio"] {
    margin-right: 10px;
    width: 20px; /* Ensure radio buttons don't stretch too much */
  }

  /* Adjust the account type section for mobile */
  .ac_type {
    display: flex;
    flex-direction: column; /* Stack the elements vertically */
    align-items: center; /* Center the account type selection */
    gap: 10px;
    padding: 10px;
  }

  .ac_type label {
    font-size: 10px;
    padding: 2px;
    display: flex;
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content */
    text-align: center;
    margin:0; /* Reduced left margin */


  }

  .ac_type input {
    width: 25px;
    margin-top: 16px;
    margin-right: 15px;
    margin-left: 15px;
  }
  
}



.error-message {
  background-color: #f8d7da;
  color: #842029;
  padding: 12px 20px;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  margin: 10px auto;
  max-width: 90%;
  font-size: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
}

@media only screen and (max-width: 600px) {
  .form {
      width: 95% !important;
      padding: 10px;
  }

  .form input, .form select {
      width: 100%;
      font-size: 16px;
  }

  .error-message {
      font-size: 15px;
      padding: 10px;
  }
}
