/* The marketing page's form modal (themes/shared/js/marketing-portal-modal.js, marketing_portal_helper.php).
   After the marketing designs' own modal: a 24px card, a header in the page's brand gradient (the design's
   --blue / --violet when it has them, else the portal's --site_color_g), a white body with the master form
   framed in it. Every text 14px or more; the body scrolls inside the card. */
html.qmp-open, html.qmp-open body { overflow: hidden !important; }
.qmp-lb { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px;
  background: rgba(15, 23, 42, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: qmpFade .25s; }
.qmp-lb[hidden] { display: none !important; }
.qmp-modal { position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px); border-radius: 24px; overflow: hidden; background: #fff;
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .6); animation: qmpZoom .35s cubic-bezier(.2, .7, .2, 1); }
.qmp-mh { position: relative; flex: 0 0 auto; padding: 24px 64px 22px 26px; color: #fff;
  background: linear-gradient(120deg, var(--blue, var(--site_color_g, #334155)), var(--violet, var(--blue2, var(--blue, var(--site_color_g, #334155))))); }
.qmp-title { margin: 0; color: #fff; font: 800 23px/1.2 var(--display, inherit); letter-spacing: -.01em; }
.qmp-sub { margin: 6px 0 0; color: rgba(255, 255, 255, .88); font-size: 14px; line-height: 1.5; }
.qmp-sub[hidden] { display: none; }
.qmp-x { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer; }
.qmp-modal.is-busy .qmp-x { opacity: .45; pointer-events: none; }
.qmp-x:hover, .qmp-x:focus-visible { background: rgba(255, 255, 255, .32); outline: none; }
.qmp-mb { position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.qmp-frame { display: block; width: 100%; min-height: 240px; height: 420px; border: 0; background: #fff; }
.qmp-frame[hidden] { display: none; }
.qmp-wait { position: absolute; inset: 0 0 auto 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 20px; color: #475569; font-size: 15px; background: #fff; }
.qmp-wait[hidden] { display: none; }
.qmp-spin { width: 22px; height: 22px; border: 3px solid rgba(15, 23, 42, .12); border-top-color: var(--blue, var(--site_color_g, #334155));
  border-radius: 50%; animation: qmpSpin .7s linear infinite; }
.qmp-back { padding: 28px 26px 30px; text-align: center; font-size: 15px; color: #334155; }
.qmp-back[hidden] { display: none; }
.qmp-back p { margin: 0 0 14px; font-size: 15px; }
.qmp-tab { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 14px; font-weight: 800;
  font-size: 15px; text-decoration: none; color: #fff; background: var(--blue, var(--site_color_g, #334155)); }
@media (max-width: 480px) {
  .qmp-lb { padding: 10px; }
  .qmp-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 20px; }
  .qmp-mh { padding: 20px 58px 18px 20px; }
  .qmp-title { font-size: 20px; }
}
@keyframes qmpFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmpZoom { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes qmpSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qmp-lb, .qmp-modal, .qmp-spin { animation: none; } }
