/* =============================================
   booking.css · Public booking page styles
   Dynamic theming via --biz-primary / --biz-accent
   ============================================= */

/* Step indicator */
.booking-steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 32px;
  position: relative;
}

.booking-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.booking-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.booking-step--done:not(:last-child)::after {
  background: var(--biz-primary, #22c55e);
  opacity: 0.4;
}

.booking-step__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.booking-step--active .booking-step__circle {
  background: var(--biz-primary, #f6530f);
  border-color: var(--biz-primary, #f6530f);
  color: #ffffff;
  box-shadow: 0 4px 12px var(--biz-shadow, rgba(246, 83, 15, 0.25));
}

.booking-step--done .booking-step__circle {
  background: #ffffff;
  border-color: var(--biz-primary, #16a34a);
  color: var(--biz-primary, #16a34a);
}

.booking-step--done .booking-step__circle svg {
  display: none;
}

.booking-step--done .booking-step__circle::before {
  content: '✓';
  font-size: 1.1rem;
  font-weight: 700;
}

.booking-step--placeholder {
  cursor: default;
  pointer-events: none;
}

.booking-step--placeholder .booking-step__circle {
  opacity: 0.4;
}

.booking-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}

.booking-step--active .booking-step__label {
  color: var(--biz-primary, #f6530f);
  font-weight: 700;
}

.booking-step--done .booking-step__label {
  color: var(--biz-primary, #16a34a);
}

/* Slot grid */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.slot-btn {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.slot-btn:hover {
  border-color: var(--biz-primary-40, rgba(246, 83, 15, 0.4));
  background: var(--biz-primary-10, rgba(246, 83, 15, 0.08));
  box-shadow: 0 4px 12px var(--biz-primary-10, rgba(246, 83, 15, 0.08));
  transform: translateY(-1px);
}

.slot-btn--selected {
  background: var(--biz-primary, #f6530f);
  color: #ffffff;
  border: 2px solid var(--biz-primary, #f6530f);
  box-shadow: 0 6px 18px var(--biz-shadow, rgba(246, 83, 15, 0.22));
  transform: translateY(-1px);
}

.slot-btn:focus,
.slot-btn:active {
  outline: none;
}

.slot-btn--selected:hover,
.slot-btn--selected:focus,
.slot-btn--selected:active {
  background: var(--biz-primary, #f6530f);
  color: #ffffff;
  border: 2px solid var(--biz-primary, #f6530f);
  box-shadow: 0 6px 18px var(--biz-shadow, rgba(246, 83, 15, 0.22));
  transform: translateY(-1px);
}

/* Staff picker */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.staff-option {
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.staff-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--biz-primary, #f6530f);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.staff-option:hover {
  border-color: var(--biz-primary-40, rgba(246, 83, 15, 0.35));
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.staff-option:hover::before {
  opacity: 1;
}

.staff-option--selected {
  border-color: var(--biz-primary, #f6530f);
  background: var(--biz-primary-10, rgba(246, 83, 15, 0.04));
  box-shadow: 0 4px 16px var(--biz-shadow, rgba(246, 83, 15, 0.12));
}

.staff-option--selected::before {
  opacity: 1;
}

.staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--biz-primary-10, rgba(246, 83, 15, 0.1));
  color: var(--biz-primary, #f6530f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 10px;
  border: 2px solid var(--biz-primary-20, rgba(246, 83, 15, 0.15));
}

.staff-avatar--no-pref {
  background: var(--color-bg, #f3f4f6);
  color: var(--color-text-soft, #6b7280);
  border-color: transparent;
}

.staff-option__name {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.staff-option__role {
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Confirm form */
.confirm-form {
  max-width: 100%;
}

.confirm-form .form-group {
  margin-bottom: 18px;
}

.confirm-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #444;
}

.confirm-form input,
.confirm-form select,
.confirm-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: all 0.2s ease;
  color: var(--color-text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.confirm-form select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23555' d='M8 11L2 5h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

.confirm-form input:focus,
.confirm-form select:focus,
.confirm-form textarea:focus {
  border-color: var(--biz-primary-40, rgba(246, 83, 15, 0.4));
  box-shadow: 0 0 0 4px var(--biz-primary-10, rgba(246, 83, 15, 0.08));
}

.confirm-form textarea {
  resize: vertical;
  min-height: 70px;
}

/* Success */
.booking-success {
  text-align: center;
  padding: 48px 20px;
}

.booking-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.booking-success__title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.booking-success__text {
  color: var(--color-text-soft);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
  font-size: 1rem;
}


/* Section hidden */
.section--hidden {
  display: none;
}

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

.step-entering {
  animation: stepIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
