/* Booking page */
.booking {
  background: #F7F2EA
;
}

/* Premium card container for the scheduler */
.booking-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden; /* keeps rounded corners on the iframe */
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* The iframe itself */
.acuity-frame {
  display: block;
  width: 100%;
  border: 0;
}

.acuity-fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(125,155,135,0.18), transparent 54%),
    linear-gradient(145deg, rgba(247,242,234,0.96), rgba(255,255,255,0.98));
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.acuity-fallback__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(125,155,135,0.92);
  margin-bottom: 0.85rem;
}

.acuity-fallback__title {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.02;
  color: #1d2d25;
  margin: 0 0 0.9rem;
}

.acuity-fallback__text {
  max-width: 34rem;
  margin: 0 auto 1.25rem;
  color: rgba(29,45,37,0.7);
  line-height: 1.7;
}

.acuity-fallback__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.acuity-fallback__btn {
  text-decoration: none;
}

.acuity-fallback__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(29,45,37,0.12);
  background: rgba(255,255,255,0.8);
  color: rgba(29,45,37,0.84);
  text-decoration: none;
  font-weight: 600;
}

.acuity-fallback__link:hover {
  color: rgba(29,45,37,1);
}

.booking-embed {
  background: #F7F2EA;
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 1rem 2.5rem rgba(0,0,0,0.08);
}

/* Only on booking page */
body.booking-page main {
  padding-top: calc(var(--topbar-h) + var(--nav-gap) + 5.25rem);
}


/* ── SKELETON LOADER ── */

.acuity-skeleton {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2rem 1.5rem;
  z-index: 2;
  overflow: hidden;
}

/* Make booking-card relative so skeleton can overlay */
.booking-card {
  position: relative;
  min-height: 500px;
}

.acuity-skeleton__header {
  margin-bottom: 1.75rem;
}

/* Shimmer animation */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.acuity-skeleton__bar,
.acuity-skeleton__service,
.acuity-skeleton__label,
.acuity-skeleton__cal-day,
.acuity-skeleton__cal-nav,
.acuity-skeleton__cal-month {
  background: linear-gradient(
    90deg,
    rgba(125,155,135,0.10) 25%,
    rgba(125,155,135,0.20) 50%,
    rgba(125,155,135,0.10) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

.acuity-skeleton__bar--title {
  height: 22px;
  width: 38%;
  margin-bottom: 10px;
}

.acuity-skeleton__bar--sub {
  height: 14px;
  width: 55%;
}

.acuity-skeleton__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.acuity-skeleton__label {
  height: 12px;
  width: 60%;
  margin-bottom: 12px;
}

.acuity-skeleton__service {
  height: 52px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.acuity-skeleton__service--short {
  width: 70%;
}

/* Calendar skeleton */
.acuity-skeleton__cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.acuity-skeleton__cal-nav {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.acuity-skeleton__cal-month {
  height: 16px;
  width: 120px;
  border-radius: 6px;
}

.acuity-skeleton__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.acuity-skeleton__cal-day {
  height: 34px;
  border-radius: 6px;
  background: rgba(125,155,135,0.07);
  animation: none;
}

.acuity-skeleton__cal-day--active {
  background: linear-gradient(
    90deg,
    rgba(125,155,135,0.15) 25%,
    rgba(125,155,135,0.28) 50%,
    rgba(125,155,135,0.15) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

/* Centred loading indicator */
.acuity-skeleton__shimmer {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.acuity-skeleton__logo {
  width: 36px;
  height: 36px;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.acuity-skeleton__text {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(125,155,135,0.6);
  margin: 0;
  white-space: nowrap;
}

/* Mobile: stack to single column */
@media (max-width: 767.98px) {
  .acuity-skeleton__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .acuity-skeleton {
    padding: 1.25rem;
  }
  .acuity-fallback {
    padding: 1.25rem;
  }
}
