/*
 * The three popups, in the LifeTec design system.
 *
 * Trigger config is 1:1 with the live site (read off each popup's
 * data-elementor-settings):
 *   signup  - open_selector .webinar, no automatic trigger
 *   player  - no trigger at all; opened after the signup form succeeds
 *   article - scroll-down 8%, at most twice per session
 */

/* Elementor paints the modal shell; give it the card treatment. */
.dialog-widget-content:has(.dn-popup),
.elementor-popup-modal .dialog-widget-content {
  border-radius: var(--r-2xl);
  box-shadow: 0 40px 100px -24px rgba(13, 26, 46, 0.55);
  overflow: hidden;
}

.dn-popup {
  background: linear-gradient(180deg, #ffffff 0%, var(--page-panel) 100%);
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3vw, 40px) clamp(24px, 3vw, 36px);
  text-align: center;
}

.dn-pop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 26px -8px rgba(41, 128, 242, 0.55);
}

.dn-pop-note .elementor-heading-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--brand-coral);
  margin-bottom: 10px;
}

.dn-pop-h2 .elementor-heading-title {
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--page-fg-strong);
}

.dn-pop-h2-accent .elementor-heading-title {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dn-pop-kicker .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 4px;
}

.dn-pop-lead .elementor-heading-title {
  display: block;
  font-size: var(--t-small);
  font-weight: 500;
  line-height: 1.7;
  color: var(--page-fg-muted);
  max-width: 560px;
  margin: 14px auto 0;
}

.dn-pop-cue .elementor-heading-title {
  font-size: var(--t-small);
  font-weight: 800;
  color: var(--page-fg-strong);
  margin-top: 16px;
}

/* ------------------------------------------------------------- the form */

.dn-pop-form-slot {
  width: 100%;
  max-width: 420px;
  margin: 16px auto 0;
}

/* label_position:none still emits the <label>; the popup form has no room. */
.dn-pop-form .elementor-field-label {
  display: none;
}

.dn-pop-form .elementor-field-textual {
  background: #fff;
  border-color: var(--line-strong);
}

/* ------------------------------------------------------------ the player */

.dn-pop-player {
  max-width: 900px;
}

.dn-pop-video-slot {
  width: 100%;
  margin-top: 18px;
}

.dn-pop-video {
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  background: var(--page-fg-strong);
}

.dn-pop-fs {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px auto 0;
  font-size: var(--t-micro);
  font-weight: 700;
  color: var(--page-fg-subtle);
}

.dn-pop-cta {
  margin-top: 20px;
}

/* ----------------------------------------------------------- the article */

.dn-pop-article {
  max-width: 940px;
  text-align: start;
}

.dn-pop-article .dn-pop-icon { margin-inline: 0; }

.dn-pop-split {
  display: grid !important;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 2.6vw, 32px);
  align-items: center;
  margin-top: 20px;
}

.dn-pop-visual,
.dn-pop-text {
  width: auto !important;
  min-width: 0;
}

.dn-pop-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

.dn-pop-stat .elementor-heading-title {
  display: block;
  font-size: var(--t-micro);
  font-weight: 500;
  line-height: 1.75;
  color: var(--page-fg-muted);
  margin-bottom: 10px;
}

.dn-pop-ask .elementor-heading-title {
  font-size: var(--t-h4);
  font-weight: 900;
  line-height: 1.35;
  color: var(--page-fg-strong);
  margin: 4px 0 16px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 767px) {
  .dn-pop-split { grid-template-columns: 1fr; }
  .dn-pop-article { text-align: center; }
  .dn-pop-article .dn-pop-icon { margin-inline: auto; }
  .dn-pop-h2 .elementor-heading-title { font-size: 20px; }
}
