/**
 * Meeting booking popup — styles scoped to #meetingBookingPopup only.
 * Matches legacy popup look (style-events) without affecting the rest of the site.
 */

#meetingBookingPopup.popup {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #07193ae6;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#meetingBookingPopup.popup.show {
  display: block;
  opacity: 1;
}

#meetingBookingPopup .popup-content {
  background-color: #f8f9fb;
  margin: 0 auto;
  padding: 10px 20px 25px;
  border: 1px solid #888;
  max-width: 480px;
  width: calc(100% - 32px);
  position: absolute;
  border-radius: 16px;
  left: 50%;
  top: 10%;
  transform: translate(-50%, 0);
  overflow-y: auto;
  box-sizing: border-box;
}

#meetingBookingPopup .close {
  color: #627093;
  float: right;
  font-size: 28px;
  position: absolute;
  right: 15px;
  top: 10px;
  cursor: pointer;
  line-height: 1;
}

#meetingBookingPopup .close:hover,
#meetingBookingPopup .close:focus {
  color: #000;
}

#meetingBookingPopup .popup-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  color: #29375a;
  padding: 20px 0;
  text-transform: uppercase;
  margin: 0;
}

#meetingBookingPopup .popup-form {
  display: flex;
  flex-direction: column;
}

#meetingBookingPopup .popup-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  color: #627093;
}

#meetingBookingPopup .popup-input {
  border: 1px solid #62709326;
  width: 100%;
  max-width: 416px;
  height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  padding-left: 10px;
  margin: 3px 0 10px;
  box-sizing: border-box;
}

#meetingBookingPopup .popup-input::placeholder {
  color: #62709380;
  font-size: 14px;
}

#meetingBookingPopup .popup-textarea {
  border: 1px solid #62709326;
  width: 100%;
  max-width: 416px;
  height: 100px;
  border-radius: 12px;
  text-align: left;
  padding: 10px;
  margin: 3px 0 20px;
  box-sizing: border-box;
  resize: vertical;
}

#meetingBookingPopup .popup-textarea::placeholder {
  color: #62709380;
  font-size: 14px;
}

#meetingBookingPopup .popup-submitBtn {
  background-color: #adff00;
  color: #29375a;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 416px;
  height: 52px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  box-sizing: border-box;
}

#meetingBookingPopup .popup-managerBtn {
  background-color: #fff;
  color: #2a58ce;
  cursor: pointer;
  width: 100%;
  max-width: 416px;
  height: 52px;
  border-radius: 8px;
  justify-content: center;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  border: 1px solid #2a58ce;
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
}

#meetingBookingPopup .status-message {
  font-size: 13px;
  margin-top: 8px;
}

/* Calendar block */
#meetingBookingPopup .meeting-booking__calendar {
  margin-bottom: 8px;
  max-width: 416px;
}

#meetingBookingPopup .meeting-booking__cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#meetingBookingPopup .meeting-booking__cal-title {
  font-size: 15px;
  font-weight: 600;
  color: #29375a;
}

#meetingBookingPopup .meeting-booking__cal-nav {
  width: 32px;
  height: 32px;
  border: 1px solid #62709326;
  border-radius: 8px;
  background: #fff;
  color: #29375a;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

#meetingBookingPopup .meeting-booking__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 4px;
}

#meetingBookingPopup .meeting-booking__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #627093;
}

#meetingBookingPopup .meeting-booking__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

#meetingBookingPopup .meeting-booking__day {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  color: #29375a;
}

#meetingBookingPopup .meeting-booking__day.is-empty {
  visibility: hidden;
}

#meetingBookingPopup .meeting-booking__day.is-available {
  background: #fff;
  border-color: #62709326;
  cursor: pointer;
}

#meetingBookingPopup .meeting-booking__day.is-available:hover {
  border-color: #2a58ce;
}

#meetingBookingPopup .meeting-booking__day.is-selected {
  background: #2a58ce;
  border-color: #2a58ce;
  color: #fff;
}

#meetingBookingPopup .meeting-booking__day.is-disabled {
  color: #62709380;
}

#meetingBookingPopup .meeting-booking__selected {
  font-size: 13px;
  color: #29375a;
  font-weight: 600;
  margin: 8px 0 0;
}

#meetingBookingPopup .meeting-booking__slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 12px;
}

#meetingBookingPopup .meeting-booking__slot {
  border: 1px solid #62709326;
  background: #fff;
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 13px;
  color: #29375a;
  cursor: pointer;
}

#meetingBookingPopup .meeting-booking__slot.is-selected {
  background: #2a58ce;
  border-color: #2a58ce;
  color: #fff;
}

#meetingBookingPopup .meeting-booking__error {
  color: #d93025;
  font-size: 13px;
  margin: 6px 0;
}

#meetingBookingPopup .meeting-booking__loading {
  text-align: center;
  color: #627093;
  font-size: 13px;
  padding: 10px 0;
}

@media screen and (max-width: 500px) {
  #meetingBookingPopup .popup-content,
  #meetingBookingPopup .popup-input,
  #meetingBookingPopup .popup-textarea,
  #meetingBookingPopup .popup-submitBtn,
  #meetingBookingPopup .popup-managerBtn,
  #meetingBookingPopup .meeting-booking__calendar {
    max-width: 100%;
    width: 100%;
  }

  #meetingBookingPopup .popup-title {
    font-size: 24px;
  }

  #meetingBookingPopup .meeting-booking__slots {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Success — isolated */
#meetingBookingSuccess.event-success-popup.hidden {
  display: none !important;
}

#meetingBookingSuccess.event-success-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(7, 25, 58, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

#meetingBookingSuccess .success-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: calc(100% - 32px);
  text-align: center;
  box-sizing: border-box;
}

#meetingBookingSuccess .success-popup-title {
  color: #29375a;
  font-weight: 700;
  font-size: 26px;
  line-height: 30px;
}

#meetingBookingSuccess .success-popup-content-text {
  color: #627093;
  font-size: 16px;
  margin: 25px auto;
}

#meetingBookingSuccess .events__button {
  min-width: 90%;
  height: 52px;
  display: flex;
  border-radius: 8px;
  background: #adff00;
  color: #29375a;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-weight: 500;
}
