/* =========================================================
   JMR HOMEPAGE PROMO POPUP
   External CSS so the existing CSP remains safe.
========================================================= */

.jmr-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jmr-promo-modal.is-visible {
  display: flex;
}

.jmr-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(4px);
}

.jmr-promo-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 540px);
  background: #ffffff;
  color: #222222;
  border-radius: 22px;
  padding: 34px 30px 28px;
  text-align: center;
  border-top: 8px solid #24B040;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  animation: jmrPromoIn 0.28s ease-out;
}

.jmr-promo-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f6;
  color: #222222;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.jmr-promo-close:hover,
.jmr-promo-close:focus {
  background: #e3e7eb;
  outline: 2px solid #24B040;
  outline-offset: 2px;
}

.jmr-promo-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(36, 176, 64, 0.12);
  color: #1E8F36;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jmr-promo-card h2 {
  margin: 0 0 14px;
  color: #222222;
  font-family: Montserrat, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.08;
  font-weight: 900;
}

.jmr-promo-text {
  margin: 0 auto 24px;
  max-width: 430px;
  color: #4d565f;
  font-size: 1rem;
  line-height: 1.55;
}

.jmr-promo-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.jmr-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 12px;
  font-weight: 850;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.jmr-promo-btn:hover,
.jmr-promo-btn:focus {
  transform: translateY(-1px);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.jmr-promo-btn.primary {
  background: #24B040;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(36, 176, 64, 0.3);
}

.jmr-promo-btn.primary:hover,
.jmr-promo-btn.primary:focus {
  background: #1E8F36;
}

.jmr-promo-btn.secondary {
  background: #222222;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.jmr-promo-btn.secondary:hover,
.jmr-promo-btn.secondary:focus {
  background: #111111;
}

.jmr-promo-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #e3e7eb;
  color: #6b747d;
  font-size: 0.84rem;
  line-height: 1.45;
}

body.jmr-promo-open {
  overflow: hidden;
}

.hiring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@keyframes jmrPromoIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .jmr-promo-modal {
    padding: 16px;
  }

  .jmr-promo-card {
    padding: 32px 20px 24px;
    border-radius: 18px;
  }

  .jmr-promo-actions {
    flex-direction: column;
  }

  .jmr-promo-btn {
    width: 100%;
  }

  .jmr-promo-close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jmr-promo-card {
    animation: none;
  }

  .jmr-promo-btn {
    transition: none;
  }
}
