/* ===== Welcome popup ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 29, 0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
}

.popup-overlay.is-visible {
  pointer-events: all;
}

.popup-box {
  position: relative;
  display: flex;
  background: var(--white-color);
  max-width: 880px;
  width: 100%;
  border-radius: var(--regular-radius);
  overflow: hidden;
  transform: translateY(40px);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  color: var(--black-color);
}

/* Close button */
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: var(--white-color);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
  box-shadow: var(--box-shadow);
}

.popup-close:hover {
  background: var(--black-color);
  border-color: var(--black-color);
}

.popup-close span {
  position: absolute;
  width: 13px;
  height: 1.5px;
  background: var(--black-color);
  transition: background 0.3s;
}

.popup-close span:first-child {
  transform: rotate(45deg);
}

.popup-close span:last-child {
  transform: rotate(-45deg);
}

.popup-close:hover span {
  background: var(--white-color);
}

/* Image column */
.popup-img {
  flex: 0 0 45%;
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.popup-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Content column */
.popup-content {
  flex: 1;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.5rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.popup-content .subtitle {
  margin-bottom: 0;
  color: var(--red-color);
}

.popup-content h4,
.popup-content .popup-title {
  margin: 0;
}

.popup-content .popup-text {
  margin: 0;
}

.popup-content .popup-text + .popup-text {
  margin-top: 0.25rem;
}

.popup-content .btn {
  align-self: flex-start;
  margin-top: 0.75rem;
}

/* Responsive */
@media screen and (max-width: 767px) {
  .popup-box {
    flex-direction: column;
    max-height: 88vh;
    overflow-y: auto;
  }

  .popup-img {
    flex: 0 0 220px;
    min-height: 220px;
  }

  .popup-content {
    padding: 1.75rem 1.5rem 2.25rem;
  }

  .popup-content h4,
  .popup-content .popup-title {
  }
}

@media screen and (max-width: 575px) {
  .popup-img {
    flex: 0 0 180px;
    min-height: 180px;
  }
}
