/* ==========================================================================
   Exit Intent Modal Popup Styling - MyDesign360
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* Modal Overlay Backdrop */
.exit-intent-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 11, 33, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.exit-intent-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Modal Dialog Box */
.exit-intent-dialog {
    position: relative;
    width: 100%;
    max-width: 940px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 30px 70px -15px rgba(22, 14, 55, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: scale(0.88) translateY(20px);
    opacity: 0;
    transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    box-sizing: border-box;
}

.exit-intent-overlay.active .exit-intent-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.exit-intent-dialog *,
.exit-intent-dialog *::before,
.exit-intent-dialog *::after {
    box-sizing: border-box;
}

/* Close Button (Top-Right) */
.eip-close-btn {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e7e6f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 3px 10px rgba(25, 18, 55, 0.08);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    outline: none;
}

.eip-close-btn:hover {
    transform: scale(1.08) rotate(90deg);
    background-color: #f7f5fd;
    box-shadow: 0 4px 14px rgba(25, 18, 55, 0.16);
}

.eip-close-btn svg {
    display: block;
    width: 15px;
    height: 15px;
}

/* Background Decorative Artwork */
.eip-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Left & Right swooshes */
.eip-curve-left {
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(195, 206, 244, 0.45) 0%, rgba(240, 243, 255, 0) 70%);
    filter: blur(20px);
}

.eip-swoosh-left-svg {
    position: absolute;
    bottom: -20px;
    left: -40px;
    width: 280px;
    height: 280px;
    opacity: 0.85;
}

.eip-curve-right {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 205, 242, 0.45) 0%, rgba(250, 245, 255, 0) 70%);
    filter: blur(25px);
}

.eip-swoosh-right-svg {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 300px;
    height: 300px;
    opacity: 0.75;
}

/* Decorative Dot Patterns */
.eip-dots {
    position: absolute;
    display: grid;
    pointer-events: none;
    z-index: 2;
}

.eip-dots span {
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background-color: #9f96c8;
    opacity: 0.55;
}

.eip-dots-topleft {
    top: 25px;
    left: 28px;
    grid-template-columns: repeat(4, 5px);
    grid-gap: 12px;
}

.eip-dots-right {
    top: 50%;
    right: 28px;
    transform: translateY(-50%);
    grid-template-columns: repeat(3, 5px);
    grid-gap: 13px;
}

/* Main Split Columns (Offer Body) */
.eip-main-content {
    position: relative;
    display: flex;
    align-items: stretch;
    z-index: 2;
    padding: 34px 10px 24px 10px;
}

/* Offer Column (Half width) */
.eip-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 32px 16px 32px;
    position: relative;
    z-index: 2;
}

/* Top Illustration Badge */
.eip-hero-icon-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eip-hero-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(45, 25, 80, 0.08);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.eip-col:hover .eip-hero-circle {
    transform: scale(1.06);
}

