/* Booking form */
.booking-form {
  max-width: 28rem;
}

.booking-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-cream-dark);
}

.booking-section__title {
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.booking-field {
  margin-bottom: 1.25rem;
}

.booking-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
}

.booking-field input:focus,
.booking-field textarea:focus {
  outline: 2px solid var(--color-sage);
  border-color: var(--color-sage);
}

/* Time selection */
.booking-slots {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
}

.booking-slots__title {
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
  color: var(--color-ink);
}

.booking-slots__hint {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin: 0 0 1rem;
}

.booking-slots__schedule {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.booking-hour__slots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.booking-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-ink);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.booking-slot__time {
  letter-spacing: 0.01em;
}

.booking-slot__badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink-muted);
}

.booking-slot:hover:not(:disabled) {
  border-color: var(--color-sage);
  background: var(--color-sage-light);
}

.booking-slot.is-selected {
  background: var(--color-sage-dark);
  border-color: var(--color-sage-dark);
  color: var(--color-white);
}

.booking-slot.is-selected .booking-slot__badge {
  color: rgba(255, 255, 255, 0.85);
}

.booking-slot--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-cream-dark);
}

.booking-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.booking-message--success {
  background: var(--color-sage-light);
  color: var(--color-sage-dark);
  border: 1px solid var(--color-sage);
}

.booking-message--error {
  background: #fdecea;
  color: #7a2e2e;
  border: 1px solid #e8b4b4;
}

.booking-message--info {
  background: var(--color-cream-dark);
}

.booking-note {
  font-size: 0.875rem;
  color: var(--color-ink-muted);
  margin-top: 1rem;
}

/* Post-booking success */
.booking-intro[hidden],
.booking-form[hidden] {
  display: none;
}

.booking-panel {
  max-width: 28rem;
}

.booking-success {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-cream-dark);
  border-radius: var(--radius-md);
}

.booking-success__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--color-sage-light);
  position: relative;
}

.booking-success__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--color-sage-dark);
  border-width: 0 2.5px 2.5px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.booking-success__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.booking-success__when {
  font-size: 1rem;
  color: var(--color-ink-muted);
  margin: 0 0 1.25rem;
}

.booking-success__hint {
  font-size: 0.8125rem;
  color: var(--color-ink-muted);
  margin: 0 0 0.75rem;
}

.booking-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 18rem;
  margin: 0 auto 1rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #25a244;
  border-radius: 999px;
  transition: background var(--transition), transform var(--transition);
}

.booking-wa:hover {
  background: #1f8a3a;
  color: #fff;
  transform: translateY(-1px);
}

.booking-wa__icon {
  flex-shrink: 0;
}

.booking-success__again {
  display: block;
  margin: 0 auto;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-sage-dark);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.booking-success__again:hover {
  color: var(--color-terracotta);
}
