.AppointmentModalShell {
  position: fixed;
  inset: 0 auto auto 0;
  width: 0;
  height: 0;
  overflow: visible;
  z-index: 10000;
  isolation: isolate;
}

.AppointmentModalToggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.AppointmentModalInstance {
  position: static;
}

.AppointmentModalOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 24px);
  z-index: 10001;
  background: rgba(6, 32, 36, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease-out;
  will-change: opacity;
}

.AppointmentModalContent {
  position: relative;
  z-index: 1;
  max-width: 560px;
  width: min(92vw, 560px);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.AppointmentModalBackdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  padding: 0;
  border: none;
  appearance: none;
}

.AppointmentModalCloseRow {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.AppointmentModalCloseButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 0;
  border: 1px solid rgba(2, 132, 137, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #062024;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(10, 40, 70, 0.14);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.AppointmentModalCloseButton:hover, .AppointmentModalCloseButton:focus-visible {
  background: #ffffff;
  border-color: rgba(2, 132, 137, 0.22);
  transform: translateY(-1px);
}
.AppointmentModalCloseButton {
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
}

.AppointmentModalToggle:checked ~ .AppointmentModalOverlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.AppointmentModalToggle:checked ~ .AppointmentModalOverlay .AppointmentModalContent {
  opacity: 1;
  transform: translateY(0) scale(1);
}