/* ── Overlay ────────────────────────────────────────────────────── */
.site-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 40, .55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity .25s cubic-bezier(.4, 0, .2, 1);
}

.site-popup-overlay.is-visible {
    opacity: 1;
}

.site-popup-overlay[hidden] {
    display: none !important;
}

/* ── Dialog box ─────────────────────────────────────────────────── */
.site-popup {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(30px) scale(.97);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    padding: 24px;
    background-color: #fff;
}

.site-popup.thank-you-section-visible {
    padding: 30px;
    gap: 10px;
    position: relative;
    width: 440px;
    background: #FFFFFF;
    border-radius: 24px;
}

.site-popup.thank-you-section-visible::before,
.site-popup.thank-you-section-visible::after {
    content: "";
    display: none;
}

.thank-you-section-visible .site-popup__right {
    padding: 0;
    width: 100%;
}



.site-popup::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    left: -200px;
    top: -200px;
    background: rgba(41, 129, 196, 0.5);
    filter: blur(200px);
}

.site-popup::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    right: -225px;
    bottom: -225px;
    background: rgba(41, 129, 196, 0.5);
    filter: blur(200px);
}

.site-popup-overlay.is-visible .site-popup {
    transform: translateY(0) scale(1);
}

/* ── Close button ───────────────────────────────────────────────── */
.site-popup__close {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 32px;
    height: 32px;
    right: 10px;
    top: 10px;
    background: #FFEEEE !important;
    border-radius: 40px;
    cursor: pointer;
    outline: none;
    outline-color: inherit;
}

.site-popup__close:hover {
    transform: rotate(90deg);
}


/* ── LEFT PANEL ─────────────────────────────────────────────────── */
.site-popup__left {
    background: #2981C4 url(../images/site-popup__left_bg.png) no-repeat center center;
    border-radius: 24px;
    padding: 24px;
    flex: 0 0 370px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    z-index: 1;
}



.site-popup__emoji {
    font-weight: 600;
    font-size: 50px;
    line-height: 75px;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.site-popup__heading {
    font-weight: 600;
    font-size: 30px;
    line-height: 38px;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.site-popup__subtext {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #E8E8E8;
    margin-bottom: 24px;
}

.site-popup__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-popup__features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.site-popup__features li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ── RIGHT PANELS — shared ──────────────────────────────────────── */
.site-popup__right {
    flex: 1;
    padding: 28px 0 0 30px;
    display: flex;
    flex-direction: column;
}

.site-popup__right form>p {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 24px;
    position: relative;
    z-index: 1;
}

.site-popup__right form .wpcf7-form-control-wrap {
    width: calc(50% - 10px);
}

.site-popup__right form .wpcf7-form-control-wrap input,
.site-popup__right form .wpcf7-form-control-wrap textarea {
    padding: 12px 16px;
    width: 100%;
    height: 48px;
    background: #FFFFFF;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #000;
    outline: none;
    outline-color: inherit;
    display: flex;
}

.site-popup__right form .wpcf7-form-control-wrap[data-name="message"] {
    width: 100%;
}

.site-popup__right form .wpcf7-form-control-wrap textarea {
    height: 120px;
}

.site-popup__right[hidden] {
    display: none !important;
}

.site-popup__no-form {
    color: var(--popup-text-muted);
    text-align: center;
    padding: 2rem;
}

/* ── CF7 FORM OVERRIDES inside popup ────────────────────────────── */
#site-popup .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Two-column rows  (add class="form-row" to CF7 <p> wrappers) */
#site-popup .wpcf7-form .form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

#site-popup .wpcf7-form .form-row .half {
    flex: 1;
}

/* All inputs / selects / textarea */


/* Validation error state */
#site-popup .wpcf7-not-valid {
    border-color: #e53935 !important;
}

#wpcf7-f14760-o2 .wpcf7-form .wpcf7-not-valid-tip {
    display: none;
}

#site-popup .wpcf7-not-valid-tip,
#site-popup label.error {
    color: #e53935;
    font-size: .75rem;
    margin-top: 4px;
    display: none !important;
}

#site-popup .wpcf7-response-output {
    display: none !important;
}

/* reCAPTCHA row */
#site-popup .popup-captcha-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* Submit button */
#site-popup .wpcf7-submit,
#site-popup input[type="submit"] {
    padding: 12px 24px;
    width: 120px;
    height: 48px;
    background: #2981C4;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
    border: 0;
    outline: none;
    outline-color: inherit;
}



/* ── CONFIRMATION PANEL ──────────────────────────────────────────── */
.site-popup__confirmation {
    align-items: center;
    justify-content: center;
}

.site-popup__confirm-inner {
    text-align: center;
}

.site-popup__confirm-icon {
    margin-bottom: 48px;
    display: flex;
    justify-content: center;
}


.site-popup__confirm-title {
    font-weight: 600;
    font-size: 30px;
    line-height: 38px;
    text-align: center;
    color: #292930;
    margin-bottom: 8px;
}

.site-popup__confirm-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    color: #616161;
    margin-bottom: 24px;
}

.site-popup__confirm-text br {
    display: none;
}

.site-popup__confirm-btn {
    padding: 12px 24px;
    height: 48px;
    background: #2981C4;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    display: inline-flex;
}

#site-popup .wpcf7-submit:hover,
#site-popup input[type="submit"]:hover,
.site-popup__confirm-btn:hover {
    background-color: #002033;
    color: #fff;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {

    .site-popup__left {
        flex: 0 0 315px;
    }

    .site-popup__heading {
        font-size: 26px;
    }

    .site-popup__right {}

    #site-popup .wpcf7-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    #site-popup .wpcf7-form .form-row .half {
        margin-bottom: 14px;
    }
}

@media (max-width: 767px) {
    .site-popup__left {
        order: 2;
        flex: none;
    }

    .site-popup {
        flex-direction: column;
    }

    .site-popup__right {
        order: 1;
        padding: 28px 0 0;
    }

    .site-popup {
        max-height: 92vh;
        overflow: auto;
        padding: 24px 15px;
    }
}

@media (max-width: 480px) {
    .site-popup-overlay {
        align-items: flex-end;
    }


}