/* Scenario Review component — loaded only by the county foreclosure calendar
   pages. Kept out of styles.css so that file's immutable cache and ?v= version
   don't have to change for the 100+ pages that never render this component. */

.sr-section .section-head { margin-bottom: 1.25rem; }
.sr-launch { display: flex; flex-wrap: wrap; gap: .75rem; }
.sr-launch .btn { flex: 1 1 14rem; justify-content: center; }
.sr-panel[hidden] { display: none; }

.sr-form { max-width: 44rem; margin-inline: auto; }
.sr-h { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); color: var(--navy-900); margin: 0 0 .5rem; }
.sr-h:focus { outline: none; }
.sr-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.sr-fs { border: 0; padding: 0; margin: 1.5rem 0 0; min-width: 0; }
.sr-fs legend {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); padding: 0; margin-bottom: .9rem;
}

/* iOS Safari zooms the page when a focused input is under 16px. */
.sr-form input, .sr-form select, .sr-form textarea { font-size: max(16px, 1rem); }

.sr-unk {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; margin-top: .25rem; font-size: .9rem; color: var(--ink-2); cursor: pointer;
}
.sr-unk input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.sr-money input:disabled { background: var(--bg-soft); color: var(--muted); }
.sr-hint { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.sr-err { margin: .35rem 0 0; font-size: .88rem; font-weight: 600; color: #8f2020; }
.sr-err[hidden] { display: none; }
.sr-form [aria-invalid="true"] { border-color: #b91c1c; }
.sr-days { margin: .45rem 0 0; font-size: .92rem; font-weight: 600; color: var(--navy-800); }
.sr-days:empty { display: none; }

.sr-calc {
  margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: var(--radius);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.sr-dl { display: grid; grid-template-columns: 1fr; gap: .5rem; margin: 0; }
@media (min-width: 560px) { .sr-dl { grid-template-columns: repeat(3, 1fr); } }
.sr-dl div { display: flex; justify-content: space-between; gap: 1rem; }
@media (min-width: 560px) { .sr-dl div { flex-direction: column; gap: .15rem; } }
.sr-dl dt { font-size: .85rem; color: var(--ink-2); }
.sr-dl dd { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.sr-note { margin: .8rem 0 .3rem; color: var(--ink-2); font-size: .95rem; }
.sr-disclaimer { margin: 0; }

.sr-textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--ink); resize: vertical;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.sr-textarea:focus { border-color: var(--accent); outline: 2px solid rgba(199,154,58,.25); }

/* The SMS checkbox is visually replaced; keep a visible keyboard focus. */
.sr-form .prequal-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr-hp { position: absolute; left: -9999px; }
.sr-form button[aria-busy="true"] { cursor: progress; opacity: .8; }
.sr-done { max-width: 44rem; margin-inline: auto; }
.sr-done:focus { outline: none; }

/* Countdown date error on the calendar pages */
.cal-date-err { margin: .45rem 0 0; font-size: .88rem; font-weight: 600; color: #8f2020; }
.cal-date-err[hidden] { display: none; }

/* Narrow phones: styles.css gives buttons white-space:nowrap and the mobile
   calc-grid a 1fr (min-content) column, so a long button label pushed these
   pages wider than a 390px iPhone and Safari zoomed out. Scoped here because
   this file only loads on the calendar pages. */
@media (max-width: 899px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
}
.hero-cta .btn, .cal-cta .btn, .sr-launch .btn, .selfserve-btn, .fc-sticky .btn { white-space: normal; text-align: center; }
