/* ============================================================
   Performance Accelerator — training-pages promo popup
   /assets/css/pa-popup.css

   Loaded only where the popup ships (footer.php gates the include
   to /training/* while pa_promo_active() — see includes/pa_promo.php
   and includes/components/pa-popup.php). Brand card on a ~50% navy
   overlay; modest 480px card; mobile-friendly.
   ============================================================ */

.pa-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000; /* above sticky header (1000) and mega overlay (999) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 36, 51, 0.5);
}
.pa-popup-overlay[hidden] {
  display: none;
}

.pa-popup {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: 6px;
  border-top: 3px solid var(--mi-orange);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 36px 32px 32px;
  text-align: center;
  outline: none;
  animation: pa-popup-in 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .pa-popup { animation: none; }
}
@keyframes pa-popup-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.pa-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: #595959;
  cursor: pointer;
  border-radius: 4px;
}
.pa-popup-close:hover {
  color: #042433;
  background: #F0F2F2;
}

.pa-popup-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mi-orange);
  margin-bottom: 10px;
}
.pa-popup-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: #042433;
  margin: 0 0 12px;
}
.pa-popup-body {
  font-size: 15px;
  line-height: 1.6;
  color: #595959;
  margin: 0 0 10px;
}
.pa-popup-note {
  font-size: 13px;
  font-weight: 600;
  color: #042433;
  margin: 0 0 20px;
}
.pa-popup-cta {
  display: inline-block;
  background: var(--mi-orange);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 4px;
}
.pa-popup-cta:hover {
  background: var(--mi-orange-dark);
  color: #fff;
}

@media (max-width: 480px) {
  .pa-popup { padding: 32px 22px 26px; }
  .pa-popup-heading { font-size: 24px; }
}
