/* ============================================================
   HKB Booking Form Styles
   Matches Hell's Kitchen Barber dark/gold aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --hkb-black:  #0a0a0a;
  --hkb-dark:   #111;
  --hkb-dark2:  #1a1a1a;
  --hkb-border: #2a2a2a;
  --hkb-gold:   #C9A84C;
  --hkb-white:  #F5F0E8;
  --hkb-muted:  #888;
  --hkb-red:    #c0392b;
  --hkb-green:  #27ae60;
}

.hkb-booking-wrap {
  font-family: 'DM Sans', sans-serif;
  background: var(--hkb-dark);
  border: 1px solid var(--hkb-border);
  border-radius: 4px;
  max-width: 860px;
  margin: 0 auto;
  color: var(--hkb-white);
  overflow: hidden;
}

/* Steps */
.hkb-steps {
  display: flex;
  background: var(--hkb-black);
  border-bottom: 1px solid var(--hkb-border);
  overflow-x: auto;
}
.hkb-step {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hkb-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}
.hkb-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hkb-border);
  margin-right: 6px;
  font-size: 11px;
}
.hkb-step.active {
  color: var(--hkb-gold);
  border-bottom-color: var(--hkb-gold);
}
.hkb-step.active span {
  background: var(--hkb-gold);
  color: var(--hkb-black);
  border-color: var(--hkb-gold);
}
.hkb-step.done { color: var(--hkb-white); }
.hkb-step.done span { background: var(--hkb-dark2); color: var(--hkb-gold); border-color: var(--hkb-gold); }

/* Panels */
.hkb-panel { padding: 40px; }
.hkb-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 28px;
  color: var(--hkb-white);
}

/* Service cards */
.hkb-service-group { margin-bottom: 28px; }
.hkb-service-group h3 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hkb-gold);
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
}
.hkb-service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.hkb-service-card { cursor: pointer; }
.hkb-service-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.hkb-service-card-inner {
  border: 1px solid var(--hkb-border);
  border-radius: 4px;
  padding: 20px 16px;
  transition: all 0.2s;
  background: var(--hkb-dark2);
  position: relative;
}
.hkb-service-card-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hkb-gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.hkb-service-card input:checked + .hkb-service-card-inner {
  border-color: var(--hkb-gold);
  background: #1e1a0f;
}
.hkb-service-card input:checked + .hkb-service-card-inner::before { transform: scaleX(1); }
.hkb-service-card:hover .hkb-service-card-inner { border-color: #444; }
.hkb-service-name { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.hkb-service-desc { font-size: 12px; color: var(--hkb-muted); line-height: 1.5; margin-bottom: 12px; }
.hkb-service-meta { display: flex; justify-content: space-between; align-items: center; }
.hkb-price { color: var(--hkb-gold); font-weight: 600; font-size: 16px; }
.hkb-duration { font-size: 11px; color: var(--hkb-muted); }

/* Barber cards */
.hkb-barber-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.hkb-barber-card { cursor: pointer; }
.hkb-barber-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.hkb-barber-card-inner {
  border: 1px solid var(--hkb-border);
  border-radius: 4px;
  padding: 24px 16px;
  text-align: center;
  background: var(--hkb-dark2);
  transition: all 0.2s;
}
.hkb-barber-card input:checked + .hkb-barber-card-inner {
  border-color: var(--hkb-gold);
  background: #1e1a0f;
}
.hkb-barber-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--hkb-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: 0 auto 12px;
  color: var(--hkb-gold);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}
.hkb-barber-photo {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}
.hkb-barber-name { font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.hkb-barber-specialty { font-size: 11px; color: var(--hkb-muted); line-height: 1.4; }

/* Date & Slots */
.hkb-datetime-row { margin-bottom: 24px; }
input[type="date"]#hkb-date {
  background: var(--hkb-dark2);
  border: 1px solid var(--hkb-border);
  color: var(--hkb-white);
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  width: 100%;
  max-width: 280px;
}
.hkb-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.hkb-slot {
  padding: 10px 18px;
  border: 1px solid var(--hkb-border);
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  background: var(--hkb-dark2);
  color: var(--hkb-white);
  transition: all 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.hkb-slot:hover:not(:disabled) { border-color: var(--hkb-gold); color: var(--hkb-gold); }
.hkb-slot.selected { background: var(--hkb-gold); color: var(--hkb-black); border-color: var(--hkb-gold); font-weight: 600; }
.hkb-slot:disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }

/* Form fields */
.hkb-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.hkb-field { display: flex; flex-direction: column; gap: 6px; }
.hkb-field.hkb-field-half { grid-column: span 1; }
.hkb-field:not(.hkb-field-half) { grid-column: span 2; }
.hkb-field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--hkb-muted); }
.hkb-field input, .hkb-field textarea {
  background: var(--hkb-dark2);
  border: 1px solid var(--hkb-border);
  color: var(--hkb-white);
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.hkb-field input:focus, .hkb-field textarea:focus {
  outline: none;
  border-color: var(--hkb-gold);
}
.hkb-field textarea { resize: vertical; min-height: 80px; }
.hkb-checkbox { grid-column: span 2; flex-direction: row; align-items: center; gap: 10px; }
.hkb-checkbox input { width: auto; }
.hkb-checkbox label { font-size: 13px; text-transform: none; letter-spacing: normal; color: var(--hkb-muted); }

/* Summary */
.hkb-summary {
  background: var(--hkb-dark2);
  border: 1px solid var(--hkb-border);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 24px;
}
.hkb-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--hkb-border);
  font-size: 14px;
}
.hkb-summary-row:last-child { border-bottom: none; }
.hkb-summary-row .label { color: var(--hkb-muted); }
.hkb-summary-row .value { font-weight: 500; }
.hkb-summary-row.total .value { color: var(--hkb-gold); font-size: 20px; font-weight: 700; font-family: 'Playfair Display', serif; }

