/* Modal Overlay */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
  padding-top: 60px;
}

/* Modal Register Container */
.modal .register-container {
  width: 90%;
  max-width: 600px;
  margin: auto;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  background-color: white;
  padding: 30px;
  box-sizing: border-box;
}

/* Form Container */
.modal .form-container {
  background-color: #e8f5e9;
  padding: 20px;
  border-radius: 8px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Heading */
.modal .form-container h2 {
  color: #388e3c;
  text-align: center;
  margin-bottom: 20px;
}

/* Labels */
.modal label {
  font-size: 14px;
  color: #2e7d32;
  font-weight: bold;
}

/* Inputs and Selects */
.modal input[type="text"],
.modal input[type="password"],
.modal input[type="tel"],
.modal input[type="file"],
.modal select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border: 1px solid #4caf50;
  border-radius: 8px;
  box-sizing: border-box;
}

/* Submit Button */
.modal input[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #388e3c;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  font-size: 16px;
}

/* Submit Button Hover */
.modal input[type="submit"]:hover {
  background-color: #66bb6a;
}

/* Password Eye Icon */
.modal .eye-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

/* Password Field Container */
.modal .password-container {
  position: relative;
}

/* Already Registered Link */
.modal .already-registered {
  text-align: center;
  margin-top: 10px;
}

/* Already Registered Link Styles */
.modal .already-registered a {
  color: #388e3c;
  text-decoration: none;
  font-weight: bold;
}

/* Hover on Already Registered Link */
.modal .already-registered a:hover {
  color: #66bb6a;
}

/* Feedback Text */
.modal .feedback {
  font-size: 12px;
  color: red;
  display: none;
  margin-top: -8px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal .register-container {
    margin: 20px;
  }
  .modal label {
    font-size: 13px;
  }
  .modal h2 {
    font-size: 24px;
  }
}
