/* ============================================================
   EFRAIM'S BOOKING SYSTEM — BOOKSY-INSPIRED LUXURY LAYOUT
   Black + Signature Shiny Gold + High-contrast White
   ============================================================ */

:root {
  --black:        #0a0a0a;
  --black-bg:     #000000;
  --surface:      #121212;
  --surface-card: #181818;
  --surface-hover:#202020;
  --surface-active:#262010;

  /* Shiny Gold Palette */
  --gold:         #ffe670;
  --gold-bright:  #ffffff;
  --gold-mid:     #dca318;
  --gold-dark:    #4a2900;
  --border-gold:  rgba(255, 230, 112, 0.45);
  --border-subtle:rgba(255, 230, 112, 0.22);
  --shadow-gold:  0 4px 20px rgba(255, 230, 112, 0.35);

  --white:        #ffffff;
  --ivory:        #f8f2e2;
  --text-muted:   #a8a090;
  --danger:       #e05252;
  --success:      #38a169;

  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body:    'Cormorant Garamond', Georgia, serif;
  --sans:    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --script:  'Pinyon Script', cursive;

  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.85);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--black-bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   SIGNATURE GOLDEN SHINY TEXT GRADIENT (from website index.html)
   ============================================================ */
.shiny-text,
.shop-badge-title,
.shop-details h1,
.step-title-area h2 .title-text,
.category-block-title,
.category-block-title .title-text,
.svc-price-tag,
.barber-name,
.total-amount,
.summary-card h3,
.success-panel h2,
.booking-ref-badge,
.box-label span.label-text,
.selection-bar-total,
.time-slot-group-title,
.time-slot-group-title .group-name,
.back-link span,
.header-phone span,
.shop-meta-badge,
.step-item.active .step-label,
.step-item.completed .step-label,
.walkin-badge,
.selected-strip-edit,
.barber-subtitle.gold {
  background: linear-gradient(
    to bottom,
    #ffe670 0%,
    #ffffff 28%,
    #dca318 45%,
    #4a2900 50%,
    #dca318 55%,
    #ffeb69 75%,
    #5c3600 100%
  );
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  -webkit-text-stroke: 0.6px #ffe670;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.85))
          drop-shadow(0px 0px 8px rgba(255, 215, 0, 0.22));
}

/* Shiny Metallic Gold Button Background */
.shiny-btn-gold,
.booksy-book-btn:not(.added),
.btn-proceed-bar,
.step-nav-btn.next,
.confirm-booking-btn,
.home-btn,
.cat-pill.active {
  background: linear-gradient(
    180deg,
    #ffe670 0%,
    #ffffff 22%,
    #dca318 60%,
    #b8860b 100%
  ) !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 800 !important;
  border: 1px solid #ffe670 !important;
  box-shadow: 0 4px 16px rgba(220, 163, 24, 0.4) !important;
  filter: none !important;
}

.shiny-btn-gold:hover,
.booksy-book-btn:not(.added):hover,
.btn-proceed-bar:hover,
.step-nav-btn.next:hover,
.confirm-booking-btn:hover,
.home-btn:hover {
  background: linear-gradient(
    180deg,
    #fff3a8 0%,
    #ffffff 28%,
    #e8b62c 70%,
    #c9930e 100%
  ) !important;
  box-shadow: 0 6px 22px rgba(255, 230, 112, 0.6) !important;
  transform: translateY(-2px);
}

/* ---------------- Top Navigation Bar ---------------- */
.booking-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 24px;
}

.header-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 230, 112, 0.05);
  transition: all 0.2s ease;
}

.back-link svg {
  color: #ffe670;
  filter: drop-shadow(0 0 4px rgba(255, 230, 112, 0.4));
}

.back-link:hover {
  background: rgba(255, 230, 112, 0.15);
  border-color: #ffe670;
  transform: translateX(-2px);
  box-shadow: 0 0 12px rgba(255, 230, 112, 0.25);
}

.header-shop-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shop-badge-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-block;
}

.shop-badge-sub {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-star {
  color: #ffe670;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 230, 112, 0.5);
}

.header-phone {
  font-family: var(--display);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 230, 112, 0.05);
  transition: all 0.2s ease;
}

.header-phone svg {
  color: #ffe670;
  filter: drop-shadow(0 0 4px rgba(255, 230, 112, 0.4));
}

