/* Exit-Intent Popup Styles */

/* Overlay */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.exit-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    padding: 2.5rem;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(6, 182, 212, 0.1);
}

.exit-popup-overlay.active .exit-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #64748b;
    transition: all 0.2s;
}

.exit-popup-close:hover {
    background: #e2e8f0;
    color: #334155;
    transform: rotate(90deg);
}

/* Header */
.exit-popup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.exit-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
    }
}

.exit-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.exit-popup-subtitle {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
}

.exit-popup-value {
    display: inline-block;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Form */
.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.exit-popup-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.exit-popup-input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
    z-index: 1;
    pointer-events: none;
}

.exit-popup .exit-popup-input {
    width: 100%;
    padding: 1rem 1rem 1rem 56px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background: white;
    box-sizing: border-box;
}

.exit-popup .exit-popup-input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.exit-popup .exit-popup-input::placeholder {
    color: #9ca3af;
}

/* Submit Button */
.exit-popup-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.exit-popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
}

.exit-popup-submit:active {
    transform: translateY(0);
}

.exit-popup-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Privacy Note */
.exit-popup-privacy {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.exit-popup-privacy i {
    margin-right: 0.25rem;
}

/* Success State */
.exit-popup-success {
    display: none;
    text-align: center;
    padding: 2rem 0;
}

.exit-popup-success.show {
    display: block;
}

.exit-popup-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: bounceIn 0.5s;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.exit-popup-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.exit-popup-success-text {
    color: #6b7280;
    font-size: 1rem;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .exit-popup {
        padding: 1.75rem;
        width: 95%;
        max-width: none;
        border-radius: 20px;
    }

    .exit-popup-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .exit-popup-title {
        font-size: 1.25rem;
    }

    .exit-popup-subtitle {
        font-size: 0.9rem;
    }

    .exit-popup .exit-popup-input {
        padding: 0.875rem 0.875rem 0.875rem 52px;
        font-size: 0.95rem;
    }

    .exit-popup-submit {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}