@import url("review-stars.css?ver=1.2.0");
/* TenantVoice frontend tokens — all styles stay inside this component.
 * These provisional colours follow the supplied visual direction, not sampled
 * Avada colours. Replace the values HERE (or override on .tenant-voice-review).
 * Keep the darker orange ink/focus token for readable text on white/cream.
 */
.tenant-voice-review {
    --tv-orange: #ff6b0b;
    --tv-orange-ink: #a83c00;
    --tv-charcoal: #25231f;
    --tv-cream: #fff8f0;
    --tv-white: #ffffff;
    --tv-peach: #ffe9d8;
    --tv-muted: #625b54;
    --tv-border: #ded6cd;
    --tv-control-border: #8d8175;
    --tv-radius: 12px;
    --tv-card-radius: 24px;
    --tv-space: 8px;
    --tv-focus: #a83c00;
    --tv-error: #8f2d20;
    --tv-error-surface: #fff0e9;
    color: var(--tv-charcoal);
    background: var(--tv-cream);
    border-radius: calc(var(--tv-card-radius) + var(--tv-space));
    padding: clamp(12px, 2.5vw, 28px);
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: calc(var(--tv-space) * 3) auto;
    font: inherit;
    font-size: 1rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.tenant-voice-review *, .tenant-voice-review *::before, .tenant-voice-review *::after { box-sizing: border-box; }
.tenant-voice-review [hidden] { display: none !important; }
.tenant-voice-review [data-form], .tenant-voice-review .tv-success {
    background: var(--tv-white);
    border: 1px solid var(--tv-border);
    border-radius: var(--tv-card-radius);
    padding: clamp(20px, 3.5vw, 40px);
    margin: 0;
}
.tenant-voice-review h2 { color: var(--tv-charcoal); font: inherit; font-size: clamp(28px, 3.2vw, 40px); font-weight: 750; letter-spacing: -.025em; line-height: 1.15; margin: 0 0 calc(var(--tv-space) * 2); }
.tenant-voice-review p { margin: 0 0 calc(var(--tv-space) * 3); }
.tenant-voice-review .tv-eyebrow { color: var(--tv-orange-ink); font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--tv-space); }
.tenant-voice-review .tv-hint, .tenant-voice-review small { font-size: .875rem; color: var(--tv-muted); }
.tenant-voice-review .tv-form-intro { border-top: 1px solid var(--tv-border); padding-top: calc(var(--tv-space) * 2); margin-bottom: calc(var(--tv-space) * 4); }
.tenant-voice-review .tv-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--tv-space); list-style: none; padding: 0; margin: 0 0 calc(var(--tv-space) * 3); }
.tenant-voice-review .tv-progress li { display: flex; align-items: center; gap: var(--tv-space); min-width: 0; color: var(--tv-muted); font-size: .875rem; line-height: 1.3; }
.tenant-voice-review .tv-step-number { position: relative; display: inline-flex; flex: 0 0 34px; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--tv-border); background: var(--tv-cream); font-weight: 700; }
.tenant-voice-review .tv-progress [aria-current] { color: var(--tv-charcoal); font-weight: 750; }
.tenant-voice-review .tv-progress [aria-current] .tv-step-number { border-color: var(--tv-orange-ink); background: var(--tv-orange); color: var(--tv-charcoal); }
.tenant-voice-review .tv-progress [data-complete] { color: var(--tv-orange-ink); }
.tenant-voice-review .tv-progress [data-complete] .tv-step-number { border-color: var(--tv-orange-ink); background: var(--tv-peach); }
.tenant-voice-review .tv-progress [data-complete] .tv-step-number::after { content: '✓'; position: absolute; right: -5px; top: -5px; display: grid; place-items: center; height: 16px; width: 16px; border-radius: 50%; background: var(--tv-charcoal); color: var(--tv-white); font-size: 10px; }
.tenant-voice-review .tv-mobile-progress { display: none; }
.tenant-voice-review .tv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(var(--tv-space) * 3); }
.tenant-voice-review fieldset { min-width: 0; border: 0; padding: 0; margin: 0 0 calc(var(--tv-space) * 3); }
.tenant-voice-review legend { float: none; width: auto; max-width: 100%; padding: 0; margin: 0 0 calc(var(--tv-space) * 1.5); font: inherit; font-weight: 650; color: var(--tv-charcoal); }
.tenant-voice-review .tv-field { display: block; margin: 0 0 calc(var(--tv-space) * 3); font-weight: 600; }
.tenant-voice-review .tv-field > span { display: block; margin-bottom: var(--tv-space); }
.tenant-voice-review .tv-field small { font-weight: 400; }
.tenant-voice-review input[type='text'], .tenant-voice-review input[type='search'], .tenant-voice-review input[type='number'], .tenant-voice-review select, .tenant-voice-review textarea {
    display: block; width: 100%; max-width: 100%; min-height: 52px; height: auto; margin: 0;
    border: 1px solid var(--tv-control-border); border-radius: var(--tv-radius); background: var(--tv-white); color: var(--tv-charcoal);
    padding: calc(var(--tv-space) * 1.5); font: inherit; font-weight: 400; line-height: 1.5; box-shadow: none;
}
.tenant-voice-review input::placeholder, .tenant-voice-review textarea::placeholder { color: var(--tv-muted); opacity: 1; }
.tenant-voice-review textarea { resize: vertical; }
.tenant-voice-review select { appearance: auto; }
.tenant-voice-review input[type='checkbox'], .tenant-voice-review input[type='radio'] { appearance: auto; width: 20px; height: 20px; flex-shrink: 0; margin: 3px 0 0; accent-color: var(--tv-orange-ink); position: static; opacity: 1; }
.tenant-voice-review .tv-choice { display: flex; align-items: flex-start; gap: calc(var(--tv-space) * 1.25); margin: 0 0 calc(var(--tv-space) * 3); min-height: 44px; cursor: pointer; }
.tenant-voice-review .tv-choices { display: flex; flex-wrap: wrap; gap: calc(var(--tv-space) * 1.5); }
.tenant-voice-review button { appearance: none; max-width: 100%; border: 1px solid var(--tv-orange); border-radius: var(--tv-radius); padding: calc(var(--tv-space) * 1.5) calc(var(--tv-space) * 3); min-height: 52px; background: var(--tv-orange); color: var(--tv-charcoal); font: inherit; font-weight: 750; line-height: 1.4; cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none; white-space: normal; }
.tenant-voice-review button:hover { background: var(--tv-peach); border-color: var(--tv-orange-ink); }
.tenant-voice-review button:disabled { opacity: .65; cursor: wait; }
.tenant-voice-review .tv-secondary { background: var(--tv-white); border-color: var(--tv-control-border); color: var(--tv-charcoal); font-weight: 600; }
.tenant-voice-review .tv-secondary:hover { background: var(--tv-cream); border-color: var(--tv-orange-ink); }
.tenant-voice-review :is(input,select,textarea,button,a):focus-visible { outline: 3px solid var(--tv-focus); outline-offset: 3px; }
.tenant-voice-review :is(input,select,textarea):focus { border-color: var(--tv-focus); }
.tenant-voice-review [aria-invalid='true'] { border-color: var(--tv-error); outline-color: var(--tv-error); }
.tenant-voice-review h2:focus, .tenant-voice-review [data-success]:focus { outline: none; }
.tenant-voice-review .tv-actions { display: flex; justify-content: flex-end; gap: calc(var(--tv-space) * 1.5); border-top: 1px solid var(--tv-border); padding-top: calc(var(--tv-space) * 3); margin-top: calc(var(--tv-space) * 4); }
.tenant-voice-review .tv-actions [data-back] { margin-right: auto; }
.tenant-voice-review .tv-entity { background: var(--tv-cream); padding: calc(var(--tv-space) * 2.5); border-radius: var(--tv-card-radius); border: 1px solid var(--tv-border); margin-top: calc(var(--tv-space) * 2); }
.tenant-voice-review .tv-entity > legend { background: var(--tv-white); padding: 0 var(--tv-space); }
.tenant-voice-review .tv-entity fieldset:last-child { margin-bottom: 0; }
.tenant-voice-review .tv-search-help { margin-top: calc(var(--tv-space) * 2); }
.tenant-voice-review [data-search-status]:empty, .tenant-voice-review [data-selected]:empty { display: none; }
.tenant-voice-review [data-search-status], .tenant-voice-review [data-selected] { font-weight: 600; }
.tenant-voice-review [data-enter-details] { margin-bottom: var(--tv-space); }
.tenant-voice-review .tv-results { list-style: none; margin: var(--tv-space) 0 calc(var(--tv-space) * 2); padding: 0; }
.tenant-voice-review .tv-results li { margin: var(--tv-space) 0; }
.tenant-voice-review .tv-results button { width: 100%; text-align: left; background: var(--tv-white); color: var(--tv-charcoal); border-color: var(--tv-control-border); font-weight: 600; }
.tenant-voice-review .tv-results button:hover { background: var(--tv-peach); border-color: var(--tv-orange-ink); }
.tenant-voice-review .tv-rating-scale { display: flex; justify-content: space-between; gap: var(--tv-space); max-width: 280px; color: var(--tv-muted); font-size: .875rem; }
.tenant-voice-review .tv-rating-group > legend { font-size: 1.25rem; margin-bottom: calc(var(--tv-space) * 2); }
.tenant-voice-review .tv-rating-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--tv-space) * 2); }
.tenant-voice-review .tv-rating { margin: 0; padding: calc(var(--tv-space) * 2); background: var(--tv-cream); border: 1px solid var(--tv-border); border-radius: var(--tv-radius); }
.tenant-voice-review .tv-rating > legend { font-size: .9375rem; padding: 0 calc(var(--tv-space) * .75); margin-bottom: var(--tv-space); }
.tenant-voice-review .tv-stars { display: flex; gap: var(--tv-space); }
.tenant-voice-review .tv-stars label { position: relative; cursor: pointer; }
.tenant-voice-review .tv-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tenant-voice-review .tv-stars label > span[aria-hidden] { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; min-height: 58px; border: 1px solid var(--tv-control-border); border-radius: var(--tv-radius); color: var(--tv-muted); background: var(--tv-white); font-size: 25px; line-height: 1.2; }
.tenant-voice-review .tv-stars small { font-size: .75rem; color: var(--tv-charcoal); }
.tenant-voice-review .tv-stars label:hover > span[aria-hidden] { color: var(--tv-review-star); background: var(--tv-peach); }
.tenant-voice-review .tv-stars input:checked + span { background: var(--tv-peach); border-color: var(--tv-orange-ink); color: var(--tv-review-star); font-weight: 750; box-shadow: inset 0 0 0 1px var(--tv-orange-ink); }
.tenant-voice-review .tv-stars input:focus-visible + span { outline: 3px solid var(--tv-focus); outline-offset: 3px; }
.tenant-voice-review .tv-stars input[aria-invalid='true'] + span { border-color: var(--tv-error); }
.tenant-voice-review .tv-recommendation .tv-choice { flex: 1 1 90px; align-items: center; gap: var(--tv-space); margin: 0; border: 1px solid var(--tv-control-border); border-radius: var(--tv-radius); background: var(--tv-white); padding: calc(var(--tv-space) * 1.5); min-height: 56px; font-weight: 600; }
.tenant-voice-review .tv-recommendation .tv-choice:hover { background: var(--tv-cream); }
.tenant-voice-review .tv-recommendation .tv-choice:has(input:checked) { border-color: var(--tv-orange-ink); background: var(--tv-peach); box-shadow: inset 0 0 0 1px var(--tv-orange-ink); }
.tenant-voice-review .tv-recommendation input { margin: 0; }
.tenant-voice-review .tv-error { border: 1px solid var(--tv-error); border-left-width: 4px; border-radius: var(--tv-radius); background: var(--tv-error-surface); color: var(--tv-error); padding: calc(var(--tv-space) * 2); margin-bottom: calc(var(--tv-space) * 2); overflow-wrap: anywhere; }
.tenant-voice-review .tv-error:focus { outline: 3px solid var(--tv-focus); outline-offset: 3px; }
.tenant-voice-review .tv-summary { background: var(--tv-cream); border: 1px solid var(--tv-border); border-radius: var(--tv-card-radius); padding: calc(var(--tv-space) * 3); margin-bottom: calc(var(--tv-space) * 3); }
.tenant-voice-review .tv-summary h3 { font: inherit; font-size: 1.125rem; font-weight: 750; color: var(--tv-charcoal); border-bottom: 1px solid var(--tv-border); padding-bottom: var(--tv-space); margin: calc(var(--tv-space) * 3) 0 calc(var(--tv-space) * 2); }
.tenant-voice-review .tv-summary h3:first-child { margin-top: 0; }
.tenant-voice-review .tv-summary dl { margin: 0; }
.tenant-voice-review .tv-summary dt { font-weight: 650; margin-top: calc(var(--tv-space) * 1.5); }
.tenant-voice-review .tv-summary dd { margin: 4px 0 calc(var(--tv-space) * 2); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tv-muted); }
.tenant-voice-review .tv-success { padding: clamp(24px, 6vw, 64px); }
.tenant-voice-review .tv-success h2 { max-width: 20ch; }
.tenant-voice-review .tv-success p:last-child { max-width: 58ch; margin: 0; color: var(--tv-muted); }
.tenant-voice-review .tv-success-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: calc(var(--tv-space) * 3); background: var(--tv-orange); color: var(--tv-charcoal); font-size: 28px; font-weight: 750; }
.tenant-voice-review .tv-sr-only, .tenant-voice-review .tv-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
    .tenant-voice-review .tv-progress { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .tenant-voice-review .tv-mobile-progress { display: block; margin-bottom: calc(var(--tv-space) * 3); }
    .tenant-voice-review .tv-mobile-progress p { display: flex; gap: 4px; align-items: baseline; margin-bottom: calc(var(--tv-space) * 1.5); font-size: .875rem; color: var(--tv-muted); }
    .tenant-voice-review .tv-mobile-progress strong { margin-left: auto; color: var(--tv-charcoal); font-size: 1rem; }
    .tenant-voice-review .tv-progress-track { height: 6px; background: var(--tv-peach); border-radius: var(--tv-radius); overflow: hidden; }
    .tenant-voice-review [data-progress-fill] { display: block; width: 20%; height: 100%; background: var(--tv-orange); }
    .tenant-voice-review .tv-rating-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .tenant-voice-review .tv-grid { grid-template-columns: 1fr; }
    .tenant-voice-review .tv-entity, .tenant-voice-review .tv-rating, .tenant-voice-review .tv-summary { padding: calc(var(--tv-space) * 1.5); }
    .tenant-voice-review .tv-stars { gap: 4px; }
    .tenant-voice-review .tv-stars label { flex: 1; min-width: 0; max-width: 40px; }
    .tenant-voice-review .tv-stars label > span[aria-hidden] { width: 100%; min-height: 56px; }
    .tenant-voice-review .tv-actions { flex-wrap: wrap; }
    .tenant-voice-review .tv-actions button { padding: calc(var(--tv-space) * 1.5) calc(var(--tv-space) * 2); }
    .tenant-voice-review .tv-recommendation { gap: var(--tv-space); }
    .tenant-voice-review .tv-recommendation .tv-choice { flex-basis: 72px; padding: calc(var(--tv-space) * 1.5) var(--tv-space); font-size: .875rem; }
}
@media (forced-colors: active) {
    .tenant-voice-review .tv-stars input:checked + span, .tenant-voice-review .tv-recommendation .tv-choice:has(input:checked) { outline: 2px solid Highlight; }
    .tenant-voice-review .tv-progress [aria-current] .tv-step-number { outline: 2px solid Highlight; }
}

