/* ============================================
   Booking Widget Styles
   ============================================ */

/* ── Progress Steps ── */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.progress-step.active .step-circle {
  background: var(--yellow, #F5C800);
  color: #111D4A;
  border-color: var(--yellow, #F5C800);
  box-shadow: 0 0 20px rgba(245, 200, 0, 0.3);
}

.progress-step.completed .step-circle {
  background: #10B981;
  color: white;
  border-color: #10B981;
}

.step-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-step.active .step-label {
  color: var(--yellow, #F5C800);
}

.progress-step.completed .step-label {
  color: #10B981;
}

.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.15);
  margin: 0 8px;
  margin-bottom: 28px;
}

/* ── Wizard Container ── */
.booking-wizard {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(8px);
  min-height: 300px;
}

.wizard-subtitle {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 24px;
  text-align: center;
}

.wizard-date-label {
  text-align: center;
  color: var(--yellow, #F5C800);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1rem;
}

.wizard-section-title {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── Service Cards ── */
.booking-services-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  max-height: 452px; /* ~4 kártya látható, többi scrollozható */
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 200, 0, 0.4) rgba(255,255,255,0.05);
}
.booking-services-list::-webkit-scrollbar {
  width: 4px;
}
.booking-services-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}
.booking-services-list::-webkit-scrollbar-thumb {
  background: rgba(245, 200, 0, 0.4);
  border-radius: 4px;
}

.booking-service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.booking-service-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(245, 200, 0, 0.3);
}

.booking-service-card.selected {
  border-color: var(--yellow, #F5C800);
  background: rgba(245, 200, 0, 0.1);
}

.bsc-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow, #F5C800);
  color: #111D4A;
  border-radius: 10px;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bsc-info {
  flex: 1;
}

.bsc-info h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 4px;
}

.bsc-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.bsc-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--yellow, #F5C800);
}

.bsc-meta i {
  margin-right: 4px;
}

.bsc-check {
  font-size: 1.4rem;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

.booking-service-card.selected .bsc-check {
  color: var(--yellow, #F5C800);
}

/* ── Calendar ── */
.booking-calendar {
  max-width: 400px;
  margin: 0 auto;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.cal-nav-btn:hover {
  background: rgba(245, 200, 0, 0.2);
}

.cal-month {
  color: white;
  font-size: 1.05rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-header {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow, #F5C800);
  padding: 8px 0;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.cal-day:hover:not(.disabled):not(.empty) {
  background: rgba(245, 200, 0, 0.2);
}

.cal-day.today {
  border: 2px solid var(--yellow, #F5C800);
}

.cal-day.selected {
  background: var(--yellow, #F5C800) !important;
  color: #111D4A !important;
  font-weight: 700;
}

.cal-day.disabled {
  color: rgba(255,255,255,0.2);
  cursor: default;
}

.cal-day.empty {
  cursor: default;
}

/* ── Time Slots ── */
.slot-mechanic-group {
  margin-bottom: 20px;
}

.slot-mechanic-name {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slot-mechanic-name i {
  color: var(--yellow, #F5C800);
}

.slot-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot-btn {
  padding: 10px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.time-slot-btn:hover {
  border-color: var(--yellow, #F5C800);
  background: rgba(245, 200, 0, 0.15);
}

.time-slot-btn.selected {
  border-color: var(--yellow, #F5C800);
  background: var(--yellow, #F5C800);
  color: #111D4A;
}

/* ── Form Fields ── */
.wizard-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.wizard-form-group {
  margin-bottom: 14px;
}

.wizard-form-group label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.wizard-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 0.95rem;
  transition: border-color 0.25s;
  outline: none;
  font-family: inherit;
}

.wizard-form-group input:focus {
  border-color: var(--yellow, #F5C800);
}

.wizard-form-group input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* ── Timer ── */
.wizard-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: rgba(245, 200, 0, 0.15);
  border: 1px solid rgba(245, 200, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 24px;
  color: var(--yellow, #F5C800);
  font-weight: 600;
}

.countdown {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.countdown.warning {
  color: #EF4444;
  animation: pulse-warn 1s infinite;
}

@keyframes pulse-warn {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ── Verification Code ── */
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0;
}

.code-digit {
  width: 52px;
  height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  outline: none;
  transition: border-color 0.25s;
  font-family: inherit;
}

.code-digit:focus {
  border-color: var(--yellow, #F5C800);
}

.wizard-code-hint {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.verification-msg {
  text-align: center;
  font-size: 0.9rem;
  margin-bottom: 16px;
  min-height: 24px;
}

.verification-msg.error {
  color: #EF4444;
}

/* ── Confirmation ── */
.wizard-confirmation {
  text-align: center;
  padding: 24px 0;
}

.confirm-icon {
  font-size: 4rem;
  color: #10B981;
  margin-bottom: 16px;
}

.wizard-confirmation h3 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 32px;
}

.confirm-details {
  max-width: 400px;
  margin: 0 auto 32px;
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.confirm-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.confirm-value {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
}

.confirm-email-note {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* ── Expired State ── */
.wizard-expired {
  text-align: center;
  padding: 48px 0;
}

.wizard-expired h3 {
  color: white;
  margin-bottom: 8px;
}

/* ── Action Buttons ── */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.btn-booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-next {
  background: var(--yellow, #F5C800);
  color: #111D4A;
}

.btn-next:hover {
  background: #D4AB00;
}

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

.btn-back {
  background: rgba(255,255,255,0.1);
  color: white;
}

.btn-back:hover {
  background: rgba(255,255,255,0.2);
}

.btn-full-width {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}

/* ── Spinner for booking ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .booking-progress {
    gap: 0;
  }

  .step-label {
    display: none;
  }

  .progress-line {
    margin-bottom: 0;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .booking-wizard {
    padding: 20px 16px;
  }

  .wizard-form-row {
    grid-template-columns: 1fr;
  }

  .bsc-desc {
    display: none;
  }

  .bsc-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  .code-digit {
    width: 42px;
    height: 50px;
    font-size: 1.2rem;
  }

  .code-inputs {
    gap: 6px;
  }

  .booking-calendar {
    padding: 12px;
  }

  .cal-day {
    font-size: 0.8rem;
  }

  .time-slot-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .booking-service-card {
    padding: 12px;
    gap: 12px;
  }

  .bsc-meta {
    flex-direction: column;
    gap: 4px;
  }

  .btn-booking {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
}

/* ── Multi-Service Support ── */
.wizard-hint {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.booking-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(245, 200, 0, 0.15);
  border: 1px solid rgba(245, 200, 0, 0.3);
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 20px;
  color: var(--yellow, #F5C800);
  font-size: 0.9rem;
}

.booking-summary strong {
  font-weight: 700;
}

.booking-summary i {
  font-size: 1.1rem;
}
