/* ── GDS Demo Popup ───────────────────────────────────────────────────── */

/* "See GDS in 5 Minutes" trigger — text-link style matching image */
#gds-see-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: rgb(54, 54, 54);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
    vertical-align: middle;
}

#gds-see-demo-btn .gdsd-play-icon {
    flex-shrink: 0;
    color: rgb(12, 125, 171);
}

/* ── Overlay ─────────────────────────────────────────────────────────── */
#gds-demo-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#gds-demo-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

#gds-demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 28, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* ── Modal ───────────────────────────────────────────────────────────── */
#gds-demo-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(60vw - 32px);
    margin: 16px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    transform: translateY(22px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: calc(80vh - 32px);
    display: flex;
    flex-direction: column;
}
#gds-demo-overlay.is-open #gds-demo-modal {
    transform: translateY(0) scale(1);
}

/* ── Close button ────────────────────────────────────────────────────── */
#gds-demo-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    padding: 0;
    transition: background 0.15s;
}
#gds-demo-close:hover { background: rgba(0, 0, 0, 0.72); }

/* ── Video wrapper ───────────────────────────────────────────────────── */
.gds-demo-video-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    flex-shrink: 0;
}
.gds-demo-video-wrap .wistia_embed {
    width: 100% !important;
    height: 100% !important;
    background: #fff;
}

/* ── Book-a-Demo CTA bar ─────────────────────────────────────────────── */
.gds-demo-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    background: #fff;
    border-top: 1px solid #e8ecf0;
    flex-shrink: 0;
}

.gds-demo-cta__icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: #e8f4fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0C7DAB;
}

.gds-demo-cta__text {
    flex: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e3a5f;
    line-height: 1.3;
}

.gds-demo-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #0C7DAB;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.18s;
    line-height: 1;
}
.gds-demo-cta__btn:hover { background: #0a6a92; }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    #gds-see-demo-btn { font-size: 14px; }

    .gds-demo-cta {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 10px;
    }
    .gds-demo-cta__icon { display: none; }
    .gds-demo-cta__btn  { width: 100%; justify-content: center; padding: 12px; }
}