.tenant-voice-review .tv-evidence { padding: calc(var(--tv-space) * 2); border: 1px solid var(--tv-border); border-radius: var(--tv-card-radius); background: var(--tv-cream); }
.tenant-voice-review .tv-evidence legend { padding: 0 var(--tv-space); }
.tenant-voice-review input[type='file'] { display: block; width: 100%; min-height: 52px; padding: var(--tv-space); border: 1px solid var(--tv-control-border); border-radius: var(--tv-radius); background: var(--tv-white); color: var(--tv-charcoal); font: inherit; }
.tenant-voice-review input[type='file']::file-selector-button { background: var(--tv-peach); color: var(--tv-charcoal); font: inherit; border: 1px solid var(--tv-control-border); border-radius: var(--tv-radius); min-height: 44px; margin-right: var(--tv-space); padding: var(--tv-space); cursor: pointer; }
.tenant-voice-review .tv-evidence p:last-child { margin-bottom: 0; }

.tenant-voice-review[data-email-verification] { font-family: system-ui, sans-serif; margin: 32px auto; }
.tenant-voice-review [data-check-copy], .tenant-voice-review [data-verified] p { white-space: pre-line; overflow-wrap: anywhere; }
.tenant-voice-review [data-resend] { max-width: 100%; white-space: normal; }

