/* Popup Modal Styles - používa existujúci CTA element */

/* Overlay - backdrop s blur efektom */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: block;
  opacity: 1;
}

/* CTA ako popup modal */
.CTA.popup-active {
  position: fixed !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 999999999;
  max-width: 1396px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  transition: all 0.3s ease;
}
@media (max-width: 1519px) {
  .CTA.popup-active {
    max-width: 90%;
    margin: 0 auto;
  }
}

.CTA.popup-active.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Close button - skrytý by default */
.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  background-image: url('../img/btn-close.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000000000;
  display: none; /* skrytý by default */
  align-items: center;
  justify-content: center;
  font-size: 0; /* skryje text */
  line-height: 1;
  transition: all 0.2s ease;
}

/* Zobraz close button len keď je popup aktívny */
.CTA.popup-active .popup-close {
  display: flex;
}

.popup-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.popup-close:active {
  transform: scale(0.95) rotate(90deg);
}

/* Prevent body scroll when popup is open */
body.popup-open {
  overflow: hidden;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .CTA.popup-active {
    max-width: 95%;
    max-height: 95vh;
  }

}


.LIB-LP-mob .CTA.popup-active .BANNER {
  top: 0 !important;
  width: 100%;
}