/* =========================================
   ECARE INFOWAY — EXIT INTENT POPUP
   Single White Background + Red Accents
========================================= */

:root {
    --exit-red: #F6114A;
    --exit-red-hover: #C80B3A;
    --exit-white: #FFFFFF;
    --exit-dark: #17212B;
    --exit-text: #626B73;
    --exit-border: #E9E9E9;
}

/* =========================================
   OVERLAY
========================================= */

.exit-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    overflow-y: auto;
}

.exit-popup-overlay.active {
    display: flex;
    animation: exitFadeIn .3s ease both;
}

/* =========================================
   MAIN POPUP — ONE WHITE BACKGROUND
========================================= */

.exit-popup-box {
    position: relative;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    width: min(100%, 790px);
    margin: auto;
    background: var(--exit-white) !important;
    background-image: none !important;
    border: 1px solid var(--exit-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .12);
    animation: exitSlideUp .4s cubic-bezier(.2, .8, .2, 1) both;
}

/* =========================================
   CLOSE BUTTON
========================================= */

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--exit-border);
    border-radius: 50%;
    background: var(--exit-white);
    color: var(--exit-dark);
    cursor: pointer;
    transition: all .25s ease;
}

.exit-popup-close:hover {
    color: var(--exit-white);
    background: var(--exit-red);
    border-color: var(--exit-red);
    transform: rotate(90deg);
}

/* =========================================
   LEFT VISUAL PANEL
========================================= */

.exit-popup-visual {
    position: relative;
    display: flex;
    align-items: center;
    padding: 42px 34px;
    min-height: 440px;
    background: var(--exit-white) !important;
    background-image: none !important;
    color: var(--exit-dark);
    border-right: 1px solid var(--exit-border);
    overflow: hidden;
}

/* Remove decorative coloured shapes */

.exit-popup-visual::before,
.exit-popup-visual::after,
.exit-shape {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
}

.exit-visual-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    background: var(--exit-white) !important;
}

/* =========================================
   ICON
========================================= */

.exit-visual-icon {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 36px;
    border: 1px solid var(--exit-border);
    border-radius: 15px;
    background: var(--exit-white) !important;
    color: var(--exit-dark);
}

.exit-visual-icon svg {
    width: 30px;
    height: 30px;
    color: var(--exit-dark);
}

/* =========================================
   LEFT SIDE CONTENT
========================================= */

.exit-stats {
    display: grid;
    gap: 23px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.exit-stats li {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-left: 15px;
    border-left: 2px solid var(--exit-border);
}

.exit-stats strong {
    color: var(--exit-dark);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.04em;
}

.exit-stats span {
    color: var(--exit-text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .04em;
}

/* =========================================
   RIGHT CONTENT PANEL
========================================= */

.exit-popup-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 42px 38px;
    background: var(--exit-white) !important;
    background-image: none !important;
    text-align: left;
}

/* =========================================
   TAG
========================================= */

.exit-popup-tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 9px;
    margin-bottom: 21px;
    color: var(--exit-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.exit-popup-tag i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--exit-red);
}

/* =========================================
   HEADING
========================================= */

.exit-popup-content h2 {
    margin: 0 0 24px;
    color: var(--exit-dark);
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.045em;
}

.exit-popup-content h2 em {
    color: var(--exit-red);
    font-style: normal;
}

/* Description */

.exit-popup-content p {
    margin: 0 0 23px;
    color: var(--exit-text);
    font-size: 14px;
    line-height: 1.8;
}

/* =========================================
   SERVICE POINTS — RED BULLETS
========================================= */

.exit-popup-points {
    display: grid;
    gap: 15px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.exit-popup-points li {
    position: relative;
    padding-left: 28px;
    color: #35404A;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.exit-popup-points li::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--exit-red);
    border-radius: 50%;
    background: var(--exit-white);
}

.exit-popup-points li::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--exit-red);
}

/* =========================================
   CTA BUTTON — RED
========================================= */

.exit-popup-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--exit-red);
    border-radius: 6px;
    background: var(--exit-red);
    color: var(--exit-white) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .25s ease;
}

.exit-popup-cta svg {
    width: 18px;
    height: 18px;
    transition: transform .25s ease;
}

.exit-popup-cta:hover {
    background: var(--exit-red-hover);
    border-color: var(--exit-red-hover);
    color: var(--exit-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(246, 17, 74, .18);
}

.exit-popup-cta:hover svg {
    transform: translateX(4px);
}

/* =========================================
   DISMISS BUTTON
========================================= */

.exit-popup-dismiss {
    display: block;
    margin: 18px auto 0;
    padding: 5px;
    border: 0;
    background: transparent;
    color: #89919A;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: color .2s ease;
}

.exit-popup-dismiss:hover {
    color: var(--exit-red);
    text-decoration: underline;
}

/* =========================================
   ACCESSIBILITY
========================================= */

.exit-popup-close:focus-visible,
.exit-popup-cta:focus-visible,
.exit-popup-dismiss:focus-visible {
    outline: 3px solid rgba(246, 17, 74, .25);
    outline-offset: 4px;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes exitFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes exitSlideUp {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   RESPONSIVE — TABLET & MOBILE
========================================= */

@media (max-width: 720px) {

    .exit-popup-overlay {
        padding: 16px;
    }

    .exit-popup-box {
        grid-template-columns: 1fr;
        max-width: 440px;
        border-radius: 13px;
    }

    .exit-popup-visual {
        min-height: auto;
        padding: 24px 25px;
        border-right: 0;
        border-bottom: 1px solid var(--exit-border);
    }

    .exit-visual-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 20px;
        border-radius: 12px;
    }

    .exit-visual-icon svg {
        width: 24px;
        height: 24px;
    }

    .exit-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .exit-stats li {
        padding-left: 9px;
    }

    .exit-stats strong {
        font-size: 18px;
    }

    .exit-stats span {
        font-size: 9px;
        letter-spacing: 0;
    }

    .exit-popup-content {
        padding: 29px 25px 25px;
    }

    .exit-popup-content h2 {
        font-size: 27px;
    }

    .exit-popup-content p {
        font-size: 13px;
    }

    .exit-popup-points {
        gap: 12px;
        margin-bottom: 22px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .exit-popup-overlay {
        padding: 10px;
    }

    .exit-popup-visual {
        padding: 20px;
    }

    .exit-popup-content {
        padding: 25px 20px 22px;
    }

    .exit-popup-content h2 {
        font-size: 24px;
    }

    .exit-stats strong {
        font-size: 16px;
    }

    .exit-stats span {
        font-size: 8px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    .exit-popup-overlay,
    .exit-popup-box,
    .exit-popup-cta,
    .exit-popup-close {
        animation: none !important;
        transition: none !important;
    }
}