/* RLTR Feedback form — public (token URL).
   Style mirrors the open-house sign-in page (open_house_pages.php):
   navy #130D60, soft #F7F8FF backdrop, system font, pill-style controls.
   Two-panel layout (left: property hero, right: form) when context is available. */
.rltrfb-page {
    --fb-navy:   #130D60;
    --fb-navy2:  #1e1690;
    --fb-bg:     #F7F8FF;
    --fb-border: #e5e7eb;
    --fb-text:   #111827;
    --fb-muted:  #6B7280;
    --fb-font:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    min-height: 100vh;
    background: #fff;
    font-family: var(--fb-font);
    color: var(--fb-text);
    -webkit-font-smoothing: antialiased;
}
.rltrfb-page * { box-sizing: border-box; }

/* State pages (invalid / expired / submitted / thanks) — centered card */
.rltrfb-page:not(.rltrfb-page--withhero) {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px 80px;
}
.rltrfb-card {
    width: 100%;
    max-width: 540px;
    padding: 36px 36px 32px;
    background: #fff;
    border: 1px solid var(--fb-border);
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(19, 13, 96, 0.06);
}

/* ── Two-panel layout (mirrors .oh-page) ── */
.rltrfb-page--withhero {
    display: flex;
    min-height: 100vh;
}
.rltrfb-bg-panel {
    width: 44%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #0d0940;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.rltrfb-bg-top {
    padding: 28px 28px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-shrink: 0;
}
.rltrfb-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 20px;
}
.rltrfb-bg-logo {
    max-height: 44px;
    max-width: 110px;
    object-fit: contain;
    display: block;
}
.rltrfb-bg-spacer { flex: 1; }
.rltrfb-bg-overlay {
    padding: 0 28px 32px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .4) 55%, transparent 100%);
    flex-shrink: 0;
}
.rltrfb-bg-address {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 4px;
}
.rltrfb-bg-address2 {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 10px;
}
.rltrfb-bg-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}
.rltrfb-bg-meta + .rltrfb-bg-meta { margin-top: 3px; }
.rltrfb-bg-meta::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.rltrfb-content-panel {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.rltrfb-form-inner {
    width: 100%;
    max-width: 540px;
    padding: 44px 40px 52px;
    margin: auto 0;
}
/* Two-panel header tweaks (title is already set by general .rltrfb-h1 below) */
.rltrfb-form-inner .rltrfb-h1 { margin-bottom: 4px; }
.rltrfb-form-inner .rltrfb-sub { margin-bottom: 24px; }
.rltrfb-h1 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--fb-navy);
    margin: 0 0 6px;
    line-height: 1.2;
}
.rltrfb-sub {
    font-size: 0.88rem;
    color: var(--fb-muted);
    margin: 0 0 24px;
    line-height: 1.4;
}

/* ── Agent card (mirrors .agent-item from agent_signin.php) ── */
.rltrfb-agent-card {
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 0 0 24px;
}
.rltrfb-agent-card-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fb-muted);
    margin-bottom: 10px;
}
.rltrfb-agent-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.rltrfb-agent-row + .rltrfb-agent-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fb-border);
}
.rltrfb-agent-pic {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--fb-border);
}
.rltrfb-agent-meta { min-width: 0; flex: 1; }
.rltrfb-agent-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--fb-navy);
    line-height: 1.2;
}
.rltrfb-agent-company {
    font-size: 12px;
    color: var(--fb-muted);
    margin-top: 2px;
    line-height: 1.3;
}
.rltrfb-agent-contact {
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.4;
    word-break: break-word;
}
.rltrfb-agent-contact a {
    color: var(--fb-navy);
    text-decoration: none;
}
.rltrfb-agent-contact a:hover { text-decoration: underline; }
.rltrfb-agent-contact .rltrfb-dot { color: var(--fb-muted); margin: 0 4px; }

/* Question wrapper */
.rltrfb-q { margin-bottom: 20px; }
.rltrfb-q-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--fb-text);
    margin-bottom: 8px;
}

/* ── Word-label pills ──
   Each pill carries its own descriptive word — no separate anchor strip,
   self-explanatory. Selected pill snaps to navy fill. */
