/* ===== CNF Contact Owner Modal (isolated from Bootstrap/theme) ===== */

/* Container */
.cnf-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2001; /* above theme backdrops */
}

/* Open state */
.cnf-modal.is-open { display: block; }

/* Backdrop */
.cnf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

/* Dialog */
.cnf-modal__dialog {
    position: relative;
    width: auto;
    max-width: 600px;
    margin: 30px auto;
    background: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    padding: 20px;
    outline: 0; /* avoid browser outline on focus */
}

/* Sizes (optional) */
.cnf-modal__dialog.cnf-sm { max-width: 320px; }
.cnf-modal__dialog.cnf-lg { max-width: 900px; }

/* Header bits */
#cnfContactTitle {
    margin: 0 0 8px 0;
    font-size: 20px;
    line-height: 1.3;
}
.cnf-modal__hint {
    margin: 0 0 12px;
    opacity: .8;
}

/* Close button */
.cnf-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* Form fields */
.cnf-field { margin-bottom: 12px; }
.cnf-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}
.cnf-field input,
.cnf-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.cnf-field textarea { resize: vertical; }

/* Submit/button */
.cnf-btn {
    display: inline-block;
    background: #e02020;
    color: #fff;
    border: 0;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
}
.cnf-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Notice line */
.cnf-form__notice {
    margin-top: 10px;
    font-size: .95rem;
}

/* Body scroll lock (isolated, not using .modal-open from theme) */
body.cnf-modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* If theme adds .modal-backdrop with high z-index — keep below our modal */
.modal-backdrop { z-index: 2000; }

/* Responsive tweak for very small screens */
@media (max-width: 420px) {
    .cnf-modal__dialog {
        margin: 16px auto;
        padding: 16px;
        border-radius: 8px;
    }
}