/* --- BOOKING PAGE WRAPPER & ANIMATED BACKGROUND --- */
.booking-page-wrapper {
  min-height: 100vh;
  padding: 140px 0 80px;
  background: linear-gradient(-45deg, #1a1d24, #2c3e50, #1a1d24, #91c63c);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  margin-top: -95px; /* Pulls it up behind the floating header */
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* --- BOOKING FORM CONTAINER --- */
.booking-form-container {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.form-header p {
  color: #bdc3c7;
}

/* --- FORM STYLES --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  color: #ffffff;
  transition: all 0.3s ease;
}

/* Remove default select arrow and style it to match theme */
.form-group select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23bdc3c7' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #91c63c;
  box-shadow: 0 0 0 3px rgba(145, 198, 60, 0.3);
  background-color: rgba(0, 0, 0, 0.3);
}

.form-group label {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #bdc3c7;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Floating label effect */
.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label,
.form-group select:valid + label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  color: #91c63c;
  background-color: #2c3e50;
  padding: 0 5px;
  border-radius: 4px;
}

/* Special labels for date inputs */
.form-group label.static-label {
  top: -10px;
  left: 12px;
  font-size: 0.8rem;
  background-color: #2c3e50;
  padding: 0 5px;
  border-radius: 4px;
  color: #bdc3c7;
}
.form-group input[type="date"] {
  color-scheme: dark; /* Helps style the calendar picker */
}

/* --- THEMED STYLES FOR DYNAMIC TIME SLOTS --- */

/* The placeholder/message box */
.time-slots-placeholder,
.time-slots-loading,
.time-slots-error {
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  text-align: center;
  color: #bdc3c7;
  font-style: italic;
  margin-top: 10px;
}

.time-slots-error {
  border-color: #e74c3c;
  color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.1);
}

/* The grid container for the time buttons */
.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 60px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  margin-bottom: 100px; 
}

/* Individual time slot wrapper */
.time-slot {
  position: relative;
}

/* Hide the ugly default radio button dot */
.time-slot input[type="radio"] {
  opacity: 0;
  position: fixed;
  width: 0;
}

/* Style the label to look like a clickable button matching your theme */
.time-slot label {
  display: inline-block;
  width: 100%;
  padding: 12px 10px;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  /* THIS IS THE FIX: It re-enables click events for these specific labels */
  pointer-events: auto;
}

/* Hover effect: Highlight with your green accent color */
.time-slot label:hover {
  border-color: #91c63c;
  color: #91c63c;
}

/* Selected state: Fill with your green accent color */
.time-slot input[type="radio"]:checked + label {
  background-color: #91c63c;
  border-color: #91c63c;
  color: #1a1d24; /* Dark text for contrast, like your submit button */
  font-weight: bold;
}

/* Focus state for keyboard accessibility */
.time-slot input[type="radio"]:focus + label {
  border-color: #91c63c;
  box-shadow: 0 0 0 3px rgba(145, 198, 60, 0.3);
}

/* --- THEMED STYLES FOR OTHER NEW ELEMENTS --- */

/* Divider line style */
.form-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 25px 0;
}

/* Checkbox style */
.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
  position: relative; 
}

.form-group-checkbox label {
  font-size: 0.9em;
  color: #bdc3c7;
  cursor: pointer;
}

/* Custom checkbox styling */
.form-group-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  margin: 0;
  font: inherit;
  color: #bdc3c7;
  width: 1.15em;
  height: 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.form-group-checkbox input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #91c63c;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.form-group-checkbox input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* --- SUBMIT BUTTON --- */
.btn-submit {
  width: 100%;
  padding: 18px;
  border: none;
  background: #91c63c;
  color: #1a1d24;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.btn-submit:hover {
  background: #a4e04b;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(145, 198, 60, 0.4);
}

/* --- SUCCESS MESSAGE --- */
.success-message {
  text-align: center;
  padding: 40px 0;
}
.success-icon {
  font-size: 4rem;
  color: #91c63c;
  margin-bottom: 20px;
}
.success-message h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.success-message p {
  color: #bdc3c7;
  margin-bottom: 30px;
}
.btn-back-home {
  background: #91c63c;
  color: #1a1d24;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-back-home:hover {
  background: #a4e04b;
  transform: translateY(-3px);
}

/* --- REVEAL ON SCROLL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .booking-form-container {
    padding: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

