/* PlugZap Booking Engine — Public Booking Styles */
.plugzap-booking-page { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif; }
.plugzap-booking-page *, .plugzap-booking-page *::before, .plugzap-booking-page *::after { box-sizing: border-box; }

.pz-booking-shell {
  display: grid; grid-template-columns: 320px 1fr; min-height: 520px;
  border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.pz-booking-sidebar {
  padding: 28px 24px; background: #f8fafc; border-right: 1px solid #eef0f3;
}
.pz-booking-sidebar h1 { font-size: 1.25rem; font-weight: 700; color: #0f172a; margin: 0 0 6px; line-height: 1.35; }
.pz-booking-brand {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 16px;
}
.pz-service-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.pz-service-meta span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: #475569; background: #f1f5f9; padding: 6px 10px; border-radius: 8px;
}
.pz-service-desc { font-size: 0.9rem; color: #64748b; line-height: 1.55; margin-bottom: 16px; white-space: pre-wrap; }
.pz-summary-line { font-size: 0.88rem; color: #475569; margin: 4px 0; }
.pz-summary-line strong { color: #0f172a; }

.pz-booking-main { padding: 28px 24px 32px; }

/* Stepper */
.pz-stepper {
  display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 20px; font-size: 0.78rem;
  color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.pz-stepper span { cursor: default; }
.pz-stepper span.done { color: #16a34a; }
.pz-stepper span.current { color: #2563eb; }

/* Steps */
.pz-step { display: none; }
.pz-step.active { display: block; }
.pz-step h2 { font-size: 1rem; font-weight: 600; color: #0f172a; margin: 0 0 6px; }
.pz-step p.hint { font-size: 0.85rem; color: #64748b; margin: 0 0 14px; line-height: 1.45; }
.pz-step label, .pz-step .pz-field-block { display: block; margin-bottom: 14px; }
.pz-step label span.lab {
  font-size: 0.8rem; font-weight: 600; color: #334155; text-transform: uppercase; letter-spacing: .02em;
  display: block; margin-bottom: 6px;
}
.pz-step input, .pz-step select, .pz-step textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 0.95rem; color: #0f172a; background: #fff; transition: border-color .2s;
}
.pz-step input:focus, .pz-step select:focus, .pz-step textarea:focus {
  outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* Step actions */
.pz-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pz-step-actions button {
  width: auto; min-width: 120px; padding: 12px 18px; border-radius: 10px; font-weight: 600;
  border: none; cursor: pointer; font-size: 0.95rem; transition: background .2s;
}
.pz-step-actions button.pz-btn-primary { background: #2563eb; color: #fff; }
.pz-step-actions button.pz-btn-primary:hover { background: #1d4ed8; }
.pz-step-actions button.pz-btn-ghost { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.pz-step-actions button.pz-btn-ghost:hover { background: #e2e8f0; }
.pz-step-actions button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Calendar */
.pz-tz-note { font-size: 0.8rem; color: #64748b; margin-bottom: 18px; }
.pz-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pz-cal-header button {
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  background: #f1f5f9; color: #334155; font-size: 1.1rem; line-height: 1;
  border: 1px solid #e2e8f0; cursor: pointer;
}
.pz-cal-header button:hover { background: #e2e8f0; }
.pz-cal-title { font-weight: 600; font-size: 1rem; color: #0f172a; }
.pz-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.pz-cal-dow { font-size: 0.7rem; font-weight: 600; color: #94a3b8; padding: 6px 0; text-transform: uppercase; }
.pz-cal-day {
  aspect-ratio: 1; max-height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: #cbd5e1; border-radius: 50%; border: none; background: transparent;
  cursor: default; padding: 0; margin: 0 auto; width: 100%;
}
.pz-cal-day.pad { visibility: hidden; }
.pz-cal-day.has-slots { color: #0f172a; font-weight: 600; cursor: pointer; background: #eff6ff; border: 1px solid #bfdbfe; }
.pz-cal-day.has-slots:hover { background: #dbeafe; }
.pz-cal-day.selected { background: #2563eb; color: #fff; border-color: #2563eb; }
.pz-cal-day.today:not(.selected) { box-shadow: inset 0 0 0 2px #93c5fd; }

/* Time chips */
.pz-times-section { margin-top: 22px; }
.pz-times-section h3 { font-size: 0.9rem; margin: 0 0 10px; color: #475569; }
.pz-time-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-time-chip {
  padding: 10px 14px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff;
  font-size: 0.88rem; color: #0f172a; cursor: pointer; transition: background .15s, border-color .15s;
}
.pz-time-chip:hover { border-color: #93c5fd; background: #eff6ff; }
.pz-time-chip.selected { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Submit */
.pz-submit-wrap { margin-top: 8px; }
.pz-submit-wrap button[type=submit] {
  width: 100%; max-width: 320px; padding: 14px 20px; font-size: 1rem; font-weight: 600;
  border-radius: 12px; background: #2563eb; color: #fff; border: none; cursor: pointer;
}
.pz-submit-wrap button[type=submit]:hover { background: #1d4ed8; }

/* Error */
.pz-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px;
  border-radius: 10px; font-size: 0.88rem; margin-top: 16px;
}

/* Responsive */
@media (max-width: 820px) {
  .pz-booking-shell { grid-template-columns: 1fr; }
  .pz-booking-sidebar { border-right: none; border-bottom: 1px solid #eef0f3; }
}

/* Success message */
.pz-success {
  text-align: center; padding: 48px 24px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 16px; margin: 24px auto; max-width: 600px;
}
.pz-success h2 { color: #166534; margin: 0 0 12px; font-size: 1.5rem; }
.pz-success p { color: #15803d; font-size: 1rem; margin: 4px 0; }