.header-phone:hover {
  border-color: #ffe670;
  background: rgba(255, 230, 112, 0.15);
  box-shadow: 0 0 12px rgba(255, 230, 112, 0.25);
}

/* ---------------- Hero / Shop Intro Card ---------------- */
.shop-hero-card {
  max-width: 1080px;
  margin: 24px auto 0;
  padding: 0 20px;
  width: 100%;
}

.hero-box {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.shop-avatar {
  width: 140px;
  height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
}

.shop-details h1 {
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  display: inline-block;
}

.shop-details .addr {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.shop-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ivory);
}

.shop-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 230, 112, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 12px;
  border: 1px solid var(--border-gold);
}

.shop-hours-chip {
  color: var(--text-muted);
}

/* ---------------- Step Wizard Indicator ---------------- */
.wizard-nav-wrap {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: var(--black-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
}

.wizard-steps {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  cursor: default;
  transition: all 0.2s;
}

.step-item.clickable {
  cursor: pointer;
}

.step-item.clickable:hover {
  color: var(--ivory);
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-muted);
  transition: all 0.2s;
}

/* Active Step: Metallic Gold Circle & Shiny Label */
.step-item.active .step-circle {
  background: linear-gradient(
    180deg,
    #ffe670 0%,
    #ffffff 25%,
    #dca318 60%,
    #9e6d00 100%
  );
  border-color: #ffe670;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(255, 230, 112, 0.6);
}

/* Completed Step: Gold Border and Check */
.step-item.completed .step-circle {
  border-color: #ffe670;
  background: rgba(255, 230, 112, 0.18);
  color: #ffe670;
  box-shadow: 0 0 8px rgba(255, 230, 112, 0.3);
}

.step-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 12px;
}

/* ---------------- Main Booking Container ---------------- */
.booking-content-wrap {
  max-width: 1080px;
  margin: 28px auto 40px;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}

