@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── RESET ─────────────────────────────────────── */
.bn-wrap * { margin:0; padding:0; box-sizing:border-box; }

/* ─── OUTER WRAPPER ─────────────────────────────── */
.bn-wrap {
  font-family: 'Inter', sans-serif;
  display: flex;
  max-width: 980px;
  margin: 32px auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.12), 0 4px 20px rgba(0,0,0,0.06);
  background: #fff;
  min-height: 560px;
}

/* ─── SIDEBAR ───────────────────────────────────── */
.bn-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #0f0f1a;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.bn-sidebar::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,130,80,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.bn-sidebar::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand */
.bn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.bn-brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #d4824f, #e8a070);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}

.bn-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

/* Steps */
.bn-steps {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.bn-step-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.28);
  transition: all 0.3s;
  cursor: default;
  position: relative;
}

.bn-step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
  transition: all 0.3s;
}

.bn-step-item.active {
  background: rgba(212,130,80,0.15);
  color: #e8a070;
  font-weight: 500;
}

.bn-step-item.active .bn-step-dot {
  background: #d4824f;
  box-shadow: 0 0 0 3px rgba(212,130,80,0.25);
}

.bn-step-item.done {
  color: rgba(255,255,255,0.45);
}

.bn-step-item.done .bn-step-dot {
  background: rgba(255,255,255,0.3);
}

.bn-sidebar-footer {
  margin-top: 24px;
}

