/* StackCart Email Capture Styles — Exit-Intent Popup + Footer Signup */

/* ===== EXIT-INTENT OVERLAY ===== */
#sc-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

#sc-exit-overlay.sc-visible {
    opacity: 1;
}

/* ===== POPUP CARD ===== */
.sc-exit-popup {
    background: #111118;
    border: 1px solid #222233;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.sc-visible .sc-exit-popup {
    transform: translateY(0) scale(1);
}

.sc-exit-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: #55556a;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    transition: color 0.2s;
}

.sc-exit-close:hover {
    color: #e8e8ed;
}

.sc-exit-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    border: 1px solid rgba(0, 255, 136, 0.25);
    border-radius: 100px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    color: #00ff88;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    background: rgba(0, 255, 136, 0.06);
}

.sc-exit-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #e8e8ed;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.sc-exit-title span {
    color: #00ff88;
}

.sc-exit-desc {
    color: #8888a0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== POPUP FORM ===== */
.sc-exit-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sc-exit-input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0a0a0f;
    border: 1px solid #222233;
    border-radius: 10px;
    color: #e8e8ed;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.sc-exit-input:focus {
    border-color: #00ff88;
}

.sc-exit-input::placeholder {
    color: #55556a;
}

.sc-exit-btn {
    width: 100%;
    padding: 0.85rem;
    background: #00ff88;
    color: #0a0a0f;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.sc-exit-btn:hover {
    background: #00cc6a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.sc-exit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== POPUP SUCCESS STATE ===== */
.sc-exit-success {
    padding: 1rem 0;
}

.sc-exit-check {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    color: #00ff88;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.sc-exit-success p {
    color: #e8e8ed;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.sc-exit-fine {
    color: #55556a;
    font-size: 0.75rem;
    margin-top: 1rem;
}

/* ===== FOOTER SIGNUP ===== */
.sc-footer-signup {
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222233;
}

.sc-footer-signup-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #e8e8ed;
    margin-bottom: 0.3rem;
}

.sc-footer-signup-desc {
    color: #8888a0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.sc-footer-form {
    max-width: 400px;
    margin: 0 auto;
}

.sc-footer-input-row {
    display: flex;
    gap: 0.5rem;
}

.sc-footer-input {
    flex: 1;
    padding: 0.7rem 1rem;
    background: #0a0a0f;
    border: 1px solid #222233;
    border-radius: 8px;
    color: #e8e8ed;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    min-width: 0;
}

.sc-footer-input:focus {
    border-color: #00ff88;
}

.sc-footer-input::placeholder {
    color: #55556a;
}

.sc-footer-btn {
    padding: 0.7rem 1.4rem;
    background: #00ff88;
    color: #0a0a0f;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.sc-footer-btn:hover {
    background: #00cc6a;
}

.sc-footer-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.sc-footer-success {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    color: #e8e8ed;
    padding: 0.5rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .sc-exit-popup {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .sc-exit-title {
        font-size: 1.3rem;
    }

    .sc-footer-input-row {
        flex-direction: column;
    }

    .sc-footer-btn {
        width: 100%;
    }
}
