/* Email Capture Pro — Frontend Styles */

.ecp-form-wrap {
    margin: 28px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.ecp-form-inner {
    background: linear-gradient(135deg, #1F2937 0%, #374151 100%);
    border-radius: 14px;
    padding: 28px 32px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.ecp-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

.ecp-subtitle {
    font-size: 14px;
    color: #d1d5db;
    margin: 0 0 10px;
}

.ecp-lead {
    font-size: 14px;
    color: #fbbf24;
    margin: 0 0 16px;
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    display: inline-block;
}

.ecp-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 12px 0;
}

.ecp-name,
.ecp-email {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.ecp-name::placeholder,
.ecp-email::placeholder { color: #444 !important; opacity: 1 !important; }
.ecp-name::-webkit-input-placeholder,
.ecp-email::-webkit-input-placeholder { color: #444 !important; opacity: 1 !important; }
.ecp-name:focus,
.ecp-email:focus { border-color: #fbbf24; }

.ecp-btn {
    padding: 12px 24px;
    background: #C8102E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.ecp-btn:hover { background: #a00d24; }

.ecp-privacy {
    font-size: 12px;
    color: #9ca3af;
    margin: 10px 0 0;
}

.ecp-success { color: #86efac; font-weight: 600; font-size: 15px; }
.ecp-error   { color: #fca5a5; font-size: 14px; }
.ecp-hidden  { display: none !important; }

/* ── EXIT INTENT POPUP ───────────────────────────────────── */
.ecp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999998;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ecpFadeIn 0.3s ease;
}

@keyframes ecpFadeIn { from { opacity:0 } to { opacity:1 } }

.ecp-popup {
    position: relative;
    max-width: 480px;
    width: 92%;
    z-index: 999999;
}

.ecp-popup-close {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    z-index: 1000000;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .ecp-form-inner { padding: 20px 16px; }
    .ecp-form { flex-direction: column; }
    .ecp-name, .ecp-email, .ecp-btn { width: 100%; min-width: 0; }
}

/* ── POPUP BODY TEXT ─────────────────────────────────────── */
.ecp-popup-body {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0 0 14px;
}

/* ── THANK YOU PANEL ─────────────────────────────────────── */
.ecp-thankyou-panel {
    text-align: center;
    padding: 10px 0 6px;
    animation: ecpFadeIn .4s ease;
}
.ecp-thankyou-icon {
    font-size: 42px;
    margin: 0 0 10px;
    line-height: 1;
}
.ecp-thankyou-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.ecp-thankyou-message {
    font-size: 14px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    margin: 0;
}
@keyframes ecpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