.bn-secure {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ─── MAIN ──────────────────────────────────────── */
.bn-main {
  flex: 1;
  padding: 36px 36px 32px;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ─── PANEL ─────────────────────────────────────── */
.bn-panel {
  animation: bnSlideIn 0.3s ease;
}

@keyframes bnSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.bn-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.bn-step-badge {
  width: 40px; height: 40px;
  background: #f5f3ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.bn-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #0f0f1a;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.bn-panel-header p {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 3px;
}

/* ─── TABS ──────────────────────────────────────── */
.bn-tabs {
  display: flex;
  gap: 4px;
  background: #f5f3ef;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 20px;
  width: fit-content;
}

.bn-tab {
  padding: 8px 20px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: #888;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.bn-tab.active {
  background: #fff;
  color: #0f0f1a;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ─── LOCATION GRID ─────────────────────────────── */
.bn-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.bn-loc-card {
  border: 2px solid #ede9e3;
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
}

.bn-loc-card:hover { border-color: #d4824f; background: #fff; }
.bn-loc-card.selected { border-color: #d4824f; background: #fff8f4; }

.bn-loc-icon { font-size: 22px; margin-bottom: 8px; }
.bn-loc-name { font-size: 14px; font-weight: 600; color: #0f0f1a; }
.bn-loc-addr { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* ─── SERVICE GRID ──────────────────────────────── */
.bn-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.bn-svc-card {
  border: 2px solid #ede9e3;
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
  position: relative;
}

.bn-svc-card:hover { border-color: #d4824f; background: #fff; transform: translateY(-2px); }
.bn-svc-card.selected { border-color: #d4824f; background: #fff8f4; }
.bn-svc-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 14px;
  width: 22px; height: 22px;
  background: #d4824f;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 22px;
  text-align: center;
}

.bn-svc-name { font-size: 14px; font-weight: 600; color: #0f0f1a; margin-bottom: 6px; }
.bn-svc-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.bn-svc-tag {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  background: #f3f4f6;
  padding: 3px 8px;
  border-radius: 20px;
}
.bn-svc-tag.price { background: #f0fdf4; color: #16a34a; }
.bn-svc-tag.duration { background: #eff6ff; color: #2563eb; }

/* ─── EVENT GRID (pick step) ────────────────────── */
.bn-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.bn-evt-card {
  border: 2px solid #ede9e3;
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
  position: relative;
  overflow: hidden;
}

.bn-evt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: #d4824f;
  border-radius: 2px 0 0 2px;
}

.bn-evt-card:hover { border-color: #d4824f; background: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,130,80,0.12); }
.bn-evt-card.selected { border-color: #d4824f; background: #fff8f4; box-shadow: 0 8px 24px rgba(212,130,80,0.15); }

.bn-evt-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 14px;
  width: 22px; height: 22px;
  background: #d4824f;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.bn-evt-name { font-size: 14px; font-weight: 600; color: #0f0f1a; margin-bottom: 8px; padding-left: 8px; }
.bn-evt-dates { font-size: 12px; color: #9ca3af; padding-left: 8px; }
.bn-evt-capacity {
  display: inline-block;
  margin-top: 8px;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 500;
  background: #fff8f4;
  color: #d4824f;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(212,130,80,0.2);
}

/* ─── STAFF GRID ────────────────────────────────── */
.bn-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.bn-staff-card {
  border: 2px solid #ede9e3;
  border-radius: 16px;
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
  text-align: center;
  position: relative;
}

.bn-staff-card:hover { border-color: #6366f1; background: #fff; }
.bn-staff-card.selected { border-color: #6366f1; background: #f5f3ff; }
.bn-staff-card.selected::after {
  content: '✓';
  position: absolute;
  top: 10px; right: 12px;
  width: 20px; height: 20px;
  background: #6366f1;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.bn-staff-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.bn-staff-name { font-size: 13px; font-weight: 600; color: #0f0f1a; }

/* ─── DATE & TIME (Appointment) ─────────────────── */
.bn-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.bn-date-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #ede9e3;
  background: #faf9f7;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #0f0f1a;
  cursor: pointer;
  transition: all 0.2s;
}

.bn-date-input:focus {
  border-color: #d4824f;
  outline: none;
  box-shadow: 0 0 0 4px rgba(212,130,80,0.1);
  background: #fff;
}

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

.bn-time-chip {
  padding: 10px 8px;
  border-radius: 12px;
  border: 2px solid #ede9e3;
  background: #faf9f7;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s;
}

.bn-time-chip:hover { border-color: #d4824f; background: #fff8f4; color: #d4824f; }
.bn-time-chip.selected { border-color: #d4824f; background: #d4824f; color: #fff; }
.bn-time-chip.full { opacity: 0.4; cursor: not-allowed; background: #f5f5f5; }

/* ─── EVENT DATE+TIME CARDS ─────────────────────── */
.bn-event-dt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.bn-edt-card {
  border: 2px solid #ede9e3;
  border-radius: 16px;
  padding: 18px 16px;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
  position: relative;
}

.bn-edt-card:hover:not(.full) { border-color: #d4824f; background: #fff; transform: translateY(-2px); }
.bn-edt-card.selected { border-color: #d4824f; background: #fff8f4; box-shadow: 0 6px 20px rgba(212,130,80,0.15); }
.bn-edt-card.full { opacity: 0.45; cursor: not-allowed; }

.bn-edt-card.selected::after {
  content: '✓';
  position: absolute;
  top: 12px; right: 14px;
  width: 22px; height: 22px;
  background: #d4824f;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.bn-edt-date {
  font-size: 13px;
  font-weight: 600;
  color: #d4824f;
  margin-bottom: 4px;
}

.bn-edt-time {
  font-size: 18px;
  font-weight: 700;
  color: #0f0f1a;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.bn-edt-seats {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.bn-edt-bar-wrap {
  height: 5px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.bn-edt-bar { height: 5px; border-radius: 3px; transition: width 0.3s; }
.bn-edt-bar.ok  { background: #22c55e; }
.bn-edt-bar.mid { background: #f59e0b; }
.bn-edt-bar.low { background: #ef4444; }

.bn-edt-full-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #fee2e2;
  color: #dc2626;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ─── SEATS ─────────────────────────────────────── */
.bn-seats-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 20px 0 16px;
}

.bn-seats-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid #ede9e3;
  background: #faf9f7;
  font-size: 22px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: all 0.2s;
  line-height: 1;
}

.bn-seats-btn:hover { border-color: #d4824f; color: #d4824f; background: #fff8f4; }
.bn-seats-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.bn-seats-count {
  font-size: 48px;
  font-weight: 700;
  color: #0f0f1a;
  letter-spacing: -0.04em;
  min-width: 60px;
  text-align: center;
  line-height: 1;
}

.bn-seats-bar-wrap {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  margin: 0 0 12px;
}

.bn-seats-bar { height: 6px; border-radius: 3px; background: #d4824f; transition: width 0.3s; }
.bn-seats-info { font-size: 13px; color: #9ca3af; text-align: center; }

/* ─── DETAILS ───────────────────────────────────── */
.bn-summary {
  background: #f8f6f2;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
  border-left: 4px solid #d4824f;
}

.bn-summary strong { color: #0f0f1a; }

.bn-fields { display: flex; flex-direction: column; gap: 10px; }

.bn-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid #ede9e3;
  background: #faf9f7;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #0f0f1a;
  transition: all 0.2s;
}

.bn-input:focus {
  border-color: #d4824f;
  outline: none;
  box-shadow: 0 0 0 4px rgba(212,130,80,0.1);
  background: #fff;
}

.bn-payment-wrap { margin-top: 4px; }
.bn-payment-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.bn-payment-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #ede9e3;
  cursor: pointer;
  transition: all 0.2s;
  background: #faf9f7;
}

.bn-payment-opt:hover { border-color: #d4824f; }
.bn-payment-opt.selected { border-color: #d4824f; background: #fff8f4; }

.bn-payment-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  transition: all 0.2s;
}

.bn-payment-opt.selected .bn-payment-radio {
  border-color: #d4824f;
  background: #d4824f;
  box-shadow: inset 0 0 0 3px #fff;
}

.bn-payment-name { font-size: 14px; font-weight: 600; color: #0f0f1a; }
.bn-payment-desc { font-size: 12px; color: #9ca3af; }

/* ─── BUTTONS ───────────────────────────────────── */
.bn-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.bn-btn-primary, .bn-btn-ghost, .bn-btn-confirm {
  padding: 13px 24px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.01em;
}

.bn-btn-primary {
  flex: 1;
  background: #0f0f1a;
  color: #fff;
}

.bn-btn-primary:hover {
  background: #d4824f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,130,80,0.3);
}

/* Disabled / not-yet-selectable Continue buttons */
.bn-btn-primary:disabled,
.bn-btn-primary.bn-btn-disabled {
  background: #cbccd6;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}
.bn-btn-primary:disabled:hover,
.bn-btn-primary.bn-btn-disabled:hover {
  background: #cbccd6;
  transform: none;
  box-shadow: none;
}

.bn-btn-ghost {
  background: #f5f3ef;
  color: #6b7280;
}

.bn-btn-ghost:hover { background: #ede9e3; }

.bn-btn-confirm {
  flex: 1;
  background: linear-gradient(135deg, #d4824f, #c96f38);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,130,80,0.25);
}

.bn-btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(212,130,80,0.4);
}

/* ─── LOADING ───────────────────────────────────── */
.bn-loading {
  color: #9ca3af;
  font-size: 13px;
  padding: 16px 0;
}

/* ─── SUCCESS MODAL ─────────────────────────────── */
#bnSuccess {
  position: fixed;
  inset: 0;
  background: rgba(15,15,26,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.bn-success-box {
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px;
  text-align: center;
  width: 340px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.2);
  animation: bnPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes bnPop {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.bn-success-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #d4824f, #e8a070);
  border-radius: 50%;
  font-size: 28px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.bn-success-box h2 { font-size: 22px; font-weight: 700; color: #0f0f1a; margin-bottom: 8px; }
.bn-success-box p  { font-size: 14px; color: #6b7280; }

/* ─── MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .bn-wrap {
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  .bn-sidebar {
    width: 100%;
    padding: 16px 16px 12px;
    flex-direction: column;
  }

  .bn-brand { margin-bottom: 16px; }

  .bn-steps {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .bn-step-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 10px;
    font-size: 12px;
  }

  .bn-sidebar-footer { display: none; }

  .bn-main { padding: 20px 16px; }

  .bn-service-grid,
  .bn-event-grid,
  .bn-location-grid { grid-template-columns: 1fr 1fr; }

  .bn-event-dt-grid { grid-template-columns: 1fr; }
  .bn-time-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .bn-service-grid,
  .bn-event-grid,
  .bn-location-grid { grid-template-columns: 1fr; }
}
