/*
==================================================
Booking Wrapper
==================================================
*/

.tcfac-booking-wrapper {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

/*
==================================================
Step Visibility
==================================================
*/

.tcfac-booking-step {
  display: none;
}

.tcfac-booking-step.active {
  display: block;
  animation: tcfacFade 0.35s ease;
}

@keyframes tcfacFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*
==================================================
Step Header
==================================================
*/

.tcfac-step-header {
  margin-bottom: 35px;
}

.tcfac-step-header h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.tcfac-step-header p {
  color: #6b7280;
}

/*
==================================================
Grid
==================================================
*/

.tcfac-step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tcfac-step-left,
.tcfac-step-right {
  width: 100%;
}

/*
==================================================
Fields
==================================================
*/

.tcfac-field {
  margin-bottom: 25px;
}

.tcfac-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.tcfac-field input,
.tcfac-field textarea,
.tcfac-field select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  transition: 0.3s;
}

.tcfac-field input:focus,
.tcfac-field textarea:focus,
.tcfac-field select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.tcfac-full-width {
  grid-column: 1/-1;
}

/*
==================================================
Selected Booking Box
==================================================
*/

.tcfac-selected-summary {
  background: #f8fafc;
  padding: 25px;
  border-radius: 18px;
  margin-top: 30px;
}

.tcfac-selected-summary h4 {
  margin-bottom: 20px;
}

.tcfac-selected-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcfac-selected-summary li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #edf2f7;
}

/*
==================================================
Availability Message
==================================================
*/

#tcfac-availability-message {
  margin-top: 25px;
  padding: 18px 20px;
  border-radius: 14px;
  font-weight: 600;
}

.tcfac-available {
  background: #edfdf2;
  color: #15803d;
}

.tcfac-not-available {
  background: #fff2f2;
  color: #dc2626;
}

.tcfac-loading {
  background: #fff8e1;
  color: #ca8a04;
}

/*
==================================================
Legend
==================================================
*/

.tcfac-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.tcfac-legend div {
  background: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/*
==================================================
Checkbox
==================================================
*/

.tcfac-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tcfac-checkbox input {
  width: auto;
}

/*
==================================================
Summary Card
==================================================
*/

.tcfac-summary-card {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.tcfac-summary-image {
  width: 280px;
}

.tcfac-summary-image img {
  width: 100%;
  border-radius: 18px;
}

.tcfac-summary-content {
  flex: 1;
}

.tcfac-summary-content h3 {
  margin-bottom: 25px;
}

.tcfac-summary-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tcfac-summary-content li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #edf2f7;
}

.tcfac-grand-total {
  font-size: 20px;
  font-weight: 700;
  color: #2563eb;
}

/*
==================================================
Footer Buttons
==================================================
*/

.tcfac-step-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}

.tcfac-prev-step,
.tcfac-next-step,
#tcfac-confirm-booking {
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 16px 35px;
  font-size: 15px;
  transition: 0.3s;
}

.tcfac-prev-step {
  background: #f3f4f6;
}

.tcfac-prev-step:hover {
  background: #e5e7eb;
}

.tcfac-next-step,
#tcfac-confirm-booking {
  background: #2563eb;
  color: #fff;
}

.tcfac-next-step:hover,
#tcfac-confirm-booking:hover {
  background: #1d4ed8;
}

/*
==================================================
Flatpickr
==================================================
*/

.flatpickr-calendar {
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-radius: 18px;
}

/*
==================================================
Responsive
==================================================
*/

@media (max-width: 991px) {
  .tcfac-step-grid {
    grid-template-columns: 1fr;
  }

  .tcfac-summary-card {
    flex-direction: column;
  }

  .tcfac-summary-image {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .tcfac-booking-wrapper {
    padding: 0 15px;
  }

  .tcfac-step-header h2 {
    font-size: 26px;
  }

  .tcfac-step-footer {
    flex-direction: column;
  }

  .tcfac-prev-step,
  .tcfac-next-step,
  #tcfac-confirm-booking {
    width: 100%;
  }
}
