/* Booking modal — premium flow */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 20, 50, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.booking-modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #fff9f7 100%);
  border-radius: 28px;
  border: 2px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9) inset,
              0 24px 64px rgba(61, 45, 75, 0.2),
              0 0 80px rgba(212, 175, 55, 0.12);
  overflow: hidden;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.is-open .booking-modal__panel {
  transform: translateY(0) scale(1);
}

.booking-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(252, 232, 238, 0.8);
  color: var(--color-purple);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s ease, transform 0.2s ease;
}

.booking-modal__close:hover {
  background: var(--color-floral-light);
  transform: scale(1.05);
}

.booking-modal__header {
  padding: 2rem 2rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.booking-modal__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-purple);
  margin: 0.5rem 0 1.25rem;
}

.booking-steps {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.booking-step {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8fa8;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  background: rgba(235, 228, 247, 0.5);
  transition: all 0.3s ease;
}

.booking-step.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--color-purple), var(--color-floral));
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.25);
}

.booking-step.is-done {
  color: var(--color-purple);
  background: rgba(212, 175, 55, 0.2);
}

.booking-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

.booking-pane {
  display: none;
}

.booking-pane.is-active {
  display: block;
  animation: bookingFadeIn 0.35s ease;
}

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

.booking-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.booking-service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-service-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  border: 2px solid rgba(212, 175, 55, 0.35);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.booking-service-option:hover {
  border-color: var(--color-floral);
  box-shadow: 0 8px 20px rgba(123, 44, 191, 0.1);
}

.booking-service-option.is-selected {
  border-color: var(--color-purple);
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.06), rgba(217, 108, 139, 0.06));
  box-shadow: 0 0 0 1px var(--color-purple-light);
}

.booking-service-option__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-purple);
  display: block;
  margin-bottom: 0.25rem;
}

.booking-service-option__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #7a5c12;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-service-option__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
  display: block;
}

.booking-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.booking-date-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-purple);
  text-align: center;
  flex: 1;
}

.booking-date-prev,
.booking-date-next {
  padding: 0.5rem 1rem !important;
  min-width: auto;
}

.booking-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.booking-slot-btn {
  padding: 0.65rem 0.5rem;
  border: 1.5px solid rgba(201, 162, 39, 0.45);
  border-radius: 12px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.booking-slot-btn:hover {
  border-color: var(--color-purple-light);
  background: rgba(235, 228, 247, 0.4);
}

.booking-slot-btn.is-selected {
  background: linear-gradient(135deg, var(--color-purple), #5a189a);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(123, 44, 191, 0.35);
}

.booking-loading,
.booking-empty {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.booking-empty__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--color-purple);
  margin-bottom: 0.5rem;
}

.booking-empty__text {
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

.booking-empty__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 280px;
  margin: 0 auto;
}

.booking-empty__actions .btn {
  width: 100%;
}

.booking-summary {
  background: linear-gradient(135deg, rgba(249, 226, 175, 0.25), rgba(252, 232, 238, 0.4));
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.booking-summary strong {
  color: var(--color-purple);
  font-family: var(--font-heading);
  font-size: 1.05rem;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-field span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple);
  margin-bottom: 0.35rem;
}

.booking-field span em {
  font-style: normal;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

.booking-field input,
.booking-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-field input:focus,
.booking-field textarea:focus {
  outline: none;
  border-color: var(--color-purple-light);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.15);
}

.booking-pay-section {
  margin-top: 1.25rem;
}

.booking-pay-hint {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.booking-pay-alt {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  text-align: center;
}

.booking-pay-alt a {
  color: var(--color-primary);
  font-weight: 600;
}

.booking-paypal {
  min-height: 48px;
  margin-top: 0.5rem;
}

.booking-paypal-fallback {
  text-align: center;
  padding: 1rem;
  background: rgba(252, 232, 238, 0.5);
  border-radius: 16px;
  margin-bottom: 1rem;
}

.booking-paypal-fallback p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.booking-success {
  text-align: center;
  padding: 2rem 1rem;
}

.booking-success__icon {
  font-size: 3rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.6);
}

.booking-success h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-purple);
  margin-bottom: 0.75rem;
}

.booking-modal__footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.booking-modal__footer .btn {
  flex: 1;
}

.booking-modal__footer .btn-outline {
  flex: 0 0 auto;
  min-width: 100px;
}

/* Card book buttons */
/* alignment handled in styles.css (.service-card-actions { margin-top: auto }) */

.btn-book {
  width: 100%;
}

.btn-book-outline {
  background: transparent;
  color: var(--color-purple);
  border: 2px solid var(--color-purple);
}

.btn-book-outline:hover {
  background: var(--color-purple);
  color: #fff;
}

body.booking-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .booking-modal__panel {
    max-height: 95vh;
    border-radius: 20px 20px 0 0;
    align-self: flex-end;
  }

  .booking-modal {
    align-items: flex-end;
    padding: 0;
  }

  .booking-modal__header,
  .booking-modal__body,
  .booking-modal__footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
