#sahana-global-popups .sgp-overlay[hidden]{display:none!important}
.sgp-overlay{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:24px;isolation:isolate}
.sgp-backdrop{position:absolute;inset:0;background:rgba(9,17,27,.72);backdrop-filter:blur(6px)}
.sgp-dialog{position:relative;width:min(100%,640px);max-height:min(88vh,900px);overflow:auto;background:#fff;color:#161b22;border-radius:20px;box-shadow:0 24px 85px rgba(0,0,0,.3);display:flex;flex-direction:column;outline:none;animation:sgp-enter .32s cubic-bezier(.2,.8,.2,1) both}
.sgp-dialog[data-sgp-width="320"]{max-width:320px}
.sgp-dialog[data-sgp-width="480"]{max-width:480px}
.sgp-dialog[data-sgp-width="640"]{max-width:640px}
.sgp-dialog[data-sgp-width="800"]{max-width:800px}
.sgp-dialog[data-sgp-width="1000"]{max-width:1000px}
.sgp-layout-split .sgp-dialog{flex-direction:row;max-width:900px}
.sgp-layout-split .sgp-media{flex:0 0 42%}
.sgp-layout-split .sgp-body{flex:1}
.sgp-layout-drawer{justify-content:flex-end;padding:0}
.sgp-layout-drawer .sgp-dialog{height:100vh;max-height:100vh;border-radius:0;max-width:500px;animation-name:sgp-drawer}
.sgp-media img{display:block;width:100%;height:100%;max-height:320px;object-fit:cover}
/* Vendor popup logo: keep its original aspect ratio and prevent oversized artwork. */
.sgp-overlay[data-sgp-id="before-you-go"] .sgp-media{display:flex;justify-content:center;align-items:center;padding:24px 24px 0;flex:0 0 auto}
.sgp-overlay[data-sgp-id="before-you-go"] .sgp-media img{width:auto;max-width:min(100%,180px);height:auto;max-height:90px;object-fit:contain}
.sgp-body{padding:clamp(24px,4vw,48px)}
.sgp-close {
    position: absolute;
    right: 14px;
    top: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f0f1f2;
    color: #040404;
    font-size: 26px;
    cursor: pointer;
    padding: 0 !important;
    line-height: 0px;
}
.sgp-eyebrow{font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#2f8989;margin:0 0 14px}
.sgp-heading {
    font-size: clamp(18px,1vw,22px) !important;
    line-height: 1.15;
    margin: 0 0 16px;
    color: inherit;
}
.sgp-content{line-height:1.65;margin-bottom:24px}
.sgp-form{margin:18px 0 22px}
.sgp-form form{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}
.sgp-form .wpcf7-form-control-wrap{display:block;flex:1 1 180px}
.sgp-form input[type="email"],.sgp-form input[type="text"]{width:100%;min-height:54px;padding:12px 15px;border:1px solid #ddd;border-radius:9px;background:#fff;color:#040404}
.sgp-form input[type="submit"]{min-height:54px;padding:12px 25px;border-radius:999px;background:#040404;color:#fff;cursor:pointer}
.sgp-fine-print{margin:12px 0 0;font-size:14px;line-height:1.5;color:inherit}
.sgp-primary,.sgp-secondary{display:inline-flex;align-items:center;justify-content:center;margin:0 12px 12px 0;text-decoration:none}
.sgp-primary{padding:13px 22px;background:#040404;color:#fff;border-radius:7px}
.sgp-secondary{color:inherit;text-decoration:underline;text-underline-offset:4px}
.sgp-theme-dark .sgp-dialog{background:#111b23;color:#fff}
.sgp-theme-dark .sgp-close{background:#2b3942;color:#fff}
@keyframes sgp-enter{from{opacity:0;transform:translateY(28px) scale(.975)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes sgp-drawer{from{opacity:.7;transform:translateX(80px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:767px){.sgp-overlay{padding:12px}.sgp-layout-split .sgp-dialog{flex-direction:column}.sgp-layout-split .sgp-media{flex:auto}.sgp-layout-split .sgp-media img{max-height:180px}.sgp-body{padding:26px}.sgp-layout-drawer{padding:0}}
@media(prefers-reduced-motion:reduce){.sgp-dialog{animation:none!important}.sgp-backdrop{backdrop-filter:none}}
