.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  padding: 20px; /* Add padding to ensure content doesn't touch the edges on small screens */
  /* Hide modal by default */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Show modal when open class is added */
.modalOverlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.modalContent {
  display: flex;
  flex-direction: column; /* Stack content vertically by default */
  width: 100%;
  max-width: 900px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modalLeft,
.modalRight {
  padding: 20px;
}

.modalLeft {
  background: linear-gradient(to bottom, #003366, #006699);
  color: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modalLeft h2 {
  margin-bottom: 20px;
}

.modalLeft ul {
  list-style: none;
  padding: 0;
  max-width: 400px;
}
.flex {
  display: flex;
  flex-direction: column;
  justify-content: start;
}
.flex a {
  text-decoration: none;
  list-style: none;
  color: white;
  font-size: 14px;
  margin: 5px 25px;
}
.modalLeft ul li {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: rgb(226, 226, 226);
}
.modalLeft ul li a {
  text-decoration: none;
  list-style: none;
  color: white;
}

.modalLeft ul li::before {
  content: "✅";
  margin-right: 10px;
  color: #00ff00;
}

.modalRight {
  flex: 1;
  background-color: #f0f4f8;
  position: relative;
}

.modalRight h2 {
  margin-bottom: 20px;
}

.closeButton {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.form {
  display: flex;
  flex-direction: column;
}

.formGroup {
  margin-bottom: 15px;
}

.formGroup label {
  display: block;
  margin-bottom: 5px;
}

.formGroup input,
.formGroup select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.inputdate {
  padding: 10px;
  margin-top: 30px;
  margin-bottom: 30px;
}
.submitButton {
  background-color: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.submitButton:hover {
  background-color: #004a99;
}

.submitButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.location_options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.location_options label {
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.inputradio {
  accent-color: #007bff;
}

/* Media Queries for Responsive Design */
@media (min-width: 768px) {
  .modalContent {
    flex-direction: row; /* Row layout for medium and larger screens */
  }

  .modalLeft,
  .modalRight {
    flex: 1;
  }
}

@media (max-width: 767px) {
  .modalLeft ul li::before {
    margin-right: 5px; /* Adjust for smaller screens */
  }

  .modalLeft,
  .modalRight {
    padding: 15px; /* Reduce padding on smaller screens */
  }

  .modalRight h2,
  .modalLeft h2 {
    font-size: 18px; /* Adjust font size on smaller screens */
  }
  .modalLeft {
    display: none;
  }
}

/* Submit popup */
.modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal_content {
  background-color: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideIn 0.3s ease-out;
}

.modal_content h3 {
  font-size: 24px;
  color: #007bff;
  margin-bottom: 1rem;
}

.modal_content p {
  font-size: 16px;
  color: #333;
  margin-bottom: 1.5rem;
}

.modal_close_button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal_close_button:hover {
  background-color: #0056b3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* New added */
.errorMessage {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  text-align: center;
}
