/* Appointment button */
.booking-button {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: 6px;
  background-color: #073763;
  color: #ffffff;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.booking-button:hover {
  background-color: #07478d;
  transform: translateY(-1px);
}

.booking-button:focus-visible,
.booking-close:focus-visible {
  outline: 3px solid #ed967f;
  outline-offset: 3px;
}

/* Guarantees that the modal is hidden initially */
.booking-modal[hidden] {
  display: none;
}

/* Dark background overlay */
.booking-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  box-sizing: border-box;
  padding: 30px 15px;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.72);
}

/* Applied by JavaScript when opened */
.booking-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* White modal window */
.booking-modal-content {
  position: relative;
  box-sizing: border-box;
  width: min(900px, 100%);
  margin: auto;
  padding: 25px;
  border-radius: 10px;
  background-color: #ffffff;
  color: #222222;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.booking-modal-content h2 {
  margin: 0 50px 5px 0;
  color: #073763;
}

.booking-modal-content p {
  margin: 0 50px 20px 0;
}

/* Close button */
.booking-close {
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333333;
  font-family: Arial, sans-serif;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

/* Google Calendar frame */
.booking-calendar {
  display: block;
  width: 100%;
  height: 600px;
  border: 0;
}

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

  .booking-modal-content {
    padding: 20px 10px;
  }

  .booking-calendar {
    height: 650px;
  }
}
body.booking-modal-open {
  overflow: hidden;
}