/* ===========================================
   Medical Appointment Popup
   =========================================== */

/* Popup container - fullscreen overlay */
.medical-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Dark overlay behind popup */
.medical-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

/* Popup content box */
.medical-popup__content {
  position: relative;
  background-color: var(--brand-white);
  color: var(--brand-grey-medium);
  padding: 2.5rem 1.5rem;
  max-width: 90%;
  min-width: auto;
  text-align: center;
}

@media (min-width: 1000px) {
  .medical-popup__content {
    padding: 4rem 3rem;
    max-width: 604px;
    min-width: 650px;
  }
}

/* Text content */
.medical-popup__text {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.4;
}

.medical-popup__text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 130%;
  margin-bottom: 0.5rem;
}

@media (min-width: 1000px) {
  .medical-popup__text {
    font-size: 1.5rem;
    line-height: 1.5;
  }

  .medical-popup__text p {
    font-size: 1.5rem;
  }
}

/* Close button (X) */
.medical-popup__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background-image: url('../../images/popup-confirmation/close.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 1000px) {
  .medical-popup__close {
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
  }
}

.medical-popup__close:hover {
  opacity: 0.7;
}

/* Yes button */
.medical-popup__buttons .button {
  min-width: 100px;
  padding: 10px 20px;
  color: var(--brand-white);
  border-radius: 0;
  background-color: var(--brand-primary-color);
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

@media (min-width: 1000px) {
  .medical-popup__buttons .button {
    min-width: 120px;
    padding: 12px 30px;
    gap: 10px;
    font-size: 1rem;
  }
}

.medical-popup__buttons .button::after {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url('../../images/popup-confirmation/arrow-white.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (min-width: 1000px) {
  .medical-popup__buttons .button::after {
    width: 18px;
    height: 18px;
  }
}

.medical-popup__buttons .button:hover {
  opacity: 0.85;
}

/* Phone link */
.medical-popup__phone-link {
  max-width: 250px;
  margin: 0.8rem auto 0;
}

@media (min-width: 1000px) {
  .medical-popup__phone-link {
    max-width: 280px;
    margin: 1rem auto 0;
  }
}

.medical-popup__phone-link a {
  color: var(--brand-grey-medium);
  text-decoration: underline;
  font-size: 0.85rem;
  transition: opacity 0.3s ease;
  font-weight: 700;
}

@media (min-width: 1000px) {
  .medical-popup__phone-link a {
    font-size: 1rem;
  }
}

.medical-popup__phone-link a:hover {
  opacity: 0.7;
}