html.jhuma-booking-open,
html.jhuma-booking-open body {
  overflow: hidden;
}

.jhuma-booking-dialog,
.jhuma-booking-dialog * {
  box-sizing: border-box;
}

.jhuma-booking-dialog {
  --booking-wine: #590e25;
  --booking-wine-deep: #351019;
  --booking-ivory: #f8f5ef;
  --booking-linen: #eee6dc;
  --booking-ink: #271a1e;
  --booking-hairline: rgba(89, 14, 37, 0.2);
  position: fixed;
  inset: 0;
  width: min(1160px, calc(100vw - 48px));
  max-width: none;
  height: min(800px, calc(100dvh - 48px));
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: var(--booking-ink);
  background: var(--booking-ivory);
  box-shadow: 0 32px 100px rgba(25, 5, 11, 0.42);
  overflow: hidden;
}

.jhuma-booking-dialog::backdrop {
  background: rgba(36, 10, 18, 0.76);
  backdrop-filter: blur(8px) saturate(0.75);
}

.jhuma-booking-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.jhuma-booking-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(34px, 3.3vw, 48px) clamp(27px, 3vw, 38px) 30px;
  color: var(--booking-ivory);
  background:
    linear-gradient(160deg, rgba(89, 14, 37, 0.94), rgba(49, 12, 23, 0.98)),
    url("/assets/brand/texture-burgundy.jpg") center / cover;
  isolation: isolate;
}

.jhuma-booking-intro::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border: 1px solid rgba(248, 245, 239, 0.22);
  pointer-events: none;
}

.jhuma-booking-wordmark {
  display: block;
  width: 164px;
  height: auto;
  margin: 0 auto clamp(48px, 6vh, 68px);
}

.jhuma-booking-eyebrow {
  margin: 0 0 14px;
  color: rgba(248, 245, 239, 0.72);
  font: 500 11px/1.35 "DM Sans Brand", Arial, sans-serif;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.jhuma-booking-intro__default > .jhuma-booking-eyebrow span {
  display: block;
}

.jhuma-booking-title {
  margin: 0 0 16px;
  color: var(--booking-ivory);
  font: 400 clamp(40px, 4vw, 54px)/0.98 "Marcellus Brand", Georgia, serif;
  letter-spacing: -0.035em;
}

.jhuma-booking-copy {
  margin: 0;
  color: rgba(248, 245, 239, 0.84);
  font: 300 15px/1.62 "DM Sans Brand", Arial, sans-serif;
}

.jhuma-booking-portrait {
  position: relative;
  height: clamp(220px, 30vh, 270px);
  margin: clamp(28px, 4vh, 40px) 0 0;
  border: 1px solid rgba(248, 245, 239, 0.22);
  overflow: hidden;
}

.jhuma-booking-portrait picture,
.jhuma-booking-portrait img {
  display: block;
  width: 100%;
  height: 100%;
}

.jhuma-booking-portrait img {
  object-fit: cover;
  object-position: 52% 36%;
  filter: saturate(0.72) sepia(0.08) contrast(0.94);
}

.jhuma-booking-complete {
  margin: auto 0;
}

.jhuma-booking-complete > img {
  display: block;
  width: 58px;
  height: auto;
  margin-bottom: 54px;
}

.jhuma-booking-complete h2 {
  margin: 0 0 18px;
  color: var(--booking-ivory);
  font: 400 50px/1.02 "Marcellus Brand", Georgia, serif;
  letter-spacing: -0.035em;
}

.jhuma-booking-complete > p:last-child {
  margin: 0;
  color: rgba(248, 245, 239, 0.8);
  font: 300 15px/1.65 "DM Sans Brand", Arial, sans-serif;
}

.jhuma-booking-calendar {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(rgba(238, 230, 220, 0.9), rgba(238, 230, 220, 0.9)),
    url("/assets/brand/texture-ivory.jpg") center / cover;
}

.jhuma-booking-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--booking-hairline);
  border-radius: 50%;
  color: var(--booking-wine);
  background: rgba(248, 245, 239, 0.97);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.jhuma-booking-close:hover,
