/* ━━━ BWF Booking Widget ━━━ */
.bwf-bw {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Header */
.bwf-bw-header {
  padding: 18px 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.bwf-bw-svc-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}
.bwf-bw-svc-meta {
  font-size: 13px;
  color: #6b7280;
}

/* Steps */
.bwf-bw-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.bwf-bw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.bwf-bw-step--active { opacity: 1; }
.bwf-bw-step--done { opacity: 0.6; }
.bwf-bw-step-icon { font-size: 18px; }
.bwf-bw-step-label { font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; }
.bwf-bw-step--active .bwf-bw-step-label { color: #4f46e5; }
.bwf-bw-step-line {
  width: 32px;
  height: 2px;
  background: #e5e7eb;
  margin: 0 6px;
  border-radius: 1px;
  align-self: center;
  margin-bottom: 14px;
}
.bwf-bw-step-line--done { background: #4f46e5; }

/* Content */
.bwf-bw-content { padding: 20px; }
.bwf-bw-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

/* Error */
.bwf-bw-error {
  margin: 0 20px;
  padding: 10px 14px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

/* Date selector */
.bwf-bw-dates {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bwf-bw-dates::-webkit-scrollbar { display: none; }

.bwf-bw-date-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 56px;
  padding: 10px 6px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.bwf-bw-date-btn:hover { border-color: #4f46e5; background: #f5f3ff; }
.bwf-bw-date-btn--sel {
  border-color: #4f46e5;
  background: #4f46e5;
}
.bwf-bw-date-btn--sel .bwf-bw-date-day,
.bwf-bw-date-btn--sel .bwf-bw-date-num,
.bwf-bw-date-btn--sel .bwf-bw-date-mon { color: #fff; }
.bwf-bw-date-btn--we { opacity: 0.5; }

.bwf-bw-date-day { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; }
.bwf-bw-date-num { font-size: 20px; font-weight: 700; color: #111827; line-height: 1.2; }
.bwf-bw-date-mon { font-size: 10px; color: #9ca3af; text-transform: uppercase; }

/* Time header */
.bwf-bw-time-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.bwf-bw-back {
  font-size: 13px;
  color: #4f46e5;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}
.bwf-bw-back:hover { text-decoration: underline; }
.bwf-bw-date-label { font-size: 14px; font-weight: 600; color: #374151; }

/* Loading */
.bwf-bw-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 13px;
}
.bwf-bw-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e5e7eb;
  border-top-color: #4f46e5;
  border-radius: 50%;
  animation: bwf-bw-spin 0.7s linear infinite;
}
@keyframes bwf-bw-spin { to { transform: rotate(360deg); } }

/* Empty */
.bwf-bw-empty {
  text-align: center;
  padding: 40px 0;
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
}

/* Slots grid */
.bwf-bw-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
}
.bwf-bw-slot-btn {
  padding: 10px 4px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}
.bwf-bw-slot-btn:hover { border-color: #4f46e5; background: #f5f3ff; color: #4f46e5; }
.bwf-bw-slot-btn--sel {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}

/* Next button */
.bwf-bw-next {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.bwf-bw-next:hover { background: #4338ca; }

/* Form */
.bwf-bw-form { display: flex; flex-direction: column; gap: 14px; }
.bwf-bw-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.bwf-bw-field input,
.bwf-bw-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.bwf-bw-field input:focus,
.bwf-bw-field textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.bwf-bw-field textarea { resize: vertical; min-height: 60px; }

/* Submit */
.bwf-bw-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.bwf-bw-submit:hover { background: #4338ca; }
.bwf-bw-submit--disabled { opacity: 0.5; cursor: not-allowed; }

/* Done */
.bwf-bw-done { text-align: center; padding: 32px 20px; }
.bwf-bw-done-icon { font-size: 48px; margin-bottom: 12px; }
.bwf-bw-done-title { font-size: 20px; font-weight: 700; color: #111827; margin: 0 0 8px; }
.bwf-bw-done-text { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0 0 20px; }

.bwf-bw-recap {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #f9fafb;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}
.bwf-bw-recap-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #374151;
}

/* Mobile responsive */
@media (max-width: 480px) {
  .bwf-bw { border-radius: 0; border-left: none; border-right: none; }
  .bwf-bw-slots { grid-template-columns: repeat(3, 1fr); }
}
