/* ============================================================
   RealNex Listings Pro — Lead Capture Modal CSS
   Theme-neutral: works on top of all 4 themes
   ============================================================ */

#rnlp-lead-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

#rnlp-lead-modal {
    background: #fff;
    border-radius: 12px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    animation: rnlp-modal-in .18s ease;
}

@keyframes rnlp-modal-in {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.rnlp-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.rnlp-modal-close:hover { background: #e2e8f0; }

.rnlp-modal-crm-badge {
    display: inline-block;
    background: #e6f1fb;
    color: #0c447c;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 4px;
    margin-bottom: 8px;
    letter-spacing: .04em;
}

.rnlp-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}

.rnlp-modal-prop {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rnlp-lead-form { display: flex; flex-direction: column; gap: 12px; }

.rnlp-lf-group { display: flex; flex-direction: column; gap: 4px; }
.rnlp-lf-group label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}
.rnlp-req { color: #dc2626; }
.rnlp-lf-group input,
.rnlp-lf-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    color: #1e293b;
    background: #f8fafc;
    transition: border-color .15s, box-shadow .15s;
    font-family: inherit;
}
.rnlp-lf-group input:focus,
.rnlp-lf-group textarea:focus {
    outline: none;
    border-color: #013161;
    box-shadow: 0 0 0 3px rgba(1,49,97,.10);
    background: #fff;
}
.rnlp-lf-group textarea { resize: vertical; min-height: 72px; }

.rnlp-lf-submit-btn {
    width: 100%;
    height: 40px;
    background: #013161;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    margin-top: 4px;
}
.rnlp-lf-submit-btn:hover  { background: #014080; }
.rnlp-lf-submit-btn:active { transform: scale(.99); }
.rnlp-lf-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.rnlp-lf-status {
    display: none;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
}
.rnlp-status-success { background: #f0fdf4; color: #16a34a; }
.rnlp-status-error   { background: #fef2f2; color: #dc2626; }

/* Inquire button on cards */
.rnlp-inquire-btn {
    position: relative;
    z-index: 11;
    width: 100%;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: transparent;
    color: var(--rnlp-meta-text, #64748b);
    border: 1px solid var(--rnlp-border, #e2e8f0);
    border-radius: 5px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.rnlp-inquire-btn:hover {
    background: #013161;
    color: #fff;
    border-color: #013161;
}

@media (max-width: 480px) {
    #rnlp-lead-modal { padding: 20px 18px 18px; }
}

/* ── CRM upsell notice in modal ───────────────────────────── */
.rnlp-success {
    font-size: 15px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 10px;
}
.rnlp-crm-notice {
    font-size: 11px;
    color: #64748b;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #013161;
    margin-top: 8px;
}
.rnlp-crm-notice a {
    color: #013161;
    font-weight: 600;
    text-decoration: none;
}
.rnlp-crm-notice a:hover { text-decoration: underline; }