.jhuma-booking-close:focus-visible {
  color: var(--booking-ivory);
  background: var(--booking-wine);
  outline: 2px solid rgba(89, 14, 37, 0.28);
  outline-offset: 3px;
  transform: rotate(3deg);
}

.jhuma-booking-close svg {
  width: 17px;
  height: 17px;
}

.jhuma-booking-frame {
  min-width: 0;
  min-height: 0;
  margin: 24px 24px 0;
  border: 1px solid rgba(89, 14, 37, 0.14);
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(69, 31, 43, 0.12);
  overflow: hidden;
}

.jhuma-booking-widget {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: auto;
  scrollbar-color: rgba(89, 14, 37, 0.28) transparent;
}

.jhuma-booking-widget .calendly-inline-widget,
.jhuma-booking-widget iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 690px;
  border: 0;
}

.jhuma-booking-loading,
.jhuma-booking-error {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 64px 40px 92px;
  text-align: center;
  background:
    linear-gradient(rgba(238, 230, 220, 0.96), rgba(238, 230, 220, 0.96)),
    url("/assets/brand/texture-ivory.jpg") center / cover;
}

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

.jhuma-booking-spinner {
  width: 36px;
  height: 36px;
  margin: auto;
  border: 1px solid rgba(89, 14, 37, 0.18);
  border-top-color: var(--booking-wine);
  border-radius: 50%;
  animation: jhuma-booking-spin 900ms linear infinite;
}

.jhuma-booking-loading p,
.jhuma-booking-error p {
  margin: 0;
  color: #6a555c;
  font: 300 14px/1.55 "DM Sans Brand", Arial, sans-serif;
}

.jhuma-booking-fallback {
  justify-self: center;
  color: var(--booking-wine);
  font: 500 12px/1.4 "DM Sans Brand", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.jhuma-booking-privacy {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 72px 10px 24px;
  border-top: 1px solid rgba(89, 14, 37, 0.11);
  color: #785f68;
  background: rgba(248, 245, 239, 0.78);
  font: 300 10px/1.45 "DM Sans Brand", Arial, sans-serif;
}

.jhuma-booking-privacy a {
  color: var(--booking-wine);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-underline-offset: 4px;
}

@keyframes jhuma-booking-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .jhuma-booking-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .jhuma-booking-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .jhuma-booking-intro {
    display: block;
    min-height: 166px;
    padding: 21px 72px 18px 22px;
  }

  .jhuma-booking-intro::after {
    inset: 8px;
  }

  .jhuma-booking-wordmark {
    width: 116px;
    margin: 0 auto 18px;
    transform: translateX(25px);
  }

  .jhuma-booking-eyebrow {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .jhuma-booking-intro__default > .jhuma-booking-eyebrow span {
    display: inline;
  }

  .jhuma-booking-intro__default > .jhuma-booking-eyebrow span + span::before {
    content: " ";
  }

  .jhuma-booking-title {
    margin-bottom: 7px;
    font-size: 30px;
  }

  .jhuma-booking-copy {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.45;
  }

  .jhuma-booking-portrait {
    display: none;
  }

  .jhuma-booking-complete {
    padding-top: 12px;
  }

  .jhuma-booking-complete > img {
    width: 34px;
    margin-bottom: 16px;
  }

  .jhuma-booking-complete h2 {
    margin-bottom: 7px;
    font-size: 29px;
  }

  .jhuma-booking-complete > p:last-child {
    max-width: 310px;
    font-size: 11px;
    line-height: 1.45;
  }

  .jhuma-booking-close {
    position: fixed;
    top: 17px;
    right: 17px;
    width: 44px;
    height: 44px;
    color: var(--booking-ivory);
    border-color: rgba(248, 245, 239, 0.34);
    background: rgba(53, 16, 25, 0.28);
  }

  .jhuma-booking-frame {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .jhuma-booking-widget .calendly-inline-widget,
  .jhuma-booking-widget iframe {
    min-height: 620px;
  }

  .jhuma-booking-privacy {
    min-height: 43px;
    gap: 12px;
    padding: 7px 14px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jhuma-booking-close { transition: none; }
  .jhuma-booking-spinner { animation-duration: 1.8s; }
}
