.namb-modal-popup .modal-content {
  border-radius: 0.5rem;
  border: none;
  overflow: hidden;
}

/* Large colored header (used when a heading is set) */
.namb-modal-popup .namb-modal-header--large {
  background-color: #18AEE1;
  /* Explicit top-corner radius as belt-and-suspenders for browsers that don't
     honour overflow:hidden on flex containers reliably */
  border-radius: 0.5rem 0.5rem 0 0;
  padding: 3rem 3.5rem;
  justify-content: center;
  border-bottom: none;
  position: relative;
}
@media (min-width: 768px) {
  .namb-modal-popup .namb-modal-header--large {
    padding: 3.75rem 4rem;
  }
}
.namb-modal-popup .namb-modal-header--large .modal-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-align: center;
  width: 100%;
  margin: 0;
}
@media (min-width: 768px) {
  .namb-modal-popup .namb-modal-header--large .modal-title {
    font-size: 2.5rem;
  }
}
/* Close button — fully custom to avoid theme btn/filter conflicts.
   We inline a white SVG × so no filter or color-inversion is needed. */
.namb-modal-popup .namb-modal-header--large .btn-close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  /* White × SVG — bypasses Bootstrap's filter/invert approach */
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3E%3Cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3E%3C/svg%3E") center/1rem auto no-repeat;
  border: none;
  border-radius: 50%;
  filter: none;
  opacity: 1;
  transition: background-color 0.2s ease;
  box-shadow: none;
}
.namb-modal-popup .namb-modal-header--large .btn-close:hover,
.namb-modal-popup .namb-modal-header--large .btn-close:focus {
  background-color: rgba(255, 255, 255, 0.25);
  opacity: 1;
  box-shadow: none;
  outline: none;
}

/* Plain header fallback (no heading) */
.namb-modal-popup .modal-header.border-0 {
  padding-bottom: 0;
}

/* Modal body */
.namb-modal-popup .modal-body {
  padding: 2rem 2.5rem 2.5rem;
  color: #10294C;
}
@media (min-width: 768px) {
  .namb-modal-popup .modal-body {
    padding: 2.5rem 3.5rem 3rem;
  }
}
.namb-modal-popup .modal-body p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: #10294C;
}
.namb-modal-popup .modal-body p:last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .namb-modal-popup .modal-body p {
    font-size: 1.125rem;
    line-height: 1.556;
  }
}
.namb-modal-popup .modal-body h2,
.namb-modal-popup .modal-body h3,
.namb-modal-popup .modal-body h4,
.namb-modal-popup .modal-body h5 {
  color: #10294C;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.namb-modal-popup .modal-body a {
  color: #10294C;
}
.namb-modal-popup .modal-body a:hover {
  opacity: 0.75;
}
