/* --- Popup Overlay and Content --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  width: 90%;
  max-width: 500px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  max-height: 90vh; /* Max height for smaller screens */
  overflow-y: auto; /* Allow scrolling if content overflows */
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

/* --- Popup Header and Close Button --- */
.popup-content h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  color: #0056b3; /* A more standard blue */
}

#thank-you-popup .popup-content h2 {
  color: #28a745; /* A standard green for success */
}

.popup-content p {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #666;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: #333;
}

/* --- Form Styling --- */
#booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#booking-form input,
#booking-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

#booking-form input:focus,
#booking-form textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

#booking-form button.subtm {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#booking-form button.subtm:hover {
  background-color: #0056b3;
}