/* ==========================================================
   Salon POS Pro — Public / Frontend Styles
   ========================================================== */

:root {
  --spub-primary:   #7c3aed;
  --spub-primary-light: #ede9fe;
  --spub-success:   #059669;
  --spub-danger:    #dc2626;
  --spub-warning:   #d97706;
  --spub-gray:      #6b7280;
  --spub-border:    #e5e7eb;
  --spub-radius:    10px;
  --spub-shadow:    0 2px 8px rgba(0,0,0,.08);
}

.salon-booking-wrap, .salon-services-list { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #111827; }
.salon-booking-wrap * { box-sizing: border-box; }

/* ── Booking Title ──────────────────────────────────────── */
.salon-booking-title { font-size: 1.6rem; font-weight: 700; color: var(--spub-primary); margin: 0 0 24px; text-align: center; }

/* ── Step Indicator ─────────────────────────────────────── */
.salon-step-indicator { display: flex; gap: 0; margin-bottom: 32px; position: relative; }
.salon-step-indicator::before { content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--spub-border); z-index: 0; }
.salon-step { flex: 1; text-align: center; font-size: 0.8rem; font-weight: 500; color: var(--spub-gray); position: relative; z-index: 1; }
.salon-step span { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; border: 2px solid var(--spub-border); margin: 0 auto 6px; font-weight: 700; font-size: 0.9rem; transition: all .2s; }
.salon-step.active { color: var(--spub-primary); }
.salon-step.active span { background: var(--spub-primary); border-color: var(--spub-primary); color: #fff; }
.salon-step.done { color: var(--spub-success); }
.salon-step.done span { background: var(--spub-success); border-color: var(--spub-success); color: #fff; }

/* ── Step Content ───────────────────────────────────────── */
.salon-step-content { display: none; animation: salonFadeIn .25s ease; }
.salon-step-content.active { display: block; }
@keyframes salonFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.salon-step-content h3 { font-size: 1.1rem; font-weight: 600; color: #111827; margin: 0 0 18px; }

/* ── Service Grid ───────────────────────────────────────── */
.salon-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.salon-service-card { border: 2px solid var(--spub-border); border-radius: var(--spub-radius); padding: 16px 14px; cursor: pointer; transition: all .15s; text-align: center; background: #fff; }
.salon-service-card:hover { border-color: var(--spub-primary); background: var(--spub-primary-light); }
.salon-service-card.selected { border-color: var(--spub-primary); background: var(--spub-primary-light); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.salon-svc-name  { font-weight: 600; font-size: 0.9rem; color: #111827; margin-bottom: 6px; }
.salon-svc-meta  { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.salon-svc-price { font-weight: 700; color: var(--spub-primary); font-size: 0.875rem; }
.salon-svc-dur   { font-size: 0.78rem; color: var(--spub-gray); background: #f3f4f6; padding: 2px 7px; border-radius: 99px; }

/* ── Form Fields ─────────────────────────────────────────── */
.salon-field-group { margin-bottom: 16px; }
.salon-field-group label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.salon-field-group label .req { color: var(--spub-danger); }
.salon-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--spub-border); border-radius: 8px; font-size: 0.9rem; color: #111827; transition: border-color .15s, box-shadow .15s; background: #fff; }
.salon-input:focus { outline: none; border-color: var(--spub-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.salon-input[type="checkbox"] { width: auto; }

/* ── Navigation Row ─────────────────────────────────────── */
.salon-nav-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.salon-nav-row .salon-btn:first-child:not(:last-child) { margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.salon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all .15s; text-decoration: none; }
.salon-btn-primary  { background: var(--spub-primary); color: #fff; border-color: var(--spub-primary); }
.salon-btn-primary:hover  { background: #6d28d9; }
.salon-btn-success  { background: var(--spub-success); color: #fff; border-color: var(--spub-success); }
.salon-btn-success:hover  { background: #047857; }
.salon-btn-outline  { background: transparent; color: #374151; border-color: var(--spub-border); }
.salon-btn-outline:hover  { background: #f9fafb; }
.salon-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Summary Card ─────────────────────────────────────────── */
.salon-summary-card { border: 1.5px solid var(--spub-border); border-radius: var(--spub-radius); overflow: hidden; margin-bottom: 20px; }
.salon-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
.salon-summary-row:last-child { border-bottom: none; }
.salon-summary-row span { color: var(--spub-gray); }
.salon-summary-row.total { background: #faf9ff; font-size: 1rem; }
.salon-summary-row.total strong { color: var(--spub-primary); font-size: 1.1rem; }

/* ── Success State ───────────────────────────────────────── */
.salon-booking-success { text-align: center; padding: 40px 20px; }
.salon-success-icon { font-size: 3.5rem; margin-bottom: 14px; }
.salon-booking-success h3 { font-size: 1.4rem; font-weight: 700; color: var(--spub-success); margin: 0 0 10px; }
.salon-booking-success p  { color: var(--spub-gray); margin-bottom: 22px; }

/* ── Alerts ─────────────────────────────────────────────── */
.salon-alert { padding: 12px 16px; border-radius: 8px; font-size: 0.875rem; margin-top: 12px; }
.salon-alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.salon-alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.salon-alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.salon-loading-text  { font-size: 0.82rem; color: var(--spub-gray); margin-top: 4px; }

/* ── Services List (shortcode) ───────────────────────────── */
.salon-services-list { max-width: 900px; margin: 0 auto; }
.salon-svc-category { margin-bottom: 28px; }
.salon-svc-cat-title { font-size: 1.1rem; font-weight: 700; color: var(--spub-primary); border-bottom: 2px solid var(--spub-primary-light); padding-bottom: 8px; margin-bottom: 14px; }
.salon-svc-grid { display: grid; gap: 10px; }
.salon-svc-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.salon-svc-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.salon-svc-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.salon-svc-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--spub-border); border-radius: 8px; background: #fff; }
.salon-svc-item:hover { border-color: var(--spub-primary); }
.salon-svc-item-name  { font-weight: 500; font-size: 0.9rem; }
.salon-svc-item-meta  { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: 12px; }
.salon-svc-item-dur   { font-size: 0.8rem; color: var(--spub-gray); }
.salon-svc-item-price { font-weight: 700; color: var(--spub-primary); font-size: 0.9rem; white-space: nowrap; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .salon-step span { width: 28px; height: 28px; font-size: 0.8rem; }
  .salon-step { font-size: 0.7rem; }
  .salon-service-grid { grid-template-columns: 1fr 1fr; }
  .salon-svc-grid.cols-3, .salon-svc-grid.cols-4 { grid-template-columns: 1fr; }
  .salon-svc-grid.cols-2 { grid-template-columns: 1fr; }
}