/* Buttons */
.hkb-nav {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hkb-border);
}
.hkb-btn {
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--hkb-gold);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
  border-radius: 0;
}
.hkb-btn-back { background: transparent; color: var(--hkb-muted); border-color: var(--hkb-border); }
.hkb-btn-back:hover { color: var(--hkb-white); border-color: var(--hkb-muted); }
.hkb-btn-next, .hkb-btn-submit { background: var(--hkb-gold); color: var(--hkb-black); }
.hkb-btn-next:hover, .hkb-btn-submit:hover { background: #e4c878; }
.hkb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hkb-btn-submit.loading { opacity: 0.6; pointer-events: none; }

/* Messages */
.hkb-loading { color: var(--hkb-muted); font-style: italic; padding: 16px 0; }
.hkb-notice { background: var(--hkb-dark2); border: 1px solid var(--hkb-border); padding: 16px; border-radius: 4px; color: var(--hkb-muted); }
.hkb-error { background: rgba(192,57,43,0.15); border: 1px solid var(--hkb-red); color: #e74c3c; padding: 16px 20px; margin: 16px 40px; border-radius: 4px; }

/* Success screen */
.hkb-success {
  padding: 60px 40px;
  text-align: center;
}
.hkb-success-icon { font-size: 60px; margin-bottom: 16px; }
.hkb-success h2 { font-family: 'Playfair Display', serif; font-size: 36px; margin-bottom: 12px; color: var(--hkb-gold); }
.hkb-success p { color: var(--hkb-muted); margin-bottom: 12px; }
.hkb-success-ref {
  background: var(--hkb-dark2);
  border: 1px solid var(--hkb-border);
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  margin: 16px 0;
  font-family: monospace;
  font-size: 18px;
  color: var(--hkb-gold);
}
.hkb-success-sub { font-size: 13px; margin-bottom: 32px; }

/* Affiliate dashboard */
.hkb-aff-dashboard { font-family: 'DM Sans', sans-serif; max-width: 800px; }
.hkb-aff-link-box { background: #1a1a1a; border: 1px solid #2a2a2a; padding: 24px; margin-bottom: 28px; border-radius: 4px; }
.hkb-aff-link-box label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; display: block; margin-bottom: 10px; }
.hkb-aff-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.hkb-aff-link-row input { flex: 1; padding: 10px 14px; background: #111; border: 1px solid #333; color: #F5F0E8; font-size: 13px; font-family: monospace; border-radius: 2px; }
.hkb-aff-link-note { font-size: 13px; color: #888; margin: 0; }
.hkb-aff-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 32px; }
.hkb-aff-stat { background: #1a1a1a; border: 1px solid #2a2a2a; padding: 20px; text-align: center; border-radius: 4px; }
.hkb-aff-stat .num { display: block; font-size: 28px; font-weight: 700; color: #C9A84C; font-family: 'Playfair Display', serif; }
.hkb-aff-stat .label { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; display: block; }
.hkb-aff-table { width: 100%; border-collapse: collapse; }
.hkb-aff-table th, .hkb-aff-table td { padding: 12px; border-bottom: 1px solid #222; font-size: 13px; text-align: left; }
.hkb-aff-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }

/* Status badges */
.hkb-status { padding: 3px 10px; border-radius: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.hkb-status--pending   { background: rgba(201,168,76,0.15);  color: #C9A84C; }
.hkb-status--confirmed { background: rgba(39,174,96,0.15);   color: #27ae60; }
.hkb-status--completed { background: rgba(52,152,219,0.15);  color: #3498db; }
.hkb-status--cancelled { background: rgba(192,57,43,0.15);   color: #c0392b; }
.hkb-status--no_show   { background: rgba(127,140,141,0.15); color: #7f8c8d; }

/* Mobile */
@media (max-width: 640px) {
  .hkb-panel { padding: 24px 20px; }
  .hkb-service-cards { grid-template-columns: 1fr 1fr; }
  .hkb-fields { grid-template-columns: 1fr; }
  .hkb-field, .hkb-field.hkb-field-half, .hkb-checkbox { grid-column: span 1; }
  .hkb-aff-stats { grid-template-columns: 1fr 1fr; }
  .hkb-steps { font-size: 10px; }
  .hkb-step { padding: 12px 8px; }
}
