.header-book-appointment,
.home-hero-booking-appointment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border: 2px solid #34f6f2;
  border-radius: 999px;
  background: #34f6f2;
  color: #172c4b !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-book-appointment,
.home-hero-booking-appointment {
  animation: booking-cta-outline 1.8s ease-in-out infinite;
}

.home-hero-booking-appointment {
  display: none;
}

.booking-label-short {
  display: none;
}

.header-book-appointment:hover,
.home-hero-booking-appointment:hover {
  border-color: #24dce2;
  background: #24dce2;
  color: #172c4b !important;
}

.header-book-appointment:focus-visible,
.home-hero-booking-appointment:focus-visible {
  outline: 3px solid #172c4b;
  outline-offset: 3px;
}

@media (max-width: 63.999rem) {
  #header,
  #header .navbar {
    height: auto !important;
  }

  #header .navbar {
    min-height: 100px;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #header .navbar-end {
    display: contents;
  }

  .navbar > .navbar-brand {
    flex: 0 1 132px;
    min-width: 0;
    order: 1;
  }

  .navbar > .navbar-brand img {
    width: 132px !important;
  }

  .navbar > .navbar-end > .menu-toggle,
  #header .menu-toggle {
    order: 2;
  }

  .header-book-appointment {
    display: none;
  }

  body:has(#offcanvas-main.is-active:not(.is-closing)) .header-book-appointment {
    display: inline-flex;
    width: 100%;
    flex: 1 0 100%;
    order: 3;
  }

  .booking-label-full {
    display: inline;
  }

  .booking-label-short {
    display: none;
  }
}

@media (max-width: 667px) {
  .home-header-booking {
    display: none;
  }

  .home-hero-booking-appointment {
    display: none;
  }
}

@media (max-width: 25rem) {
  .navbar > .navbar-brand {
    flex-basis: 108px;
  }

  .navbar > .navbar-brand img {
    width: 108px !important;
  }

  .menu-toggle {
    padding-left: 1.1em;
    padding-right: 2.8em;
  }
}

@keyframes booking-cta-outline {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 246, 242, 0.48);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(52, 246, 242, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-book-appointment,
  .home-hero-booking-appointment {
    animation: none;
  }
}

body.booking-modal-open {
  overflow: hidden;
}

.booking-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.booking-modal.is-open {
  display: flex;
}

.booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 43, 0.72);
  backdrop-filter: blur(4px);
}

.booking-modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  width: min(100%, 1040px);
  max-height: min(720px, calc(100vh - 48px));
  min-height: 450px;
  overflow: auto;
  border-radius: 0 0 84px 0;
  background: linear-gradient(115deg, #ff7969 0%, #f64d70 100%);
  box-shadow: 0 24px 90px rgba(8, 20, 32, 0.32);
  color: #fff;
}

.booking-modal__close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 18px;
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.booking-modal__art {
  position: relative;
  display: grid;
  min-height: 450px;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 42% 48%, rgba(255, 255, 255, 0.16) 0 32%, transparent 32.3%), rgba(255, 255, 255, 0.05);
}

.booking-calendar {
  width: min(78%, 330px);
  padding: 18px;
  transform: rotate(-5deg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: #203444;
  box-shadow: 0 24px 45px rgba(32, 52, 68, 0.28);
}

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.booking-calendar__header span:first-child::before,
.booking-calendar__header span:last-child::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(-135deg);
}

.booking-calendar__header span:last-child::before {
  transform: rotate(45deg);
}

.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-calendar__grid i {
  display: grid;
  aspect-ratio: 1.2;
  place-items: center;
  border-radius: 4px;
  background: #354c5d;
  color: #eaf1f5;
  font-size: 10px;
  font-style: normal;
}

.booking-calendar__grid i.is-selected {
  background: #ff6175;
  color: #fff;
}

.booking-clock {
  position: absolute;
  right: 10%;
  bottom: 20%;
  display: grid;
  width: 116px;
  aspect-ratio: 1;
  place-items: center;
  border: 9px solid #8caeff;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: 0 10px 24px rgba(32, 52, 68, 0.24);
}

.booking-clock span {
  width: 4px;
  height: 39px;
  border-radius: 4px;
  background: #263d9c;
  transform: translateY(-8px);
}

.booking-clock span::after {
  content: '';
  display: block;
  width: 28px;
  height: 4px;
  border-radius: inherit;
  background: inherit;
  transform: translate(1px, 35px);
}

.booking-checkmark {
  position: absolute;
  top: 29%;
  right: 27%;
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: #ff6175;
  font-size: 25px;
}

.booking-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px clamp(24px, 5vw, 64px) 46px;
}

.booking-modal__content h2 {
  margin: 0 36px 42px 0;
  color: #fff;
  font-family: inherit;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.booking-modal__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.booking-modal__fields label {
  min-width: 0;
}

.booking-modal__fields label > span:not(.visually-hidden) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.booking-modal__fields input,
.booking-modal__fields select {
  width: 100%;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  outline: none;
  background: transparent;
  color: #fff;
  font: inherit;
}

.booking-modal__fields input::placeholder {
  color: #fff;
  opacity: 1;
}

.booking-modal__fields select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}

.booking-modal__fields select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.booking-modal__fields select option {
  background: #fff;
  color: #243547;
}

.booking-modal__fields input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
}

.booking-modal__field--wide {
  grid-column: 1 / -1;
}

.booking-modal__status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.booking-modal__status.is-error {
  font-weight: 600;
}

.booking-modal__submit {
  display: block;
  min-width: 196px;
  min-height: 46px;
  margin: 20px auto 0;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #f64d70;
  font: inherit;
  cursor: pointer;
}

.booking-modal__submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.booking-modal__close:focus-visible,
.booking-modal__fields input:focus-visible,
.booking-modal__fields select:focus-visible,
.booking-modal__submit:focus-visible {
  outline: 3px solid #203444;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .booking-modal {
    padding: 12px;
  }

  .booking-modal__dialog {
    display: block;
    width: min(100%, 520px);
    max-height: calc(100vh - 24px);
    min-height: 0;
    border-radius: 0 0 40px 0;
  }

  .booking-modal__art {
    display: none;
  }

  .booking-modal__content {
    padding: 58px 24px 30px;
  }

  .booking-modal__content h2 {
    margin: 0 22px 28px;
    font-size: 26px;
  }

  .booking-modal__fields {
    gap: 12px;
  }

  .booking-modal__fields input,
  .booking-modal__fields select {
    min-height: 50px;
    padding: 0 13px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .booking-modal__fields {
    grid-template-columns: 1fr;
  }

  .booking-modal__field--wide {
    grid-column: auto;
  }
}
