/*
 * Percival Page WordPress Version 16
 * Branded booking modal containing the Cal.com inline scheduler.
 */

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

.booking-modal[hidden],
.booking-toast[hidden] {
  display: none !important;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

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

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 17, 29, .76);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.booking-modal__panel {
  position: relative;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201, 149, 56, .7);
  border-radius: 18px;
  background: #f7f5f0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
  transform: translateY(18px) scale(.985);
  transition: transform .24s ease;
  outline: none;
}

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

.booking-modal__header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 12px 22px;
  color: #fff;
  background: linear-gradient(110deg, #03111d, #0b2a42);
  border-bottom: 2px solid #c99538;
}

.booking-modal__identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.booking-modal__identity img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.booking-modal__identity div {
  display: grid;
  gap: 2px;
}

.booking-modal__identity strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.booking-modal__identity span {
  color: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.booking-modal__close {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.booking-modal__close:hover,
.booking-modal__close:focus-visible {
  color: #03111d;
  border-color: #dba94e;
  background: #dba94e;
}

.booking-modal__close span {
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.booking-modal__status {
  padding: 12px 22px;
  color: #fff;
  background: #0f694a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.booking-modal__calendar {
  min-height: 650px;
  overflow: auto;
  background: #fff;
}

.booking-modal__calendar iframe {
  min-height: 650px !important;
}

.booking-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000001;
  max-width: min(420px, calc(100vw - 32px));
  padding: 16px 20px;
  border-left: 4px solid #dba94e;
  border-radius: 8px;
  color: #fff;
  background: #073024;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .24s ease;
}

.booking-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .booking-modal {
    padding: 8px;
  }

  .booking-modal__panel {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }

  .booking-modal__header {
    min-height: 68px;
    padding: 9px 10px 9px 14px;
  }

  .booking-modal__identity img {
    width: 42px;
    height: 42px;
  }

  .booking-modal__identity strong {
    font-size: 22px;
  }

  .booking-modal__identity span {
    font-size: 9px;
  }

  .booking-modal__close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .booking-modal__calendar,
  .booking-modal__calendar iframe {
    min-height: calc(100dvh - 86px) !important;
  }

  .booking-toast {
    right: 16px;
    bottom: 16px;
  }
}
