/* ===== Gated download: inline button, floating CTA, popup ===== */
.xg-post-scope .download-btn-wrap {
  max-width:760px; margin:0 auto 56px; padding:0 32px; text-align:center;
}
.xg-post-scope .download-btn {
  display:inline-flex; align-items:center; gap:10px;
  background:#D90041; color:#fff; border:none; text-decoration:none;
  font-family:Inter,sans-serif; font-size:14px; font-weight:600; letter-spacing:.02em;
  padding:14px 28px; border-radius:999px; cursor:pointer;
  transition:opacity .2s ease, transform .2s ease;
}
.xg-post-scope .download-btn:hover { opacity:.88; transform:translateY(-1px); }
.xg-post-scope .download-btn__icon { display:inline-flex; align-items:center; justify-content:center; color:#fff; }
.xg-post-scope .download-btn__icon svg { width:14px; height:14px; }

.xg-post-scope .floating-cta {
  position:fixed; bottom:24px; right:24px; z-index:90;
  display:inline-flex; align-items:center; gap:10px;
  background:#270156; color:#fff; text-decoration:none; border:none;
  font-family:Inter,sans-serif; font-size:13px; font-weight:600; letter-spacing:.02em;
  padding:12px 20px 12px 16px; border-radius:999px; cursor:pointer;
  box-shadow:0 12px 32px -8px rgba(22,24,58,.3), 0 0 0 1px rgba(255,255,255,.06) inset;
  opacity:0; transform:translateY(12px) scale(.96); pointer-events:none;
  transition:opacity .3s ease, transform .3s ease, background .2s ease;
}
.xg-post-scope .floating-cta.is-visible { opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.xg-post-scope .floating-cta:hover { background:#1d0142; }
.xg-post-scope .floating-cta__icon {
  width:28px; height:28px; border-radius:50%; background:#D90041;
  display:inline-flex; align-items:center; justify-content:center; flex-shrink:0;
}
.xg-post-scope .floating-cta__icon svg { width:12px; height:12px; stroke:#fff; }
.xg-post-scope .floating-cta__close {
  width:22px; height:22px; border:none; background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.7); border-radius:50%; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; margin-left:4px;
  transition:background .2s ease, color .2s ease;
}
.xg-post-scope .floating-cta__close:hover { background:rgba(255,255,255,.18); color:#fff; }
.xg-post-scope .floating-cta__close svg { width:9px; height:9px; fill:none; stroke:currentColor; stroke-width:2; }

.xg-post-scope .xg-popup-overlay {
  position:fixed; inset:0; z-index:500;
  background:rgba(22,24,58,.55); -webkit-backdrop-filter:blur(2px); backdrop-filter:blur(2px);
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; pointer-events:none; transition:opacity .4s ease; overflow-y:auto;
}
.xg-post-scope .xg-popup-overlay.is-visible { opacity:1; pointer-events:auto; }
.xg-post-scope .xg-popup-card {
  background:#fff; border-radius:8px; padding:44px 44px 32px; max-width:520px; width:100%;
  box-shadow:0 24px 80px rgba(0,0,0,.3); position:relative; margin:auto;
  transform:translateY(12px); transition:transform .4s cubic-bezier(.22,1,.36,1);
}
.xg-post-scope .xg-popup-overlay.is-visible .xg-popup-card { transform:translateY(0); }
.xg-post-scope .xg-popup-close {
  position:absolute; top:18px; right:18px; width:32px; height:32px;
  border:none; background:transparent; color:#8B8D9F; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; border-radius:50%;
  transition:background .2s ease, color .2s ease;
}
.xg-post-scope .xg-popup-close:hover { background:rgba(22,24,58,.06); color:#16183A; }
.xg-post-scope .xg-popup-close svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; }
.xg-post-scope .xg-popup__eyebrow {
  font-size:11px; font-weight:700; letter-spacing:2.5px; text-transform:uppercase;
  color:#D90041; margin-bottom:12px;
}
.xg-post-scope .xg-popup__title {
  font-family:Inter,sans-serif !important; font-size:26px; font-weight:800; color:#16183A;
  line-height:1.2; letter-spacing:-.5px; margin:0 0 12px; border-bottom:0 !important;
}
.xg-post-scope .xg-popup__sub { font-size:15px; color:#5F6178; line-height:1.55; margin:0 0 24px; }
.xg-post-scope .xg-popup__privacy {
  font-size:11px; color:#5F6178; margin:18px 0 0; line-height:1.5;
  border-top:1px solid #E5E2DC; padding-top:14px; text-align:center;
}
.xg-post-scope .xg-popup__privacy a { color:#16183A; text-decoration:underline; text-underline-offset:2px; }

.xg-post-scope .xg-popup__success { display:none; text-align:center; padding:24px 4px; }
.xg-post-scope .xg-popup-card.is-sent .xg-popup__success { display:block; }
.xg-post-scope .xg-popup-card.is-sent .xg-popup__body { display:none; }
.xg-post-scope .xg-success__icon {
  width:56px; height:56px; margin:0 auto 20px; border-radius:50%;
  background:rgba(217,0,65,.1); display:inline-flex; align-items:center; justify-content:center;
}
.xg-post-scope .xg-success__icon svg { width:24px; height:24px; fill:none; stroke:#D90041; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.xg-post-scope .xg-success__title { font-family:Inter,sans-serif !important; font-size:22px; font-weight:800; letter-spacing:-.3px; color:#16183A; margin:0 0 10px; }
.xg-post-scope .xg-success__text { font-size:14px; color:#5F6178; line-height:1.6; max-width:360px; margin:0 auto 20px; }
.xg-post-scope .xg-success__btn {
  display:inline-flex; align-items:center; gap:8px; background:#D90041; color:#fff;
  text-decoration:none; font-size:14px; font-weight:600; letter-spacing:.02em;
  padding:12px 24px; border-radius:999px; transition:opacity .2s ease;
}
.xg-post-scope .xg-success__btn:hover { opacity:.88; }

/* the popup hosts one of the site's existing CF7 download forms */
.xg-post-scope .xg-popup__form .wpcf7,
.xg-post-scope .xg-popup__form .main-contact-form {
  padding:0 !important; margin:0 !important; background:none !important;
  border:0 !important; box-shadow:none !important; max-width:none !important; width:100% !important;
}
.xg-post-scope .xg-popup__form .wpcf7-response-output { margin:12px 0 0 !important; font-size:13px; }

@media (max-width:640px) {
  .xg-post-scope .download-btn-wrap { padding:0 24px; margin-bottom:40px; }
  .xg-post-scope .floating-cta { bottom:16px; right:16px; left:16px; justify-content:center; max-width:fit-content; margin-right:auto; margin-left:auto; }
  .xg-post-scope .xg-popup-overlay { padding:16px; align-items:flex-start; padding-top:32px; }
  .xg-post-scope .xg-popup-card { padding:36px 24px 28px; border-radius:6px; }
  .xg-post-scope .xg-popup__title { font-size:22px; }
}


/* ===== (AU au.132) staging: pop-up above the sticky header; CF7 form styled as on live ===== */
.xg-post-scope .xg-popup-overlay { z-index:100000 !important; }
.xg-post-scope .toc-list ul { list-style:none; margin:0; padding:0; }
.xg-post-scope .xg-popup__form .wpcf7 p { margin:0 !important; padding:0 !important; }
.xg-post-scope .xg-popup__form .wpcf7 br { display:none; }
.xg-post-scope .xg-popup__form .main-contact-form { display:flex !important; flex-direction:column !important; gap:24px !important; color:#16183A; font-family:Inter,sans-serif; }
.xg-post-scope .xg-popup__form .main-contact-form > * { margin:0 !important; }
.xg-post-scope .xg-popup__form .download-ebook-row { display:grid !important; grid-template-columns:1fr 1fr !important; gap:24px !important; }
.xg-post-scope .xg-popup__form .download-ebook-row2 { display:flex !important; flex-direction:column !important; gap:10px !important; }
.xg-post-scope .xg-popup__form .download-ebook-row > div,
.xg-post-scope .xg-popup__form .download-ebook-row2 > div { min-width:0; display:flex !important; flex-direction:column !important; gap:10px !important; margin:0 !important; padding:0 !important; }
.xg-post-scope .xg-popup__form .labeltext,
.xg-post-scope .xg-popup__form .labeltext p { display:block !important; margin:0 !important; padding:0 !important; font:700 12px/1 Inter,sans-serif !important; letter-spacing:1.5px !important; text-transform:uppercase !important; color:#5F6178 !important; }
.xg-post-scope .xg-popup__form .wpcf7-form-control-wrap { display:block !important; width:100% !important; margin:0 !important; }
.xg-post-scope .xg-popup__form input.wpcf7-form-control:not([type=submit]):not([type=checkbox]):not([type=hidden]) {
  width:100% !important; height:56px !important; margin:0 !important; padding:14px 16px !important; box-sizing:border-box !important;
  background:#fff !important; border:1px solid #E5E2DC !important; border-radius:10px !important; box-shadow:none !important;
  font:400 15px/1.4 Inter,sans-serif !important; color:#16183A !important; transition:border-color .2s, box-shadow .2s;
}
.xg-post-scope .xg-popup__form input.wpcf7-form-control::placeholder { color:#8B8D9F !important; opacity:1 !important; font-weight:400; padding-left:16px !important; }
.xg-post-scope .xg-popup__form input.wpcf7-form-control:not([type=submit]):hover { border-color:#C5C2BC !important; }
.xg-post-scope .xg-popup__form input.wpcf7-form-control:not([type=submit]):focus { border-color:#D90041 !important; box-shadow:0 0 0 3px rgba(217,0,65,.12) !important; outline:none !important; }
.xg-post-scope .xg-popup__form .wpcf7 .checkbox-container { display:flex !important; flex-direction:column !important; gap:8px !important; padding:6px 0 2px !important; }
.xg-post-scope .xg-popup__form .wpcf7-checkbox,
.xg-post-scope .xg-popup__form .wpcf7-list-item { display:block !important; margin:0 !important; padding:0 !important; }
.xg-post-scope .xg-popup__form .wpcf7-checkbox label { display:flex !important; align-items:center !important; gap:10px !important; margin:0 !important; padding:0 !important; cursor:pointer; width:auto !important; }
.xg-post-scope .xg-popup__form input[type=checkbox] {
  -webkit-appearance:none !important; appearance:none !important; position:relative !important; display:inline-block !important; flex-shrink:0;
  width:18px !important; height:18px !important; min-width:18px !important; margin:0 !important; padding:0 !important; opacity:1 !important; clip:auto !important;
  border:1.5px solid #C5C2BC !important; border-radius:4px !important; background:#fff !important; cursor:pointer; transition:border-color .15s, background .15s;
}
.xg-post-scope .xg-popup__form input[type=checkbox]:hover { border-color:#D90041 !important; }
.xg-post-scope .xg-popup__form input[type=checkbox]:checked { background:#D90041 !important; border-color:#D90041 !important; }
.xg-post-scope .xg-popup__form input[type=checkbox]:checked::after { content:""; position:absolute; left:5px; top:1px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.xg-post-scope .xg-popup__form .wpcf7-list-item-label { display:inline-block !important; position:static !important; padding:0 !important; margin:0 !important; font:500 13px/1 Inter,sans-serif !important; color:#5F6178 !important; letter-spacing:0 !important; }
.xg-post-scope .xg-popup__form .wpcf7-list-item-label::before,
.xg-post-scope .xg-popup__form .wpcf7-list-item-label::after { display:none !important; content:none !important; }
.xg-post-scope .xg-popup__form .book-now-btn { position:relative; display:flex !important; flex-direction:column !important; align-items:center !important; gap:8px !important; margin-top:-6px !important; }
.xg-post-scope .xg-popup__form .book-now-btn > p { text-align:center !important; }
.xg-post-scope .xg-popup__form .wpcf7 form input.wpcf7-submit.wpcf7-submit {
  display:inline-block !important; width:auto !important; min-width:240px; height:auto !important; margin:25px 0 0 !important; padding:16px 44px !important;
  border:0 !important; border-radius:999px !important; background:linear-gradient(135deg,#D90041 0%,#A1002F 100%) !important; color:#fff !important;
  font:700 13px/1 Inter,sans-serif !important; letter-spacing:1.4px !important; text-transform:uppercase; cursor:pointer;
  box-shadow:0 6px 18px -6px rgba(217,0,65,.45) !important; transition:transform .15s, box-shadow .2s, opacity .2s;
}
.xg-post-scope .xg-popup__form input.wpcf7-submit:hover { transform:translateY(-1px); box-shadow:0 10px 24px -8px rgba(217,0,65,.55) !important; }
.xg-post-scope .xg-popup__form .wpcf7-spinner { position:absolute !important; right:0; top:35px; margin:0 !important; }
.xg-post-scope .xg-popup__form .warranty-div { display:flex !important; justify-content:center !important; align-items:center !important; gap:6px !important; margin:0 !important; height:14px; color:#8B8D9F; font-size:12px; line-height:1.4; }
.xg-post-scope .xg-popup__form .warranty-div p { display:flex !important; align-items:center !important; gap:6px !important; }
.xg-post-scope .xg-popup__form .warranty-div img { width:13px; height:17px; margin:0; opacity:.45; }
.xg-post-scope .xg-popup__form #warranty { font:400 13px/1.5 Inter,sans-serif !important; color:#000 !important; opacity:.4; height:14px !important; line-height:14px !important; }
.xg-post-scope .xg-popup__form .wpcf7-response-output:empty,
.xg-post-scope .xg-popup__form form.init .wpcf7-response-output { display:none !important; }
.xg-post-scope .xg-popup__form .wpcf7-not-valid-tip { font-size:12px; color:#D90041; margin-top:6px; }
@media (max-width:768px) {
  .xg-post-scope .xg-popup__form .download-ebook-row { grid-template-columns:1fr !important; gap:24px !important; }
  .xg-post-scope .xg-popup__form input.wpcf7-form-control:not([type=submit]):not([type=checkbox]):not([type=hidden]) { font-size:16px !important; padding:12px 14px !important; }
  .xg-post-scope .xg-popup__form .book-now-btn { align-items:stretch !important; }
  .xg-post-scope .xg-popup__form .book-now-btn > .warranty-div.warranty-div { margin-top:24px !important; }
  .xg-post-scope .xg-popup__form .wpcf7 form input.wpcf7-submit.wpcf7-submit { width:100% !important; min-width:0 !important; padding:16px 24px !important; text-align:center; }
}
/* the site-wide h2 clamp(…) !important for ≤768px doesn't exist on live */
@media (max-width:768px) { .xg-post-scope .xg-popup__title { font-size:26px !important; line-height:1.2 !important; } }
@media (max-width:640px) { .xg-post-scope .xg-popup__title { font-size:22px !important; } }
