/* ─── US Carrier Leads — Exit-Intent Popup ─── */

#uscl-ei-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.60);
    z-index: 99998;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

#uscl-ei-overlay.uscl-ei-open {
    display: flex;
    animation: usclEiOverlayIn 0.25s ease;
}

@keyframes usclEiOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#uscl-ei-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    animation: usclEiModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes usclEiModalIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

#uscl-ei-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #374151;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    z-index: 1;
    transition: background 0.15s, transform 0.15s;
    padding: 0;
    font-family: inherit;
}

#uscl-ei-close:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

/* Eyebrow label above the form card */
#uscl-ei-eyebrow {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

#uscl-ei-eyebrow span {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* The popup uses the same .uscl-form-wrap styles from form.css */
#uscl-ei-modal .uscl-form-wrap {
    max-width: 100%;
}

@media (max-width: 520px) {
    #uscl-ei-close {
        top: -10px;
        right: -10px;
        width: 30px;
        height: 30px;
        font-size: 17px;
    }
}
