#lead-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Modal */
#lead-modal {
    background: #fff;
    width: 70%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative; /* required for sticky */
}

/* Table */
#lead-modal table {
    width: 100%;
    border-collapse: collapse;
}

#lead-modal th,
#lead-modal td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

#lead-modal th {
    width: 35%;
    background: #f5f5f5;
}

/* 🔒 Sticky close icon (stays visible on scroll) */
#lead-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 20;

    background: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

#lead-modal-close:hover {
    color: #000;
}
