/* Multi-step property form + video picker (loaded with the other front-end assets) */

/* ── Stepper ─────────────────────────────────────────────── */
.rp-prop-tab-nav.rpf-stepper { gap: 4px; padding: 10px 16px 0; counter-reset: none; }
.rpf-step { position: relative; white-space: nowrap; border-radius: 8px 8px 0 0; }
.rpf-step .rpf-num {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
    background: var(--rp-border, #e2e8f0); color: var(--rp-muted, #64748b); font-size: 11.5px; font-weight: 700; flex: none;
    transition: background .15s, color .15s;
}
.rpf-step.active .rpf-num { background: var(--rp-primary, #2563eb); color: #fff; }
.rpf-step.is-done .rpf-num { background: #16a34a; color: #fff; font-size: 0; }
.rpf-step.is-done .rpf-num::before { content: "\2713"; font-size: 12px; }
.rpf-step.is-error .rpf-num { background: #dc2626; color: #fff; font-size: 0; }
.rpf-step.is-error .rpf-num::before { content: "!"; font-size: 12px; }
.rpf-step.is-error { color: #dc2626; }

/* ── Progress ────────────────────────────────────────────── */
.rpf-progress { padding: 10px 20px 12px; background: #fff; border-bottom: 1px solid var(--rp-border, #e2e8f0); }
.rpf-progress-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--rp-muted, #64748b); margin-bottom: 6px; }
.rpf-bar { height: 6px; border-radius: 99px; background: var(--rp-border, #e2e8f0); overflow: hidden; }
.rpf-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rp-primary, #2563eb), #16a34a); border-radius: 99px; transition: width .3s ease; }

/* ── Footer ──────────────────────────────────────────────── */
.rp-modal-footer .rpf-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.rpf-submit[disabled], .rpf-next[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Fields ──────────────────────────────────────────────── */
.rpf-req { color: #dc2626; font-weight: 700; }
.rpf-invalid { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, .1) !important; }
.rpf-err { color: #dc2626; font-size: 12px; margin-top: 4px; font-weight: 500; line-height: 1.35; }
.rpf-live { position: absolute; left: -9999px; }
.rpf-section-intro { display: flex; flex-direction: column; gap: 2px; background: #f0f7ff; border: 1px solid #cfe3ff; border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 13px; color: #1e3a5f; }
.rpf-section-intro span { color: #475569; font-size: 12.5px; }
.rpf-note { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 12px 14px; font-size: 13px; margin-bottom: 12px; }
.rpf-pricing .rp-form-group small { color: var(--rp-muted, #64748b); font-size: 11.5px; display: block; margin-top: 3px; }

/* ── Review ──────────────────────────────────────────────── */
.rpf-review-status { border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: 13.5px; margin-bottom: 14px; }
.rpf-review-status.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rpf-review-status.bad { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.rpf-review-errs { margin: 0 0 14px; padding-left: 18px; font-size: 13px; color: #b91c1c; }
.rpf-review-errs a { color: inherit; text-decoration: underline; }
.rpf-review-list { margin: 0; border: 1px solid var(--rp-border, #e2e8f0); border-radius: 10px; overflow: hidden; }
.rpf-review-row { display: grid; grid-template-columns: 140px 1fr auto; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rp-border, #e2e8f0); font-size: 13.5px; align-items: center; }
.rpf-review-row:last-child { border-bottom: 0; }
.rpf-review-row dt { color: var(--rp-muted, #64748b); font-weight: 600; margin: 0; }
.rpf-review-row dd { margin: 0; word-break: break-word; }
.rpf-edit { font-size: 12px; color: var(--rp-primary, #2563eb); text-decoration: none; font-weight: 600; }

/* ── Property-verification (documents) panel ─────────────── */
.rpf-vpanel { border: 1px solid var(--rp-border, #e2e8f0); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; background: #fff; }
.rpf-vpanel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rpf-vpanel-head strong { font-size: 14px; }
.rpf-pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: #f1f5f9; color: #475569; }
.rpf-pill.success { background: #dcfce7; color: #166534; }
.rpf-pill.warning { background: #fef3c7; color: #92400e; }
.rpf-pill.info { background: #dbeafe; color: #1e40af; }
.rpf-pill.danger { background: #fee2e2; color: #991b1b; }
.rpf-vpanel p { margin: 8px 0 0; font-size: 13px; color: #475569; }
.rpf-vpanel .rpf-vfee { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: #475569; }
.rpf-vpanel .rp-btn { margin-top: 12px; }

/* gateway chooser */
.rpf-gw-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); z-index: 100010; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rpf-gw { background: #fff; border-radius: 14px; width: 100%; max-width: 420px; padding: 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.rpf-gw h4 { margin: 0 0 4px; font-size: 16px; }
.rpf-gw p { margin: 0 0 14px; color: #64748b; font-size: 13px; }
.rpf-gw label { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1.5px solid var(--rp-border, #e2e8f0); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.rpf-gw label:has(input:checked) { border-color: var(--rp-primary, #2563eb); background: #f0f7ff; }
.rpf-gw label small { display: block; color: #64748b; font-size: 12px; }
.rpf-gw .rpf-gw-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ── Video picker ────────────────────────────────────────── */
body.rpm-lock { overflow: hidden; }
.rpm-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .6); z-index: 100005; display: none; align-items: center; justify-content: center; padding: 16px; }
.rpm-overlay.open { display: flex; }
.rpm-dialog { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: 92vh; display: flex; flex-direction: column; outline: none; box-shadow: 0 25px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.rpm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rp-border, #e2e8f0); }
.rpm-head h4 { margin: 0; font-size: 16px; }
.rpm-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #64748b; padding: 0 4px; }
.rpm-tabs { display: flex; gap: 4px; padding: 8px 14px 0; border-bottom: 1px solid var(--rp-border, #e2e8f0); }
.rpm-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font-weight: 600; font-size: 13.5px; color: #64748b; cursor: pointer; }
.rpm-tabs button.on { color: var(--rp-primary, #2563eb); border-color: var(--rp-primary, #2563eb); }
.rpm-body { padding: 16px 18px; overflow-y: auto; flex: 1; min-height: 260px; }
.rpm-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; border: 2px dashed #cbd5e1; border-radius: 14px; padding: 38px 16px; cursor: pointer; background: #f8fafc; transition: border-color .15s, background .15s; }
.rpm-drop:hover, .rpm-drop.drag, .rpm-drop:focus { border-color: var(--rp-primary, #2563eb); background: #eff6ff; outline: none; }
.rpm-drop-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--rp-primary, #2563eb); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.rpm-drop small { color: #64748b; }
.rpm-prog { margin-top: 16px; }
.rpm-prog-bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.rpm-prog-bar i { display: block; height: 100%; width: 0; background: var(--rp-primary, #2563eb); transition: width .2s; }
.rpm-prog-row { display: flex; justify-content: space-between; font-size: 12.5px; color: #475569; margin: 6px 0 10px; gap: 10px; }
.rpm-prog-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpm-msg { margin-top: 12px; font-size: 13px; font-weight: 500; }
.rpm-msg.bad { color: #b91c1c; } .rpm-msg.ok { color: #047857; }
.rpm-tools { margin-bottom: 12px; }
.rpm-search { width: 100%; padding: 9px 12px; border: 1.5px solid var(--rp-border, #e2e8f0); border-radius: 8px; font-size: 14px; }
.rpm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rpm-card { position: relative; border: 2px solid var(--rp-border, #e2e8f0); border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.rpm-card:hover, .rpm-card:focus { border-color: #93c5fd; }
.rpm-card.sel { border-color: var(--rp-primary, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.rpm-thumb { position: relative; aspect-ratio: 16 / 10; background: #0f172a; }
.rpm-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.rpm-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.rpm-meta { padding: 8px 10px; }
.rpm-meta b { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpm-meta small { color: #64748b; font-size: 11.5px; }
.rpm-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .75); color: #fff; cursor: pointer; font-size: 16px; line-height: 1; }
.rpm-del:hover { background: #dc2626; }
.rpm-loading, .rpm-empty { grid-column: 1/-1; text-align: center; color: #64748b; padding: 30px 10px; font-size: 13.5px; }
.rpm-more { text-align: center; margin-top: 14px; }
.rpm-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--rp-border, #e2e8f0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
    .rp-prop-tab-nav.rpf-stepper { padding: 8px 8px 0; }
    .rpf-step { padding: 9px 10px; font-size: 12px; }
    .rpf-step.active { order: 0; }
    .rpf-review-row { grid-template-columns: 1fr auto; }
    .rpf-review-row dt { grid-column: 1 / -1; }
    .rp-modal-footer { flex-wrap: wrap; }
    .rp-modal-footer > .rp-btn { flex: 1 1 auto; }
    .rp-modal-footer .rpf-actions { width: 100%; margin-left: 0; }
    .rp-modal-footer .rpf-actions .rp-btn { flex: 1 1 0; justify-content: center; }
    .rpm-overlay { padding: 0; align-items: flex-end; }
    .rpm-dialog { max-width: none; border-radius: 16px 16px 0 0; max-height: 96vh; }
    .rpm-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Land specifications ─────────────────────────────────── */
.rpf-land { margin-bottom: 8px; }
.rpf-hint { display: block; color: var(--rp-muted, #64748b); font-size: 12px; margin: -6px 0 10px; min-height: 0; }
.rpf-hint:empty { display: none; }
.rpf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.rpf-check { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1.5px solid var(--rp-border, #e2e8f0); border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; text-transform: none; letter-spacing: 0; margin: 0; }
.rpf-check input { width: 16px; height: 16px; accent-color: var(--rp-primary, #2563eb); margin: 0; flex: none; }
.rpf-check:has(input:checked) { border-color: var(--rp-primary, #2563eb); background: #eff6ff; }
