/* Booking Form Animations */

/* Package Selection Animations */
/* Package Picker - Hidden to reduce clutter */
#bookingPackagePicker {
  display: none;
}

#bookingPackageName {
  display: block;
  color: #000000;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#bookingPackageDesc {
  color: #333333;
  font-size: 0.9rem;
  margin: 0;
}

.booking-package-group {
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.booking-package-group:nth-child(1) {
  animation-delay: 0.1s;
}

.booking-package-group:nth-child(2) {
  animation-delay: 0.2s;
}

.booking-package-group:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Package Option Button Animations */
.booking-package-option {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-out;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0.5rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-package-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.booking-package-option:hover::before {
  transform: translateX(100%);
}

.booking-package-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.booking-package-option strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
}

.booking-package-option span {
  display: block;
  font-size: 0.9rem;
  color: #333333;
  line-height: 1.4;
}

/* Selected Package State */
.booking-package-option.is-selected {
  background: linear-gradient(
    135deg,
    rgba(60, 80, 120, 0.15),
    rgba(40, 60, 100, 0.15)
  );
  border-color: rgba(40, 60, 100, 0.8);
  box-shadow: 0 0 20px rgba(40, 60, 100, 0.2), inset 0 0 20px rgba(40, 60, 100, 0.1);
  transform: scale(1.02);
  animation: pulseSelected 0.6s ease-out;
}

@keyframes pulseSelected {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 60, 100, 0.4);
  }
  50% {
    box-shadow: 0 0 30px 10px rgba(40, 60, 100, 0.2);
  }
  100% {
    box-shadow: 0 0 20px rgba(40, 60, 100, 0.2), inset 0 0 20px rgba(40, 60, 100, 0.1);
  }
}

.booking-package-option.is-selected::after {
  content: "✓";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: #000000;
  font-size: 1.5rem;
  font-weight: bold;
  animation: checkmark 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Step Animations */
.booking-step {
  opacity: 1;
  max-height: 2000px;
  overflow: visible;
  margin-bottom: 1.5rem;
  transition: opacity 0.4s ease-out, margin 0.4s ease-out;
  border: 1px solid rgba(100, 200, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.booking-step[aria-disabled="true"] {
  opacity: 0.7;
}

.booking-step[aria-disabled="true"] .booking-step-head {
  opacity: 0.6;
  cursor: not-allowed;
}

.booking-step.is-open {
  animation: stepOpen 0.5s ease-out;
}

@keyframes stepOpen {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step Head Button */
.booking-step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease-out;
  position: relative;
}

.booking-step-head::after {
  content: "→";
  margin-left: auto;
  transition: transform 0.3s ease-out;
}

.booking-step.is-open .booking-step-head::after {
  transform: rotate(90deg);
}

.booking-step-head:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border-color: rgba(40, 60, 100, 0.6);
}

.booking-step[aria-disabled="true"] .booking-step-head {
  opacity: 0.5;
  cursor: not-allowed;
}

.booking-step-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40, 60, 100, 0.1), rgba(40, 60, 100, 0.1));
  border: 2px solid rgba(40, 60, 100, 0.6);
  font-weight: bold;
  font-size: 0.85rem;
  color: #000000;
}

.booking-step.is-open .booking-step-head span {
  background: linear-gradient(135deg, rgba(40, 60, 100, 0.3), rgba(40, 60, 100, 0.3));
  border-color: rgba(40, 60, 100, 0.8);
  color: #000000;
  box-shadow: 0 0 15px rgba(40, 60, 100, 0.3);
}

.booking-step-head strong {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

/* Step Body */
.booking-step-body {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  animation: slideDown 0.3s ease-out;
  max-height: 2000px;
  overflow: visible;
  display: block;
}

.booking-step[aria-disabled="true"] .booking-step-body {
  opacity: 0.6;
  pointer-events: none;
}

/* Form Fields Animation */
.booking-field-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .booking-field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.booking-field-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: labelIn 0.5s ease-out backwards;
}

.booking-field-grid label:nth-child(1) {
  animation-delay: 0.1s;
}

.booking-field-grid label:nth-child(2) {
  animation-delay: 0.15s;
}

.booking-field-grid label:nth-child(3) {
  animation-delay: 0.2s;
}

