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

/* Step indicator */
.booking-steps {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.booking-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  max-width: 100%;
  padding: 10px 6px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  background: var(--color-surface-soft);
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  box-sizing: border-box;
  flex-direction: column;
  gap: 2px;
}

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

.booking-step--done {
  background: #e8f8ef;
  color: #1a7a42;
}

/* 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: 1.5px solid #e0e0e0;
  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;
}

.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: 22px;
  border-radius: 18px;
  border: 1.5px solid #e8e8e8;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.staff-option:hover {
  border-color: var(--biz-primary-40, rgba(246, 83, 15, 0.35));
  box-shadow: 0 10px 28px var(--biz-primary-10, rgba(246, 83, 15, 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.06));
  box-shadow: 0 8px 24px var(--biz-shadow, rgba(246, 83, 15, 0.15));
}

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

.staff-avatar {
  width: 52px;
  height: 52px;
  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: 1.15rem;
  margin: 0 auto 12px;
  border: 2px solid var(--biz-primary-20, rgba(246, 83, 15, 0.15));
}

.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: 420px;
}

.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: 1.5px solid #e0e0e0;
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: all 0.2s ease;
  color: var(--color-text);
}

.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;
}

@media (min-width: 768px) {
  .booking-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .booking-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: auto;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    background: var(--color-surface-soft);
    color: var(--color-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
  }
}

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