/* Keep the historical pet question readable as ordinary native choices. */
.tenant-voice-review .tv-pet-policy .tv-choices{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.tenant-voice-review .tv-pet-policy .tv-choice{margin:0;padding:12px;border:1px solid var(--tv-control-border);border-radius:var(--tv-radius);background:var(--tv-white)}

/* Frontend journey actions only; lookup results and input controls are unchanged. */
.tenant-voice-review button:is([data-next],[data-back],[data-submit],[data-retry],[data-resend],[data-search],[data-enter-details]) {
    border-radius: 999px;
    padding-inline: 32px;
}
.tenant-voice-review button:is([data-next],[data-submit],[data-retry],[data-resend],[data-search]) {
    color: var(--tv-white);
    text-shadow: none;
    -webkit-text-stroke: 0;
}
.tenant-voice-review button:is([data-next],[data-submit],[data-retry],[data-resend],[data-search]):hover {
    background: var(--tv-orange-ink);
    color: var(--tv-white);
}
@media (max-width: 600px) {
    .tenant-voice-review button:is([data-next],[data-back],[data-submit],[data-retry],[data-resend],[data-search],[data-enter-details]) { padding-inline: 24px; }
}

/* Successful email verification only; waiting/error cards retain their styling. */
.tenant-voice-review[data-email-verification] [data-verification-success] { border: 0; }
.tenant-voice-review[data-email-verification] .tv-verification-copy { max-width: 58ch; margin: 0; color: var(--tv-muted); }
.tenant-voice-review[data-email-verification] .tv-verification-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.tenant-voice-review[data-email-verification] .tv-verification-actions a {
    display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 48px;
    padding: 12px 24px; border: 1px solid var(--tv-orange); border-radius: 999px;
    background: var(--tv-orange); color: var(--tv-white); font: inherit; font-weight: 750; line-height: 1.4;
    text-align: center; text-decoration: none; text-shadow: none; -webkit-text-stroke: 0;
}
.tenant-voice-review[data-email-verification] .tv-verification-actions a:hover { background: var(--tv-orange-ink); border-color: var(--tv-orange-ink); }
.tenant-voice-review[data-email-verification] .tv-verification-actions .tv-verification-secondary { background: var(--tv-white); color: var(--tv-charcoal); border-color: var(--tv-control-border); font-weight: 600; }
.tenant-voice-review[data-email-verification] .tv-verification-actions .tv-verification-secondary:hover { background: var(--tv-cream); border-color: var(--tv-orange-ink); }
.tenant-voice-review[data-email-verification] .tv-verification-actions a:focus-visible { outline: 3px solid var(--tv-focus); outline-offset: 3px; }
@media (max-width: 560px) {
    .tenant-voice-review[data-email-verification] .tv-verification-actions { flex-direction: column; align-items: stretch; }
}

.tenant-voice-review .tv-evidence-privacy { margin-top:24px; padding:24px; background:var(--tv-cream); border-radius:var(--tv-card-radius); }
.tenant-voice-review .tv-evidence-privacy h3 { margin:0 0 16px; font-size:1.25rem; color:var(--tv-charcoal); }
.tenant-voice-review .tv-evidence-privacy p { margin:0 0 16px; }
.tenant-voice-review .tv-evidence-privacy p:last-child { margin-bottom:0; }
.tenant-voice-review .tv-actions:has(.tv-submit-reassurance) { flex-wrap:wrap; }
.tenant-voice-review .tv-submit-reassurance { flex-basis:100%; margin:0; }
.tenant-voice-review .tv-actions:has([data-submit][hidden]) .tv-submit-reassurance { display:none; }
.tenant-voice-review .tv-submit-reassurance { order:-1; }

.tenant-voice-review .tv-deposit-na { margin-top:16px; align-items:flex-start; }
.tenant-voice-review [data-deposit-rating] .tv-hint { margin:12px 0 0; }