.booking-field-grid label:nth-child(4) {
  animation-delay: 0.25s;
}

.booking-field-grid label:nth-child(5) {
  animation-delay: 0.3s;
}

@keyframes labelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-field-grid label span {
  font-weight: 500;
  color: #000000;
  font-size: 0.9rem;
}

.booking-field-grid input,
.booking-field-grid textarea {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(40, 60, 100, 0.5);
  border-radius: 0.5rem;
  color: #000000;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease-out;
  width: 100%;
}

.booking-field-grid input:focus,
.booking-field-grid textarea:focus {
  outline: none;
  background: rgba(40, 60, 100, 0.08);
  border-color: rgba(40, 60, 100, 0.8);
  box-shadow: 0 0 15px rgba(40, 60, 100, 0.25);
}

.booking-field-grid input::placeholder,
.booking-field-grid textarea::placeholder {
  color: #999999;
}

.booking-wide {
  grid-column: 1 / -1;
}

/* Package Summary */
.booking-page-summary {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(40, 60, 100, 0.08), rgba(40, 60, 100, 0.05));
  border: 2px solid rgba(40, 60, 100, 0.4);
  animation: summaryPulse 0.6s ease-out;
}

@keyframes summaryPulse {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.booking-page-summary small {
  display: block;
  font-size: 0.8rem;
  color: rgba(100, 200, 255, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.booking-page-summary strong {
  display: block;
  font-size: 1.2rem;
  color: #000000;
  margin-bottom: 0.5rem;
}

.booking-page-summary p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
  margin: 0;
}

/* Button Animations */
.booking-next,
.bevel-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.booking-next::before,
.bevel-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.booking-next:hover::before,
.bevel-button:hover::before {
  opacity: 1;
}

.booking-next:active,
.bevel-button:active {
  transform: scale(0.98);
}

/* Loading States */
.booking-package-option.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Day Cards and Time Slots */
.booking-day-card {
  margin: 1rem 0;
  border: 2px solid rgba(40, 60, 100, 0.4);
  border-radius: 0.75rem;
  background: rgba(40, 60, 100, 0.05);
  overflow: hidden;
  transition: all 0.3s ease-out;
}

.booking-day-card:hover {
  background: rgba(40, 60, 100, 0.1);
  border-color: rgba(40, 60, 100, 0.6);
}

.booking-day-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(40, 60, 100, 0.1);
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  transition: all 0.3s ease-out;
}

.booking-day-head:hover {
  background: rgba(40, 60, 100, 0.15);
}

.booking-day-head strong {
  color: #000000;
  font-weight: 600;
  display: block;
}

.booking-day-head span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.booking-time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(40, 60, 100, 0.05);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.booking-day-card.is-open .booking-time-grid {
  max-height: 300px;
  padding: 1rem;
}

.booking-slot-button {
  padding: 0.75rem 1rem;
  background: rgba(40, 60, 100, 0.08);
  border: 2px solid rgba(40, 60, 100, 0.4);
  border-radius: 0.5rem;
  color: #000000;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease-out;
}

.booking-slot-button:hover {
  background: rgba(40, 60, 100, 0.15);
  border-color: rgba(40, 60, 100, 0.7);
  transform: translateY(-2px);
}

.booking-slot-button.is-selected {
  background: linear-gradient(135deg, rgba(40, 60, 100, 0.25), rgba(40, 60, 100, 0.25));
  border-color: rgba(40, 60, 100, 0.9);
  color: #000000;
  box-shadow: 0 0 10px rgba(40, 60, 100, 0.3);
  font-weight: 600;
  text-decoration: underline;
}

/* Review Section */
.booking-review {
  background: rgba(40, 60, 100, 0.05);
  border: 2px solid rgba(40, 60, 100, 0.3);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.booking-review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(40, 60, 100, 0.15);
}

.booking-review-row:last-child {
  border-bottom: none;
}

.booking-review-row span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.booking-review-row strong {
  color: #000000;
  font-weight: 600;
  text-align: right;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .booking-step-head {
    padding: 1rem;
  }

  .booking-step-head span {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
  }

  .booking-step-head strong {
    font-size: 0.95rem;
  }

  .booking-step-body {
    padding: 1rem;
  }

  .booking-package-option {
    padding: 0.75rem 1rem;
  }
}
