/**
 * Maurice Jager Fotografie - Booking Widget Styles
 */

.booking-widget {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
}

/* Progress Bar */
.booking-progress {
  margin-bottom: 40px;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

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

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

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 2px solid #333;
  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: #FEA211;
  border-color: #FEA211;
  color: #000;
}

.progress-step.current .step-number {
  box-shadow: 0 0 0 4px rgba(254, 162, 17, 0.2);
}

.step-label {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

.progress-step.active .step-label {
  color: #FEA211;
}

/* Content */
.booking-content {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 40px;
  min-height: 500px;
}

.booking-step h2 {
  margin: 0 0 24px 0;
  font-size: 28px;
  font-weight: 700;
}

.booking-step h3 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
}

/* Step 1: Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.product-card {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: #FEA211;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 162, 17, 0.1);
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.product-header h3 {
  margin: 0;
  font-size: 20px;
  flex: 1;
}

.product-price {
  font-size: 24px;
  font-weight: 700;
  color: #FEA211;
  margin-left: 12px;
}

.product-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 60px;
}

.product-details {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #333;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #999;
}

.detail-item .icon {
  font-size: 16px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #FEA211;
  color: #000;
}

.btn-primary:hover {
  background: #ff8c00;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #666;
  color: #999;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #333;
  color: #fff;
}

.btn-secondary:hover {
  background: #444;
}

.select-product-btn {
  width: 100%;
  margin-top: 8px;
}

/* Step 2: Date & Time */
.datetime-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin: 32px 0;
}

.date-selector input[type="date"] {
  width: 100%;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  margin-top: 8px;
}

.date-selector input[type="date"]:focus {
  outline: none;
  border-color: #FEA211;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.time-slot {
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot:hover {
  border-color: #FEA211;
  background: rgba(254, 162, 17, 0.1);
}

.time-slot.active {
  background: #FEA211;
  border-color: #FEA211;
  color: #000;
}

.selected-product {
  color: #999;
  margin-bottom: 16px;
}

.selected-product strong {
  color: #FEA211;
}

/* Step 3: Customer Form */
.customer-form {
  max-width: 600px;
  margin: 24px auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #FEA211;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.booking-summary {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
}

.booking-summary p {
  margin: 4px 0;
}

.booking-summary p:first-child {
  font-size: 18px;
  color: #FEA211;
  margin-bottom: 8px;
}

/* Step 4: Loading */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #333;
  border-top-color: #FEA211;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: #999;
  font-size: 16px;
}

/* Step Actions */
.step-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.step-actions .btn {
  flex: 1;
}

/* Error States */
.error-message {
  color: #ff5555;
  background: rgba(255, 85, 85, 0.1);
  border: 1px solid rgba(255, 85, 85, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin-top: 12px;
}

.booking-error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.error-box {
  background: #1a1a1a;
  border: 1px solid #ff5555;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
}

.error-box h3 {
  color: #ff5555;
  margin-bottom: 16px;
}

/* Utility Classes */
.muted {
  color: #999;
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .booking-content {
    padding: 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .datetime-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .progress-steps {
    max-width: 100%;
  }

  .step-label {
    font-size: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .booking-step h2 {
    font-size: 24px;
  }
}