.rltrfb-words {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.rltrfb-words label {
    text-align: center;
    padding: 12px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--fb-muted);
    background: #f9fafb;
    border: 1.5px solid var(--fb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
    user-select: none;
    line-height: 1.25;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.rltrfb-words input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.rltrfb-words label:hover {
    border-color: var(--fb-navy);
    color: var(--fb-navy);
}
.rltrfb-words label:has(input:checked) {
    border-color: var(--fb-navy);
    background: #eeecfc;
    color: var(--fb-navy);
    font-weight: 700;
}

/* ── Yes/No (mirrors .oh-pills) ── */
.rltrfb-yesno {
    display: flex;
    gap: 8px;
}
.rltrfb-yesno label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fb-muted);
    background: #f9fafb;
    border: 1.5px solid var(--fb-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.rltrfb-yesno input[type=radio] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    max-width: 14px;
    padding: 0 !important;
    margin: 0 !important;
    accent-color: var(--fb-navy);
    flex-shrink: 0;
    -webkit-appearance: auto;
    appearance: auto;
}
.rltrfb-yesno label:has(input:checked) {
    border-color: var(--fb-navy);
    background: #eeecfc;
    color: var(--fb-navy);
    font-weight: 600;
}

/* ── Free text (mirrors .oh-form input/textarea) ── */
.rltrfb-textarea {
    width: 100%;
    min-height: 96px;
    padding: 11px 14px;
    font-family: var(--fb-font);
    font-size: 14px;
    color: var(--fb-text);
    background: #fff;
    border: 1.5px solid var(--fb-border);
    border-radius: 8px;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}
.rltrfb-textarea:focus {
    outline: none;
    border-color: var(--fb-navy);
    box-shadow: 0 0 0 3px rgba(19, 13, 96, 0.09);
}

/* ── Submit (mirrors .oh-submit) ── */
.rltrfb-submit {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--fb-font);
    color: #fff;
    background: var(--fb-navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, transform .1s;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    letter-spacing: .01em;
}
.rltrfb-submit:hover { background: var(--fb-navy2); }

/* ── State pages (link invalid / expired / submitted / thanks) ── */
.rltrfb-state {
    text-align: center;
    padding: 30px 10px 10px;
    color: var(--fb-muted);
    font-size: 15px;
    line-height: 1.5;
}
.rltrfb-state .rltrfb-h1 { margin-bottom: 12px; }

/* ── Agent complete page (mirrors .ohc- styles from open-house complete) ── */
.rltrfb-check-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(5, 150, 105, .25);
    animation: rltrfb-pop .45s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes rltrfb-pop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.rltrfb-check-ring svg { width: 34px; height: 34px; }
.rltrfb-complete-h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--fb-navy);
    text-align: center;
    margin: 0 0 6px;
    line-height: 1.2;
}
.rltrfb-complete-sub {
    font-size: .95rem;
    color: var(--fb-muted);
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* Property summary card */
.rltrfb-prop-card {
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.rltrfb-prop-icon {
    flex-shrink: 0;
    color: var(--fb-navy);
    margin-top: 2px;
}
.rltrfb-prop-icon svg { width: 22px; height: 22px; display: block; }
.rltrfb-prop-addr {
    font-size: .95rem;
    font-weight: 700;
    color: var(--fb-navy);
    margin: 0 0 2px;
    line-height: 1.3;
}
.rltrfb-prop-meta {
    font-size: .82rem;
    color: var(--fb-muted);
    margin: 0;
    line-height: 1.6;
}

/* Action buttons — each full width, stacked */
.rltrfb-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.rltrfb-btn-primary,
.rltrfb-btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--fb-font);
    transition: all .15s;
    line-height: 1;
    width: 100%;
}
.rltrfb-btn-primary {
    background: var(--fb-navy);
    color: #fff;
    border: 1.5px solid var(--fb-navy);
}
.rltrfb-btn-primary:hover { background: var(--fb-navy2); border-color: var(--fb-navy2); color: #fff; }
.rltrfb-btn-outline {
    background: #fff;
    color: var(--fb-navy);
    border: 1.5px solid var(--fb-border);
}
.rltrfb-btn-outline:hover { border-color: var(--fb-navy); background: #f5f4ff; color: var(--fb-navy); }
/* RLTRsync button gets a small visual separation from the property buttons */
.rltrfb-btn-rltr { margin-top: 4px; }

/* Divider with centered label (mirrors .ohc-divider) */
.rltrfb-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
}
.rltrfb-divider::before,
.rltrfb-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--fb-border);
}
.rltrfb-divider span {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--fb-muted);
    white-space: nowrap;
}

/* Listing agent cards on the complete page */
.rltrfb-host-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rltrfb-host-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    padding: 14px 16px;
}
.rltrfb-host-pic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--fb-border);
}
.rltrfb-host-meta { min-width: 0; flex: 1; }
.rltrfb-host-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--fb-navy);
    line-height: 1.25;
}
.rltrfb-host-company {
    font-size: .8rem;
    color: var(--fb-muted);
    margin-top: 2px;
    line-height: 1.3;
}
.rltrfb-host-contact {
    font-size: .78rem;
    margin-top: 5px;
    line-height: 1.5;
    word-break: break-word;
}
.rltrfb-host-contact a {
    color: var(--fb-navy);
    text-decoration: none;
}
.rltrfb-host-contact a:hover { text-decoration: underline; }
.rltrfb-host-dot { color: var(--fb-muted); margin: 0 5px; }

.rltrfb-complete-footer {
    text-align: center;
    font-size: .72rem;
    color: #c4c9d4;
    margin: 28px 0 0;
}
.rltrfb-complete-footer a { color: #c4c9d4; text-decoration: none; }
.rltrfb-complete-footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    /* Two-panel layout collapses: hero on top, form below */
    .rltrfb-page--withhero { flex-direction: column; }
    .rltrfb-bg-panel {
        width: 100%;
        height: 52vw;
        min-height: 200px;
        max-height: 310px;
        position: relative;
        top: auto;
    }
    .rltrfb-bg-top { padding: 16px 16px 0; }
    .rltrfb-bg-overlay { padding: 0 16px 22px; }
    .rltrfb-bg-address { font-size: 1.15rem; }
    .rltrfb-form-inner { padding: 28px 22px 40px; max-width: 100%; }
}
@media (max-width: 600px) {
    .rltrfb-card { padding: 26px 20px 24px; }
    .rltrfb-h1 { font-size: 1.35rem; }
}
</content>
</invoke>