/* Today's Homes LLC - rental application wizard */
:root {
	--brand: #1f4e5f; --brand-2: #2f7d6d; --accent: #e8a33d;
	--ink: #1d2327; --muted: #5f6b73; --line: #d6dde2; --bg: #f4f6f7;
	--err: #b42318; --ok: #1e7b4f; --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand-2); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.brand { background: var(--brand); color: #fff; padding: 18px 0; }
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: .02em; }
.brand-name span { color: var(--accent); font-weight: 600; }
.brand-sub { opacity: .85; font-size: .95rem; }

.progress { margin: 20px 0 8px; }
.progress .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--brand-2); transition: width .3s; }
.progress ol { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 10px 0 0; gap: 4px; }
.progress li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); }
.progress .num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; border: 2px solid var(--line); background: #fff; font-weight: 700; margin-bottom: 2px; }
.progress .lbl { display: block; }
.progress li.done .num { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.progress li.current .num { border-color: var(--brand); color: var(--brand); }
.progress li.current { color: var(--ink); font-weight: 600; }
.step-of { display: none; text-align: center; margin: 6px 0 0; color: var(--muted); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 16px 0 24px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
h1 { font-size: 1.5rem; margin: 0 0 4px; color: var(--brand); }
h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--brand); border-bottom: 1px solid var(--line); padding-bottom: 4px; }
h3 { font-size: 1rem; margin: 18px 0 6px; }
.lead { color: var(--muted); margin-top: 0; }
.hint { color: var(--muted); font-size: .88rem; display: block; margin-top: 2px; }

fieldset.block { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 6px; margin: 18px 0; }
fieldset.block > legend { font-weight: 700; color: var(--brand); padding: 0 6px; }

.grid { display: grid; gap: 12px 16px; margin-bottom: 4px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.grid.tight { gap: 8px; }
.span2 { grid-column: span 2; }
.wide { grid-column: 1 / -1; }
.row-label { align-self: end; font-weight: 600; padding-bottom: 10px; }

.field { margin: 6px 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
	width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #b9c3ca; border-radius: 8px; background: #fff; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(47,125,109,.25); border-color: var(--brand-2); }
.req { color: var(--err); }
.has-err input, .has-err select, .has-err textarea, input.invalid { border-color: var(--err); background: #fff7f6; }
.err { color: var(--err); font-size: .85rem; margin: 4px 0 0; }

fieldset.yn { border: 0; padding: 0; }
.yn-opts { display: flex; gap: 16px; min-height: 44px; align-items: center; }
.radio, .checkbox { font-weight: 400 !important; display: inline-flex !important; gap: 8px; align-items: center; cursor: pointer; }
.radio input, .checkbox input { width: 20px; height: 20px; }
.check { margin: 12px 0; }

.occ-head, .occ-row { display: grid; grid-template-columns: 2fr 1.3fr 1.3fr .8fr 40px; gap: 8px; align-items: center; }
.occ-head { font-weight: 600; font-size: .85rem; color: var(--muted); }
.occ-row { margin-bottom: 8px; }
.occ-cell { display: block; margin: 0; font-weight: 400; }
.occ-cell input, .occ-cell select { width: 100%; }
/* per-field occupant labels: hidden on wide screens (the .occ-head row shows the titles), visible on phones */
.occ-lbl { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.agreement-text { background: #f8faf9; border-left: 4px solid var(--brand-2); padding: 12px 14px; font-size: .95rem; }

.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.actions .primary { margin-left: auto; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 12px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn.primary { background: var(--brand-2); color: #fff; }
.btn.primary:hover { background: var(--brand); }
.btn.secondary { background: #e7eef0; color: var(--brand); }
.btn.small { padding: 8px 14px; min-height: 36px; font-size: .9rem; }
.btn.link { background: none; color: var(--muted); text-decoration: underline; padding: 6px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.saved-note { color: var(--muted); font-size: .85rem; text-align: right; }

.alert { background: #fdecea; color: var(--err); border: 1px solid #f5c2bd; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
.notice { background: #e8f5ee; color: var(--ok); border: 1px solid #bfe3cf; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }

.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.review header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.review h3 { margin: 0; }
.review dl { display: grid; grid-template-columns: 160px 1fr; gap: 4px 12px; margin: 10px 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; }
.badge { font-size: .8rem; padding: 3px 10px; border-radius: 99px; font-weight: 600; }
.badge.ok { background: #e8f5ee; color: var(--ok); }
.badge.warn { background: #fff4e0; color: #8a5300; }
.inline-edit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-edit select { width: auto; }
.inline-edit-lbl { font-size: .85rem; font-weight: 600; color: var(--muted); flex-basis: 100%; }   /* visible "Screen to edit" label (was screen-reader only) */
.add-applicant { display: grid; gap: 10px; justify-items: start; }
.total { font-size: 1.15rem; }
.pay-options { max-width: 420px; display: grid; gap: 10px; }
.or { text-align: center; color: var(--muted); }
.start-over { margin-top: 16px; }
.proof { color: var(--muted); }
.return-box { background: #f8faf9; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 20px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: .9rem; padding: 16px 0 28px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 760px) {
	.g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
	.progress .lbl { display: none; }
	.step-of { display: block; }
	.card { padding: 16px; }
	.review dl { grid-template-columns: 1fr; }
	.review dd { margin-bottom: 6px; }
	.occ-head { display: none; }
	.occ-row { grid-template-columns: 1fr 1fr; border-bottom: 1px dashed var(--line); padding-bottom: 8px; align-items: end; }
	.occ-row .occ-cell-name { grid-column: 1 / -1; }
	.occ-lbl { position: static; width: auto; height: auto; margin: 0 0 2px; overflow: visible; clip: auto; white-space: normal;
		display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
	.occ-row .js-occ-remove { justify-self: end; align-self: end; }
}
@media (max-width: 480px) {
	.g2, .g3, .g4, .g5 { grid-template-columns: 1fr; }
	.span2 { grid-column: auto; }
	.actions .btn { flex: 1; }
}
[hidden] { display: none !important; }

/* language switch (English | Español) and link back to the main site */
.brand-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.brand-back { font-size: .82rem; color: #fff; text-decoration: underline; opacity: .9; }
.brand-back:hover, .brand-back:focus { opacity: 1; }
.brand-link { color: #fff; text-decoration: none; display: inline-block; }
.brand-link:hover .brand-name, .brand-link:focus .brand-name { text-decoration: underline; }
.lang-switch { font-size: .9rem; }
.lang-switch a { color: #fff; text-decoration: underline; }
.lang-switch .current { font-weight: 700; color: var(--accent); }
.lang-switch .sep { opacity: .6; margin: 0 6px; }
@media (max-width: 600px) {
	.brand-top { flex-wrap: wrap; }
	.lang-switch { margin-left: auto; }
}

/* hidden default submit button (Enter = continue, never Back) */
.default-submit { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* pets 1-4 */
.pets .pet-h { margin: 14px 0 4px; font-size: 1rem; }
.veh-h { margin: 12px 0 2px; font-size: .95rem; }
.pets .js-pet-add { margin-top: 8px; }
