/* Booking widget styling — Sunnyside Wellness's own palette (see :root in
   styles.css), matching the same card/button/field language used sitewide
   rather than thewebxpert.com's dark "futuristic" theme this widget's JS
   was ported from. Ported class-for-class from that JS (booking-card,
   booking-calendar-*, booking-slot-btn, etc.) — only the colors/fonts/
   radius here changed, the widget's own generated markup didn't. */

.booking-card {
  max-width: 640px;
  margin: 2.5rem auto 0;
  background: var(--white);
  border: 1px solid rgba(74, 74, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
}

.booking-step[hidden] {
  display: none;
}

.booking-step-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 1rem;
}

/* Step 1: calendar date picker */
.booking-calendar {
  margin-bottom: 1.5rem;
}

.booking-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.booking-calendar-month {
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
}

.booking-cal-nav {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 2px solid rgba(74, 74, 74, 0.08);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  cursor: pointer;
  font-size: 1rem;
  transition: all 180ms ease;
}

.booking-cal-nav:hover {
  border-color: var(--sage);
  background: var(--sand);
}

.booking-cal-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.booking-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(74, 74, 74, 0.55);
  margin-bottom: 0.4rem;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.booking-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: rgba(74, 74, 74, 0.4);
  background: transparent;
  border: 1px solid transparent;
}

.booking-cal-day.empty {
  visibility: hidden;
}

.booking-cal-day.available {
  background: var(--cream);
  border-color: rgba(74, 74, 74, 0.08);
  color: var(--charcoal);
  font-weight: 600;
  cursor: pointer;
}

.booking-cal-day.available:hover {
  border-color: var(--sage);
  background: var(--sand);
}

.booking-cal-day.selected {
  background: var(--sage);
  border-color: transparent;
  color: var(--white);
  font-weight: 700;
}

.booking-cal-day.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-times[hidden] {
  display: none;
}

.booking-times {
  margin-top: 1rem;
}

.booking-slots-times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.booking-slot-btn {
  background: var(--cream);
  border: 2px solid rgba(74, 74, 74, 0.08);
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.booking-slot-btn:hover {
  border-color: var(--sage);
  background: var(--sand);
}

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

.booking-recap {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--sand);
  border: 1px solid rgba(74, 74, 74, 0.08);
  border-radius: var(--radius-md);
}

.booking-recap[hidden] {
  display: none;
}

.booking-recap p {
  margin: 0;
  color: var(--charcoal);
  font-size: 0.95rem;
}

.booking-error {
  color: #b23b3b;
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
  text-align: center;
}

.booking-error[hidden] {
  display: none;
}

#booking-form .field select {
  width: 100%;
  min-height: 56px;
  padding: 0.95rem 1rem;
  border-radius: 10px;
  border: 2px solid rgba(74, 74, 74, 0.08);
  background: var(--white);
  color: var(--charcoal);
  font: inherit;
  cursor: pointer;
}

.booking-form-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.booking-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(74, 74, 74, 0.55);
  font-size: 0.85rem;
  padding: 1rem 0;
}

/* Step 3: confirmation */
.booking-confirm {
  text-align: center;
  padding: 1rem 0;
}

.booking-confirm-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--white);
}

.booking-confirm h3 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-style: italic;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

.booking-confirm p {
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

.booking-confirm-note {
  font-size: 0.85rem;
  color: rgba(74, 74, 74, 0.6);
  font-style: italic;
}

@media only screen and (max-width: 768px) {
  .booking-form-actions {
    flex-direction: column-reverse;
  }

  .booking-form-actions .button {
    width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .booking-card {
    padding: 1.4rem 1.1rem;
  }
}