.booking-step-panel {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.booking-step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title-area {
  margin-bottom: 24px;
}

.step-title-area h2 {
  font-family: var(--display);
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title-area h2 svg {
  color: #ffe670;
  filter: drop-shadow(0 0 4px rgba(255, 230, 112, 0.5));
}

.step-title-area p {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 4px;
}

/* Active Service Summary Chips (Step 2, 3) */
.selected-services-summary-strip {
  background: rgba(255, 230, 112, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.selected-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}

.selected-strip-label {
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.service-pill-chip {
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--white);
  font-weight: 500;
}

.selected-strip-meta {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-strip-edit {
  font-family: var(--display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: underline;
}

.selected-strip-edit:hover {
  filter: brightness(1.2);
}

/* ---------------- STEP 1: SERVICES (Booksy Multi-Select) ---------------- */
.category-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) transparent;
}

.cat-pill {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: #ffe670;
  color: var(--white);
}

/* Service Category Block */
.category-block {
  margin-bottom: 32px;
}

.category-block-title {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
  display: inline-block;
  width: 100%;
}

/* Booksy-style Service Card */
.booksy-service-card {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.booksy-service-card:hover {
  border-color: var(--border-gold);
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.booksy-service-card.selected {
  border-color: #ffe670;
  background: var(--surface-active);
  box-shadow: 0 0 0 1.5px #ffe670, 0 4px 20px rgba(255, 230, 112, 0.25);
}

.svc-info-left {
  flex: 1;
}

.svc-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.svc-check-badge {
  display: none;
  color: #ffe670;
}

.booksy-service-card.selected .svc-check-badge {
  display: inline-flex;
}

.svc-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.svc-card-meta .duration {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.svc-card-meta .duration svg {
  color: #ffe670;
}

.svc-card-meta .walkin-badge {
  background: rgba(255, 230, 112, 0.1);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold);
}

.svc-action-right {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: right;
}

.svc-price-tag {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-block;
}

/* Booksy Action Buttons */
.booksy-book-btn {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booksy-book-btn.added {
  background: #19361f !important;
  color: #52e078 !important;
  -webkit-text-fill-color: #52e078 !important;
  border: 1px solid #38a169 !important;
  box-shadow: 0 2px 10px rgba(56, 161, 105, 0.3) !important;
}

.booksy-book-btn.added:hover {
  background: #234d2b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ---------------- Floating Bottom Selection Bar ---------------- */
.service-selection-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 14, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1.5px solid var(--border-gold);
  padding: 14px 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.85), 0 -2px 12px rgba(255, 230, 112, 0.2);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-selection-bar.show {
  transform: translateY(0);
}

.selection-bar-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.selection-bar-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.count-badge {
  background: linear-gradient(180deg, #ffe670 0%, #dca318 100%);
  color: #000000;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffe670;
}

.selection-bar-text {
  display: flex;
  flex-direction: column;
}

.selection-bar-text strong {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.selection-bar-text small {
  font-size: 13px;
  color: var(--text-muted);
}

.selection-bar-total {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  display: inline-block;
}

.btn-proceed-bar {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------- STEP 2: BARBER SELECTION ---------------- */
.barber-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.barber-select-card {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.barber-select-card:hover {
  border-color: #ffe670;
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.barber-select-card.selected {
  border-color: #ffe670;
  background: var(--surface-active);
  box-shadow: 0 0 0 2px #ffe670, 0 8px 24px rgba(255, 230, 112, 0.3);
}

.barber-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 14px;
  border: 2px solid var(--border-gold);
  background: var(--surface);
  position: relative;
}

.barber-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.barber-avatar-anyone {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(255, 230, 112, 0.1);
  color: #ffe670;
}

.barber-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
  display: inline-block;
}

.barber-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}

.barber-select-badge {
  margin-top: 14px;
  font-size: 12px;
  font-family: var(--display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  transition: all 0.2s;
}

.barber-select-card.selected .barber-select-badge {
  background: linear-gradient(180deg, #ffe670 0%, #dca318 60%, #b8860b 100%);
  color: #000000;
  border-color: #ffe670;
  font-weight: 800;
}

/* Unavailable Barber Card */
.barber-select-card.unavailable {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: rgba(220, 53, 69, 0.4);
  background: rgba(30, 15, 15, 0.5);
  filter: grayscale(35%);
}

.barber-select-card.unavailable:hover {
  transform: none;
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(40, 15, 15, 0.6);
  box-shadow: none;
}

.barber-select-badge.unavailable-badge {
  background: rgba(220, 53, 69, 0.25);
  color: #ff5252;
  border-color: rgba(220, 53, 69, 0.6);
  font-weight: 700;
}

/* ---------------- STEP 3: DATE & TIME ---------------- */
.date-time-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.date-picker-box,
.time-picker-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.box-label {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.box-label span.label-text {
  display: inline-block;
}

/* Custom Monthly Calendar (Matching Reference Image) */
.custom-calendar-box {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 0;
}

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

.cal-month-title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.cal-nav-btn {
  background: var(--surface-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.cal-nav-btn:hover:not(:disabled) {
  background: var(--gold);
  color: #000;
}

.cal-week-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 10px;
}

.cal-week-day {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.cal-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 2px;
  text-align: center;
}

.cal-day-cell.empty {
  height: 36px;
}

.cal-day-btn {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
}

.cal-day-btn:hover:not(:disabled) {
  border-color: #ffe670;
  color: #ffe670;
}

.cal-day-btn.selected {
  background: linear-gradient(135deg, #ffe670, #f59e0b) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(255, 230, 112, 0.4);
}

.cal-day-btn.is-today:not(.selected) {
  border: 1.5px solid #ffe670;
  color: #ffe670;
}

.cal-day-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.date-pill-btn {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.date-pill-btn:hover:not(:disabled) {
  border-color: #ffe670;
  background: var(--surface-hover);
}

.date-pill-btn.selected {
  background: linear-gradient(180deg, #ffe670 0%, #ffffff 22%, #dca318 60%, #b8860b 100%) !important;
  border-color: #ffe670 !important;
  box-shadow: 0 4px 16px rgba(255, 230, 112, 0.45);
}

.date-pill-btn.selected .day-name,
.date-pill-btn.selected .day-num,
.date-pill-btn.selected .day-month {
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  -webkit-text-stroke: 0 !important;
  filter: none !important;
  font-weight: 800;
}

.date-pill-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.02);
}

.day-name {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.day-num {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.day-month {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Time Slots Layout & Fixed Hierarchy */
.slots-container {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.time-slot-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-slot-group-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 2px;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  width: 100%;
}

.slot-btn {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--ivory);
  text-align: center;
  transition: all 0.2s;
  width: 100%;
}

.slot-btn:hover {
  border-color: #ffe670;
  color: #ffe670;
  background: var(--surface-hover);
}

.slot-btn.selected {
  background: linear-gradient(180deg, #ffe670 0%, #ffffff 22%, #dca318 60%, #b8860b 100%) !important;
  border-color: #ffe670 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  -webkit-text-stroke: 0 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 10px rgba(255, 230, 112, 0.45) !important;
}

.slot-btn:disabled,
.slot-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  background: rgba(20, 20, 25, 0.6) !important;
  color: #777777 !important;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 6px 2px !important;
  text-decoration: line-through;
}

.slot-btn.disabled .slot-booked-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f87171;
  font-weight: 700;
  text-decoration: none;
}

.no-slots-msg {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------------- STEP 4: CONTACT & REVIEW ---------------- */
.details-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.form-box {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
}

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

.form-label {
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 8px;
}

.form-label .required {
  color: #ffe670;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #ffe670;
  box-shadow: 0 0 0 2px rgba(255, 230, 112, 0.35);
  background: #1c1c1c;
}

.form-input.invalid {
  border-color: var(--danger);
}

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.error-text {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.error-text.show {
  display: block;
}

/* Booking Review Summary Card */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.summary-card h3 {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: inline-block;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.summary-row .label {
  color: var(--text-muted);
}

.summary-row .value {
  color: var(--white);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.summary-services-box {
  background: var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
}

.summary-service-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.summary-service-item:last-child {
  border-bottom: none;
}

.summary-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.total-label {
  font-family: var(--display);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--white);
}

.total-amount {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  display: inline-block;
}

.pay-note {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  line-height: 1.4;
}

.confirm-booking-btn {
  width: 100%;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-booking-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ---------------- STEP 5: CONFIRMATION SUCCESS ---------------- */
.success-panel {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  box-shadow: var(--shadow-lg);
}

.success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 230, 112, 0.15);
  border: 2px solid #ffe670;
  color: #ffe670;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 16px rgba(255, 230, 112, 0.35);
}

.success-panel h2 {
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}

.success-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 24px;
}

.booking-ref-badge {
  display: inline-block;
  background: var(--surface-card);
  border: 1px dashed var(--border-gold);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.success-details-box {
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 28px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cal-btn-row {
  display: flex;
  gap: 12px;
}

.cal-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ivory);
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.cal-btn:hover {
  background: rgba(255, 230, 112, 0.15);
  border-color: #ffe670;
  color: #ffe670;
}

.home-btn {
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px;
  border-radius: var(--radius-sm);
  display: block;
  transition: all 0.2s;
}

/* ---------------- Step Action Nav (Back/Next) ---------------- */
.step-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.step-nav-btn {
  font-family: var(--display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.step-nav-btn.prev {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-nav-btn.prev:hover {
  color: var(--white);
  border-color: var(--white);
}

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

/* ---------------- Footer ---------------- */
.booking-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
}

/* ---------------- Responsive Rules ---------------- */
@media (max-width: 768px) {
  .hero-box {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px;
  }
  .shop-avatar {
    margin: 0 auto;
    width: 100%;
    max-width: 220px;
    height: 120px;
  }
  .shop-meta-row {
    justify-content: center;
  }
  .wizard-steps {
    overflow-x: auto;
    padding: 0 12px;
  }
  .step-label {
    display: none;
  }
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .date-time-layout {
    grid-template-columns: 1fr;
  }
  .details-layout {
    grid-template-columns: 1fr;
  }
  .booksy-service-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .svc-action-right {
    width: 100%;
    justify-content: space-between;
  }
  .header-shop-info {
    display: none;
  }
  .cal-btn-row {
    flex-direction: column;
  }
  .service-selection-bar {
    padding: 12px 16px;
  }
  .selection-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .btn-proceed-bar {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile Time Slots: Exactly 3 neat columns */
@media (max-width: 600px) {
  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .slot-btn {
    padding: 11px 4px !important;
    font-size: 14px !important;
    width: 100% !important;
    text-align: center !important;
  }
  .time-slot-group-title {
    font-size: 15px !important;
  }
}
