/* ===========================
   BOOKING FORM STYLES
   =========================== */

.booking-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Progress Bar */
.booking-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  position: relative;
}

.booking-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-light);
  z-index: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  flex: 1;
  cursor: default;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-light);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #ff5f1f;
  color: white;
  transform: scale(1.1);
}

.step-label {
  font-size: 0.875rem;
  color: var(--color-text);
  text-align: center;
  margin-top: 0.5rem;
}

.progress-step.active .step-label {
  color: #ff5f1f;
  font-weight: 600;
}

/* Booking Steps */
.booking-step {
  animation: fadeIn 0.4s ease;
}

.booking-step h3 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

/* Date Grid - Accordion Layout */
.dates-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.date-category {
  display: flex;
  flex-direction: column;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.category-header {
  background: #ff5f1f;
  color: white;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.category-header:hover {
  background: #e54a0a;
}

.category-header::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.category-header.active::after {
  transform: rotate(180deg);
}

.category-dates {
  display: none;
  background: #f8f9fa;
  padding: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.category-dates.active {
  display: grid;
}

.date-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.date-card:hover {
  border-color: #ff5f1f;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 95, 31, 0.2);
}

.date-card-date {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.date-card-slots {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slots-available {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff5f1f;
}

.slots-label {
  font-size: 0.7rem;
  color: var(--color-text-light);
}

/* Timeslots List */
.timeslots-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.timeslot-card {
  background: white;
  border: 2px solid var(--color-light);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: all 0.3s ease;
}

.timeslot-card.available {
  cursor: pointer;
}

.timeslot-card.available:hover {
  border-color: var(--color-primary);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeslot-card.full {
  opacity: 0.5;
  cursor: not-allowed;
}

.timeslot-time {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
}

.timeslot-venue {
  color: var(--color-text-light);
}

.timeslot-status {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-available {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-full {
  background: #ffebee;
  color: #c62828;
}

/* Personal Data Form */
.booking-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-group input {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--color-light);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group small {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* Confirmation Summary */
.confirmation-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.confirmation-summary h4 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.detail-row strong {
  color: var(--color-text);
  min-width: 120px;
}

.confirmation-summary hr {
  border: none;
  border-top: 2px solid #e0e0e0;
  margin: 1.5rem 0;
}

/* GDPR Consent */
.gdpr-consent {
  margin: 2rem 0;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  flex: 1;
  line-height: 1.6;
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Buttons */
.btn-back {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-back:hover {
  transform: translateX(-5px);
}

#confirm-booking-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

#confirm-booking-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Messages */
.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border-left: 4px solid #c62828;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeIn 0.6s ease;
}

.success-message h2 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.success-message p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.success-message .btn {
  margin-top: 2rem;
}

/* Loading States */
#dates-loading,
#timeslots-loading {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .booking-form-wrapper {
    padding: 1rem;
  }
  
  .booking-progress {
    margin-bottom: 2rem;
  }
  
  .booking-progress::before {
    display: none;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.875rem;
  }
  
  .category-header {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  
  .category-dates {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .timeslot-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: left;
  }
  
  .timeslot-status {
    justify-self: start;
  }
  
  .detail-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .detail-row strong {
    min-width: auto;
  }
  
  .confirmation-summary {
    padding: 1.5rem;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
