/* --- General Styles --- */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #eef6ff;
  margin: 0;
}

header {
  background-color: #007bff;
  color: white;
  padding: 20px;
}

.hero-img {
  width: 80%;
  max-width: 600px;
  border-radius: 10px;
  margin: 20px 0;
}

button {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

button:hover {
  background-color: #004494;
}

/* --- Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 5% auto; /* reduced top margin for more space */
  padding: 20px;
  border-radius: 10px;
  width: 500px;
  max-height: 90vh; /* limit modal height */
  text-align: left;
  position: relative;
  overflow-y: auto; /* make scrollable if content exceeds height */
  box-sizing: border-box;
}

.modal-content label {
  display: block;
  margin-top: 10px;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  box-sizing: border-box;
}

/* --- Close Button --- */
.modal-content span.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

/* --- Error and Success Messages --- */
.error {
  color: red;
  margin-top: 10px;
  text-align: center;
}

.success {
  color: green;
  margin-top: 10px;
  text-align: center;
}

/* --- Link Button for Registration --- */
.link-btn {
  background: none;
  color: #007bff;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: 10px;
  font-size: 14px;
}

.link-btn:hover {
  color: #0056b3;
}

/* --- Dropdown Placeholder Color --- */
.modal-content select option[value=""] {
  color: grey;
}

/* --- Ensure Login & Registration Buttons are below inputs --- */
.modal-content button[type="submit"] {
  margin-top: 15px;
  display: block;
  width: 100%;
}
