* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PT Sans", sans-serif;
  background-color: white;
  margin-top: -1.00px;
  font-family: var(--body-medium-medium-font-family);
  font-weight: var(--body-medium-medium-font-weight);
  font-size: var(--body-medium-medium-font-size);
  letter-spacing: var(--body-medium-medium-letter-spacing);
  line-height: var(--body-medium-medium-line-height);
  white-space: nowrap;
  font-style: var(--body-medium-medium-font-style);
}

a {
    text-decoration: none;
    color: inherit;
}
/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10;
  margin-bottom: 100px;
}

.logo img {
  position: relative;
  width: 100px;
  height: 41.6px;
  object-fit: cover;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-button {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #FFFFFF;
  font-family: "PT Sans", sans-serif;
  font-weight: 700;
  color: #234193;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 16.8px;
  white-space: nowrap;
  border: 1px solid;
  border-color: #234193;
}
.nav-button.signup {
  background-color: #234193;
  color: #ffffff;
  border-style: none;
}

.container1 {
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    padding-top: 50px;
}

h1 {
    text-align: center;
    color: #003366;
    margin-top: 20px;
    font-weight: 500;
    font-size: 20px;
}

p {
    text-align: center;
    color: #555;
}

.registration-form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 15px;
    font-family: "PT Sans", sans-serif;
    font-weight: 500;
    color: black;
    font-size: 14px;
    letter-spacing: 0px;
    line-height: 160.0000023841858%;
    white-space: nowrap;
    font-style: normal;
}

input, select, button, option {
    margin-top: 8px;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
}

button {
    background-color: #00509e; /* University-standard blue */
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #003d7a; /* Darker blue for hover */
}

.radio-group label {
    margin-left: 15px;
}

.conditional {
    display: none;
}

.otp-section {
    margin-top: 15px;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        margin: 20px;
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    input, select, button, option {
        font-size: 12px;
        padding: 8px;
    }

    label {
        font-size: 14px;
    }

    p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    button {
        font-size: 12px;
        padding: 10px;
    }

    label {
        font-size: 12px;
    }
}

.email-verified-icon {
    display: none;
    font-size: 20px;
    color: green;
    margin-top: 2px;
}

.email-verified-message {
    font-size: 14px;
    color: green;
    margin-top: 2px;
    display: none;
}

.email-verification-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-verified-icon {
    display: none;
    font-size: 20px;
    color: green;
    margin-top: 2px;
}

.mobile-verified-message {
    font-size: 14px;
    color: green;
    margin-top: 2px;
    display: none;
}

.mobile-verification-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* Modal styles */
.modal {
  display: none;  /* Initially hidden */
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);  /* Transparent background */
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 500px;
  max-height: 90vh; /* Limit height to viewport */
  overflow-y: auto; /* Add vertical scroll if content overflows */
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;  /* Center the text inside the modal */
}

/* Modal action buttons */
.modal-actions {
  text-align: center;
  margin-top: 20px;
}

.modal-actions .btn {
  padding: 10px 20px;
  margin: 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #003d7a;
  color: white;
}

#universityMessage {
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words wrap */
  overflow-wrap: break-word; /* Modern browser compatibility */
  margin-top: 5px; /* Avoid extra margins */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;  /* On tablets and mobile, the modal should be a bit smaller */
    margin: 20% auto;  /* Adjust the vertical margin for smaller screens */
    padding: 15px;  /* Reduce padding on smaller screens */
  }

  .modal-actions .btn {
    padding: 8px 15px;  /* Smaller padding for mobile */
    font-size: 14px;  /* Smaller font size on mobile */
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;  /* On very small screens, make modal even smaller */
    margin: 30% auto;  /* Adjust vertical margin for better spacing on small screens */
    padding: 10px;  /* Further reduce padding */
  }

  .modal-actions .btn {
    padding: 6px 12px;  /* Reduce button size */
    font-size: 12px;  /* Smaller font size for mobile devices */
  }
}

.alert {
    position: fixed;
    left: 40%;
    top: 80px;
    z-index: 1000;
    padding: 8px;
    color: white;
    opacity: 1;
    transition: opacity 0.6s;
    margin: 15px auto;
    width: fit-content;
    display: none;
}

.alert.info {
    background-color: #2196F3;
}

#closebtnInfo {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

#closebtnInfo:hover {
    color: black;
}