.eip-col-logo .eip-hero-circle {
    background: linear-gradient(135deg, #e4ecfb 0%, #d4e0f8 100%);
}

.eip-col-web .eip-hero-circle {
    background: linear-gradient(135deg, #f5e9f8 0%, #ebd7f3 100%);
}

/* Orbit accents around top hero circle */
.eip-orbit-accent {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.eip-col-logo .eip-orbit-accent {
    border: 1.5px dashed rgba(80, 60, 140, 0.25);
    animation: eipSpin 20s linear infinite;
}

.eip-col-web .eip-orbit-accent {
    border: 1.5px dashed rgba(120, 45, 130, 0.25);
    animation: eipSpinReverse 22s linear infinite;
}

@keyframes eipSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes eipSpinReverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Hero Icon inside circle */
.eip-hero-icon {
    display: block;
    transition: transform 0.3s ease;
}

.eip-col:hover .eip-hero-icon {
    transform: scale(1.1);
}

/* Price Kicker Badge */
.eip-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4px;
}

.eip-kicker-line {
    width: 26px;
    height: 1.5px;
    background-color: #9297ad;
    border-radius: 2px;
}

.eip-kicker-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #555b76;
    text-transform: uppercase;
}

/* Big Price Display */
.eip-price {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    margin: 2px 0 6px 0;
    letter-spacing: -1.5px;
}

.eip-col-logo .eip-price {
    color: #211c4e;
}

.eip-col-web .eip-price {
    color: #24194d;
}

.eip-price .eip-currency {
    font-size: 40px;
    font-weight: 800;
    vertical-align: super;
    margin-right: -2px;
}

/* Main Offer Title */
.eip-title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.eip-col-logo .eip-title {
    color: #1e1a47;
}

.eip-col-logo .eip-title-accent {
    color: #651f72;
}

.eip-col-web .eip-title {
    color: #1f1b46;
}

.eip-col-web .eip-title-sub {
    display: block;
    font-size: 19px;
    font-weight: 800;
    color: #671f74;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

/* Subtitle Line */
.eip-subtitle {
    font-size: 13.5px;
    color: #5d617a;
    font-weight: 500;
    margin: 0 0 20px 0;
    line-height: 1.35;
}

/* 3 Feature Badges in a Row */
.eip-features {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 340px;
    gap: 8px;
    margin-bottom: 24px;
}

.eip-feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.eip-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(35, 20, 70, 0.05);
}

.eip-col:hover .eip-feature-icon {
    transform: translateY(-2px);
}

.eip-col-logo .eip-feature-icon {
    background: #eef2fb;
}

.eip-col-web .eip-feature-icon {
    background: #f8eff9;
}

.eip-feature-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #211e3f;
    line-height: 1.25;
    margin: 0;
}

/* Call to Action Button */
.eip-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    padding: 13px 26px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    user-select: none;
}

.eip-col-logo .eip-cta-btn {
    background: linear-gradient(135deg, #2a2562 0%, #1b1746 100%);
    box-shadow: 0 8px 22px rgba(33, 27, 78, 0.35);
}

.eip-col-logo .eip-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(33, 27, 78, 0.45);
    filter: brightness(1.08);
}

.eip-col-web .eip-cta-btn {
    background: linear-gradient(135deg, #6c1f72 0%, #4a1352 100%);
    box-shadow: 0 8px 22px rgba(100, 26, 108, 0.35);
}

.eip-col-web .eip-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(100, 26, 108, 0.45);
    filter: brightness(1.08);
}

.eip-cta-btn .eip-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.eip-cta-btn:hover .eip-arrow {
    transform: translateX(4px);
}

/* Center Dividing Line & "OR" Badge */
.eip-center-divider {
    position: relative;
    width: 1px;
    background-color: #e4e6f2;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.eip-or-badge {
    position: absolute;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #37236e 0%, #251652 100%);
    color: #ffffff;
    border-radius: 50%;
    border: 3.5px solid #ffffff;
    box-shadow: 0 4px 14px rgba(35, 18, 70, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 5;
    user-select: none;
}

/* Bottom Trust Bar */
.eip-footer-bar {
    position: relative;
    background: #fbfaff;
    border-top: 1px solid #ebebf5;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 3;
}

.eip-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eip-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eip-trust-text {
    font-size: 13px;
    font-weight: 600;
    color: #242144;
    letter-spacing: 0.1px;
}

.eip-trust-sep {
    width: 1px;
    height: 24px;
    background-color: #e1e3f0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 900px) {
    .exit-intent-dialog {
        max-width: 96%;
    }
    .eip-col {
        padding: 10px 20px 16px 20px;
    }
    .eip-price {
        font-size: 54px;
    }
    .eip-title {
        font-size: 23px;
    }
    .eip-col-web .eip-title-sub {
        font-size: 17px;
    }
    .eip-cta-btn {
        max-width: 220px;
        padding: 11px 20px;
    }
}

@media (max-width: 768px) {
    .exit-intent-overlay {
        padding: 12px;
        align-items: flex-start;
        overflow-y: auto;
    }
    .exit-intent-dialog {
        margin: 20px auto;
        border-radius: 18px;
    }
    .eip-main-content {
        flex-direction: column;
        padding: 42px 14px 18px 14px;
    }
    .eip-center-divider {
        width: 100%;
        height: 1px;
        margin: 24px 0;
    }
    .eip-or-badge {
        width: 38px;
        height: 38px;
        font-size: 11.5px;
    }
    .eip-dots {
        display: none;
    }
    .eip-footer-bar {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }
    .eip-trust-sep {
        display: none;
    }
}
