/* Tecspree Exit Popup */

.tep-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.tep-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tep-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 18, .72);
    backdrop-filter: blur(4px);
}

.tep-modal {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .30);
    transform: translateY(18px) scale(.985);
    transition: transform .25s ease;
}

.tep-popup.is-open .tep-modal {
    transform: translateY(0) scale(1);
}

.tep-grid {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 550px;
}

.tep-image-column {
    min-height: 100%;
    background: #eef1f5;
}

.tep-image,
.tep-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 550px;
}

.tep-image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.tep-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 35px;
    background:
        linear-gradient(135deg, rgba(255,99,0,.12), rgba(17,24,39,.05)),
        #f5f6f8;
    color: #657080;
    line-height: 1.6;
}

.tep-form-column {
    position: relative;
    padding: 48px 46px 38px;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
}

.tep-label {
    margin: 0 0 12px;
    color: #0767d2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.tep-form-column h2 {
    margin: 0 0 13px;
    color: #131923;
    font-size: clamp(26px, 3vw, 35px);
    line-height: 1.18;
    font-weight: 750;
}

.tep-description {
    margin: 0 0 22px;
    color: #697384;
    font-size: 15px;
    line-height: 1.7;
}

.tep-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f3f6;
    color: #161b22;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.tep-close:hover {
    background: #0767d2;
    color: #fff;
    transform: rotate(3deg);
}

body.tep-no-scroll {
    overflow: hidden;
}

/* WPForms refinements */

.tep-form-wrap .wpforms-container {
    margin: 0 !important;
}

.tep-form-wrap .wpforms-field {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.tep-form-wrap .wpforms-field-label {
    margin-bottom: 6px !important;
    color: #222a35 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
}

.tep-form-wrap input[type="text"],
.tep-form-wrap input[type="email"],
.tep-form-wrap input[type="tel"],
.tep-form-wrap input[type="number"],
.tep-form-wrap input[type="url"],
.tep-form-wrap select,
.tep-form-wrap textarea {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 47px !important;
    padding: 10px 13px !important;
    border: 1px solid #d8dee6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tep-form-wrap textarea {
    min-height: 88px !important;
}

.tep-form-wrap input:focus,
.tep-form-wrap select:focus,
.tep-form-wrap textarea:focus {
    border-color: #0767d2 !important;
    outline: 0 !important;
    box-shadow: 0 0 0 3px rgba(7, 103, 210, 0.08) !important;
}

.tep-form-wrap button[type="submit"],
.tep-form-wrap .wpforms-submit {
    width: 100% !important;
    min-height: 49px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #0767d2 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    cursor: pointer;
}

.tep-form-wrap button[type="submit"]:hover,
.tep-form-wrap .wpforms-submit:hover {
    background: #0767d2 !important;
}

@media (max-width: 820px) {
    .tep-popup {
        padding: 14px;
    }

    .tep-modal {
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        border-radius: 15px;
    }

    .tep-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tep-image-column {
        min-height: 220px;
        max-height: 260px;
    }

    .tep-image,
    .tep-image-placeholder {
        min-height: 220px;
        height: 240px;
    }

    .tep-form-column {
        padding: 30px 24px 24px;
        max-height: none;
        overflow: visible;
    }

    .tep-form-column h2 {
        font-size: 25px;
        padding-right: 30px;
    }

    .tep-close {
        top: 10px;
        right: 10px;
        background: #fff;
        box-shadow: 0 3px 14px rgba(0,0,0,.15);
    }
}

@media (max-width: 480px) {
    .tep-image-column {
        min-height: 175px;
        max-height: 200px;
    }

    .tep-image,
    .tep-image-placeholder {
        min-height: 175px;
        height: 190px;
    }

    .tep-form-column {
        padding: 25px 20px 20px;
    }

    .tep-description {
        font-size: 14px;
        line-height: 1.55;
    }
}