/* Experience Booking Widget Styles */

.experience-booking-widget {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Progress Steps */
.booking-progress {
  margin-bottom: 30px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: #e0e0e0;
  z-index: 1;
}

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.progress-step.active .step-number {
  background: #28a745;
  color: white;
}

.progress-step.current .step-number {
  background: #007bff;
  color: white;
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.2);
}

.step-label {
  font-size: 12px;
  color: #666;
  text-align: center;
}

/* Content */
.booking-content {
  margin-bottom: 30px;
  min-height: 400px;
}

.step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

/* Participant Selector */
.participant-selector {
  max-width: 600px;
}

.participants-list {
  margin-bottom: 20px;
}

.participant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.participant-row:hover {
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.participant-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  margin-right: 20px;
}

.participant-details {
  display: flex;
  flex-direction: column;
}

.participant-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.participant-description {
  font-size: 12px;
  color: #666;
}

.participant-price {
  font-weight: 600;
  color: #28a745;
}

.participant-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-control {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.btn-control:hover:not(:disabled) {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.btn-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.participant-count {
  font-size: 18px;
  font-weight: 600;
  min-width: 30px;
  text-align: center;
}

.participants-summary {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.summary-info {
  margin-bottom: 10px;
}

.total-participants {
  font-size: 16px;
  margin-bottom: 5px;
}

.participants-range {
  font-size: 14px;
  color: #666;
}

.validation-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
}

/* Language Selector */
.language-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.language-option {
  display: block;
  cursor: pointer;
}

.language-option input {
  display: none;
}

.language-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.language-option:hover .language-content {
  border-color: #007bff;
}

.language-option.selected .language-content {
  border-color: #007bff;
  background: #e7f1ff;
}

.language-flag {
  font-size: 24px;
}

.language-name {
  font-weight: 500;
}

.language-confirmation {
  text-align: center;
  color: #28a745;
  font-size: 16px;
}

/* Date Selector */
.calendar-container {
  margin-bottom: 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calendar-month {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-month-name {
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  margin: 0;
}

.calendar-nav {
  width: 32px;
  height: 32px;
  border: none;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.calendar-nav:hover:not(:disabled) {
  background: #007bff;
  color: white;
}

.calendar-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}

.calendar-weekday {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  padding: 5px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day {
  aspect-ratio: 1;
  border: none;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.calendar-day.other-month {
  color: #ccc;
  background: transparent;
}

.calendar-day.past {
  color: #ccc;
  cursor: not-allowed;
  background: #f0f0f0;
}

.calendar-day.available {
  background: #e7f1ff;
  color: #007bff;
  font-weight: 600;
}

.calendar-day.available:hover {
  background: #007bff;
  color: white;
}

.calendar-day.unavailable {
  background: #fee;
  color: #999;
  cursor: not-allowed;
  position: relative;
}

.calendar-day.unavailable::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #ccc;
  transform: rotate(-45deg);
}

.calendar-day.selected {
  background: #007bff;
  color: white;
  font-weight: 600;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-dot.available {
  background: #e7f1ff;
  border: 1px solid #007bff;
}

.legend-dot.unavailable {
  background: #fee;
  border: 1px solid #ccc;
}

.legend-dot.selected {
  background: #007bff;
}

/* Time Slot Selector */
.time-slot-selector {
  margin-bottom: 30px;
}

.slot-date {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.loading-spinner {
  text-align: center;
  padding: 8px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-slots-message {
  text-align: center;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

.no-slots-message p {
  margin: 5px 0;
  color: #666;
}

.time-period-group {
  margin-bottom: 25px;
}

.period-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #666;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.time-slot {
  display: block;
  cursor: pointer;
}

.time-slot input {
  display: none;
}

.slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.time-slot:hover .slot-content {
  border-color: #007bff;
}

.time-slot.selected .slot-content {
  border-color: #007bff;
  background: #e7f1ff;
}

.time-slot.full .slot-content {
  background: #f8f8f8;
  color: #999;
  cursor: not-allowed;
}

.slot-time {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.slot-availability {
  font-size: 12px;
  color: #666;
}

/* Booking Summary */
.booking-summary {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
}

.summary-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.summary-section {
  margin-bottom: 25px;
}

.summary-section h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #666;
}

.summary-details {
  background: white;
  padding: 15px;
  border-radius: 6px;
}

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

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

.detail-label {
  color: #666;
  font-size: 14px;
}

.detail-value {
  font-weight: 600;
  color: #333;
}

.price-breakdown {
  background: white;
  padding: 15px;
  border-radius: 6px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.price-description {
  color: #333;
}

.price-unit {
  font-size: 12px;
  color: #666;
  margin-left: 5px;
}

.price-amount {
  font-weight: 600;
  color: #333;
}

.price-total {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid #e0e0e0;
}

.price-total .price-amount {
  font-size: 20px;
  color: #28a745;
}

.summary-notes {
  margin-top: 20px;
}

.note-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.note-icon {
  color: #28a745;
}

/* Navigation */
.booking-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #e0e0e0;
  padding-top: 20px;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #007bff;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-success {
  background: #28a745;
  color: white;
}

.btn-success:hover:not(:disabled) {
  background: #218838;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
  .experience-booking-widget {
    padding: 15px;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step-label {
    display: none;
  }
  
  .language-options {
    grid-template-columns: 1fr;
  }
  
  .time-slots-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}