/* =============================================
   Popup ISO – Overlay & Container
   ============================================= */
.popup-iso-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
}

.popup-iso {
  position: fixed;
  z-index: 99991;
  pointer-events: auto;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 40px rgba(0, 86, 148, 0.18), 0 2px 16px rgba(0, 0, 0, 0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 24px 18px;
  box-sizing: border-box;
  overflow-y: auto;
  animation: popupIsoSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.popup-iso.popup-iso--hiding {
  animation: popupIsoSlideDown 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

/* =============================================
   Close X Button (top-right)
   ============================================= */
.popup-iso-close-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0, 86, 148, 0.08);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  color: var(--heading-color, #005694);
  font-size: 16px;
  z-index: 2;
}

.popup-iso-close-x:hover {
  background: rgba(0, 86, 148, 0.18);
  transform: scale(1.1);
}

/* =============================================
   Header (badge + title)
   ============================================= */
.popup-iso-header {
  text-align: center;
  margin-bottom: 14px;
  width: 100%;
}

.popup-iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--nav-font, "Poppins", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #0b5ed7;
  background: rgba(11, 94, 215, 0.08);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 8px;
}

.popup-iso-title {
  font-family: var(--heading-font, "Raleway", sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--heading-color, #005694);
  margin: 8px 0 0;
  line-height: 1.3;
}

/* =============================================
   ISO Images
   ============================================= */
.popup-iso-images {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 10px 0 14px;
  width: 100%;
}

.popup-iso-images img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}

.popup-iso-images img:hover {
  transform: scale(1.06);
}

/* =============================================
   Message
   ============================================= */
.popup-iso-message {
  text-align: center;
  font-family: var(--default-font, "Roboto", sans-serif);
  font-size: 13px;
  color: #555;
  line-height: 1.55;
  margin: 0 0 14px;
  max-width: 480px;
  padding: 0 8px;
}

/* =============================================
   Dismiss Button (arrow down)
   ============================================= */
.popup-iso-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(0, 86, 148, 0.15);
  background: transparent;
  color: var(--heading-color, #005694);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.popup-iso-dismiss:hover {
  background: var(--accent-color, #005694);
  border-color: var(--accent-color, #005694);
  color: #fff;
  transform: translateY(3px);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes popupIsoSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes popupIsoSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(40px); }
}

@keyframes popupIsoSlideLeft {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes popupIsoSlideRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(60px); }
}

@keyframes popupIsoDesktopIn {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes popupIsoDesktopOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(40px); }
}

/* =============================================
   RESPONSIVE: Mobile Portrait
   Bottom half of screen
   ============================================= */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .popup-iso {
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-height: 50vh;
    border-radius: 18px 18px 0 0;
    animation-name: popupIsoSlideUp;
  }

  .popup-iso.popup-iso--hiding {
    animation-name: popupIsoSlideDown;
  }

  .popup-iso-images img {
    max-height: 70px;
  }

  .popup-iso-title {
    font-size: 16px;
  }

  .popup-iso-message {
    font-size: 12px;
  }
}

/* =============================================
   RESPONSIVE: Mobile Landscape
   Right half of screen
   ============================================= */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .popup-iso {
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: 50vw;
    max-height: 100vh;
    border-radius: 18px 0 0 18px;
    animation-name: popupIsoSlideLeft;
    padding: 18px 20px 14px;
    justify-content: center;
  }

  .popup-iso.popup-iso--hiding {
    animation-name: popupIsoSlideRight;
  }

  .popup-iso-images {
    gap: 16px;
  }

  .popup-iso-images img {
    max-height: 60px;
  }

  .popup-iso-title {
    font-size: 15px;
  }

  .popup-iso-message {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .popup-iso-dismiss {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}

/* =============================================
   RESPONSIVE: Desktop / Tablet
   Centered horizontally, bottom area, max 620px
   ============================================= */
@media screen and (min-width: 768px) and (orientation: portrait),
       screen and (min-width: 901px) {
  .popup-iso {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 620px;
    max-height: 50vh;
    border-radius: 18px;
    animation: popupIsoDesktopIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .popup-iso.popup-iso--hiding {
    animation: popupIsoDesktopOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
  }

  .popup-iso-images img {
    max-height: 100px;
  }
}
