/* ADU cost + rent calculator (assets/calculator.js). Picks on the left, results on the right; one column on phones.
   The page puts it in a wide group so the two columns have room on desktop. */
.ennis-calc { --ec-ink: var(--wp--preset--color--ink, #151515); --ec-muted: var(--wp--preset--color--muted, #5f5f5a); --ec-line: var(--wp--preset--color--line, #e2e0d8);
	--ec-surface: var(--wp--preset--color--surface, #f5f4ef); --ec-brand: var(--wp--preset--color--brand, #77be43); --ec-brand-dark: var(--wp--preset--color--brand-dark, #3f6b1f);
	--ec-tint: var(--wp--preset--color--brand-tint, #eef6e7);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; color: var(--ec-ink); font-size: 16px; }
.ec-form { display: grid; gap: 18px; min-width: 0; position: sticky; top: 100px; }
.ec-step { border: 1px solid var(--ec-line); border-radius: 10px; padding: 16px 18px 18px; margin: 0; background: #fff; min-width: 0; }
.ec-step legend { font: 600 1.05rem/1.2 var(--wp--preset--font-family--heading, inherit); padding: 0 6px; display: flex; align-items: center; gap: 8px; }
.ec-note { border: 1px solid var(--ec-line); border-radius: 10px; padding: 16px 18px; background: var(--ec-surface); }
.ec-note-h { margin: 0 0 8px; font: 600 1rem/1.2 var(--wp--preset--font-family--heading, inherit); }
.ec-note ul { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.ec-note li { padding-left: 22px; position: relative; }
.ec-note li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 5px; border-left: 2px solid var(--ec-brand-dark); border-bottom: 2px solid var(--ec-brand-dark); transform: rotate(-45deg); }
.ec-step legend span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ec-brand); font-size: .85rem; }
.ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ec-grid label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; min-width: 0; }
.ec-grid select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #c9c7be; border-radius: 6px; background: #fff; width: 100%; min-width: 0; box-sizing: border-box; color: var(--ec-ink); }
.ec-grid select:focus-visible { outline: 2px solid var(--ec-brand-dark); outline-offset: 1px; }
.ec-wide { grid-column: 1 / -1; }
.ec-plan { margin: 12px 0 0; font-size: .9rem; color: var(--ec-muted); }
.ec-plan a { font-weight: 600; }
.ec-out { background: var(--ec-surface); border: 1px solid var(--ec-line); border-radius: 12px; padding: 22px; display: grid; gap: 16px; min-width: 0; }
.ec-eyebrow { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ec-brand-dark); }
.ec-total { margin: 4px 0 0; font: 600 clamp(1.9rem, 4vw, 2.5rem)/1.1 var(--wp--preset--font-family--heading, inherit); font-variant-numeric: tabular-nums; }
.ec-mid { margin: 4px 0 0; color: var(--ec-muted); }
.ec-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ec-card { background: #fff; border: 1px solid var(--ec-line); border-radius: 8px; padding: 12px; min-width: 0; }
.ec-card.is-accent { background: var(--ec-tint); border-color: #cfe5bd; grid-column: 1 / -1; }
.ec-card.is-wide { grid-column: 1 / -1; }
.ec-card.is-accent .ec-v { font-size: 1.6rem; }
.ec-k { margin: 0; font-size: .8rem; color: var(--ec-muted); }
.ec-v { margin: 2px 0 0; font: 600 1.35rem/1.2 var(--wp--preset--font-family--heading, inherit); font-variant-numeric: tabular-nums; }
.ec-v span { font-size: .8rem; font-weight: 400; color: var(--ec-muted); }
.ec-s { margin: 3px 0 0; font-size: .78rem; color: var(--ec-muted); }
.ec-break { background: #fff; border: 1px solid var(--ec-line); border-radius: 8px; padding: 10px 14px; }
.ec-break summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 2rem; }
.ec-break summary::-webkit-details-marker { display: none; }
.ec-break summary::after { content: "+"; position: absolute; right: 0; top: -0.15rem; font-size: 1.4rem; line-height: 1; color: var(--ec-brand-dark); }
.ec-break[open] summary::after { content: "\2013"; }
.ec-break table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ec-break th { text-align: left; font-size: .78rem; color: var(--ec-muted); border-bottom: 1px solid var(--ec-line); padding: 6px 0; }
.ec-break td { padding: 7px 0; border-bottom: 1px solid var(--ec-line); vertical-align: top; }
.ec-break td:last-child, .ec-break th:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.ec-break td span { display: block; font-size: .78rem; color: var(--ec-muted); }
.ec-break .ec-sum td { font-weight: 600; border-bottom: 0; }
.ec-break .ec-fine { margin-top: 8px; }
.ec-next p { margin: 0 0 10px; }
.ec-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ec-btn { display: inline-block; background: var(--ec-brand); color: var(--ec-ink); padding: 12px 18px; border-radius: 4px; font: 600 .78rem/1.2 var(--wp--preset--font-family--heading, inherit); text-transform: uppercase; letter-spacing: .1em; text-decoration: none; }
.ec-btn.is-ghost { background: transparent; border: 2px solid var(--ec-ink); padding: 9px 16px; }
.ec-btn:hover, .ec-btn:focus-visible { background: var(--ec-brand-dark); color: #fff; border-color: var(--ec-brand-dark); }
.ec-warn { margin: 0; padding: 10px 12px; border-left: 3px solid #c98a1b; background: #fff8ea; font-size: .9rem; border-radius: 4px; }
.ec-fine { margin: 0; font-size: .78rem; color: var(--ec-muted); }
.ec-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
	.ennis-calc { grid-template-columns: minmax(0, 1fr); }
	.ec-form { position: static; }
	.ec-note { display: none; }
}
@media (max-width: 520px) {
	.ec-grid { grid-template-columns: minmax(0, 1fr); }
	.ec-step { padding: 14px; }
	.ec-out { padding: 16px; }
}

/* ADU plan finder ([ennis_adu_plan_finder], assets/plan-finder.js): picks on the left, matching plans on the right */
.ennis-finder { --ec-ink: var(--wp--preset--color--ink, #151515); --ec-muted: var(--wp--preset--color--muted, #5f5f5a); --ec-line: var(--wp--preset--color--line, #e2e0d8);
	--ec-surface: var(--wp--preset--color--surface, #f5f4ef); --ec-brand: var(--wp--preset--color--brand, #77be43); --ec-brand-dark: var(--wp--preset--color--brand-dark, #3f6b1f);
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; color: var(--ec-ink); font-size: 16px; }
.ef-form { display: grid; gap: 14px; min-width: 0; position: sticky; top: 100px; }
.ef-q { border: 1px solid var(--ec-line); border-radius: 10px; padding: 12px 16px 16px; margin: 0; background: #fff; min-width: 0; }
.ef-q legend { font: 600 1rem/1.2 var(--wp--preset--font-family--heading, inherit); padding: 0 6px; }
.ef-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-chip { position: relative; }
.ef-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ef-chip span { display: inline-block; padding: 8px 12px; border: 1px solid #c9c7be; border-radius: 999px; font-size: .9rem; cursor: pointer; background: #fff; }
.ef-chip input:checked + span { background: var(--ec-ink); border-color: var(--ec-ink); color: #fff; }
.ef-chip input:focus-visible + span { outline: 2px solid var(--ec-brand-dark); outline-offset: 2px; }
.ennis-finder .ec-grid select { font: inherit; padding: 9px 10px; border: 1px solid #c9c7be; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
.ennis-finder .ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.ennis-finder .ec-grid label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; min-width: 0; }
.ef-out { background: var(--ec-surface); border: 1px solid var(--ec-line); border-radius: 12px; padding: 22px; display: grid; gap: 14px; min-width: 0; }
.ennis-finder .ec-eyebrow { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ec-brand-dark); }
.ef-cards { display: grid; gap: 10px; }
.ef-card { background: #fff; border: 1px solid var(--ec-line); border-radius: 8px; padding: 14px 16px; }
.ef-card.is-best { border: 2px solid var(--ec-brand); }
.ef-tag { margin: 0 0 4px; display: inline-block; background: var(--ec-brand); color: var(--ec-ink); font: 600 .7rem/1 var(--wp--preset--font-family--heading, inherit); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 3px; }
.ef-name { margin: 2px 0 2px; font-size: 1.25rem; }
.ef-spec, .ef-sub { margin: 2px 0; font-size: .88rem; color: var(--ec-muted); }
.ef-price { margin: 6px 0 2px; font: 600 1.35rem/1.2 var(--wp--preset--font-family--heading, inherit); font-variant-numeric: tabular-nums; }
.ef-price span { font-size: .85rem; font-weight: 400; color: var(--ec-muted); }
.ef-links { margin: 8px 0 0; font-size: .9rem; font-weight: 600; }
.ef-more, .ef-guide { margin: 0; font-size: .92rem; }
.ef-next p { margin: 0 0 10px; }
.ef-copied { margin: 0; font-size: .85rem; color: var(--ec-brand-dark); }
.ennis-finder .ec-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.ennis-finder button.ec-btn { cursor: pointer; font-family: inherit; }
@media (max-width: 900px) {
	.ennis-finder { grid-template-columns: minmax(0, 1fr); }
	.ef-form { position: static; }
}
@media (max-width: 520px) {
	.ennis-finder .ec-grid { grid-template-columns: minmax(0, 1fr); }
	.ef-out { padding: 16px; }
}
/* Plan finder cards with the plan's rendering, the "Also fits" list, and the phone jump button */
.ef-card.has-img { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; }
.ef-img { width: 100%; height: 100%; min-height: 110px; max-height: 170px; object-fit: cover; border-radius: 6px; display: block; }
.ef-more p { margin: 0 0 6px; font-weight: 600; font-size: .9rem; }
.ef-more ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ef-more li { background: #fff; border: 1px solid var(--ec-line); border-radius: 999px; padding: 5px 10px; font-size: .85rem; }
.ef-more li span { color: var(--ec-muted); }
.ef-jump { display: none; }
@media (max-width: 900px) {
	.ef-jump:not([hidden]) { display: block; position: fixed; left: 50%; transform: translateX(-50%); bottom: 76px; z-index: 9998;
		background: var(--wp--preset--color--ink, #151515); color: #fff; border: 0; border-radius: 999px; padding: 11px 18px; font: 600 .85rem/1 var(--wp--preset--font-family--heading, inherit);
		box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
}
@media (max-width: 520px) {
	.ef-card.has-img { grid-template-columns: minmax(0, 1fr); }
	.ef-img { max-height: 180px; }
	.ennis-finder .ec-cta .ec-btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
}

/* Ways to pay ([ennis_adu_payments], assets/adu-payments.js) */
.ennis-payments { --ec-ink: var(--wp--preset--color--ink, #151515); --ec-muted: var(--wp--preset--color--muted, #5f5f5a); --ec-line: var(--wp--preset--color--line, #e2e0d8);
	--ec-surface: var(--wp--preset--color--surface, #f5f4ef); --ec-brand: var(--wp--preset--color--brand, #77be43);
	--ec-brand-dark: var(--wp--preset--color--brand-dark, #3f6b1f); display: grid; gap: 14px; font-size: 16px; color: var(--ec-ink); }
.ennis-payments .ec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 14px; }
.ennis-payments .ec-grid label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; min-width: 0; }
.ennis-payments .ec-grid select { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #c9c7be; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; }
.ennis-payments .ec-wide { grid-column: auto; }
.ep-head { margin: 4px 0 12px; font-size: 1.02rem; }
.wp-block-table.ennis-compare.ep-table table { min-width: 0; }
.ep-table th[scope=row] { font-weight: 600; text-align: left; vertical-align: top; }
.ep-table th[scope=row] span { display: block; font-weight: 400; font-size: .82rem; color: var(--ec-muted); margin-top: 3px; }
.ep-table td { white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: top; }
.ep-table td.is-plus { color: var(--ec-brand-dark); font-weight: 600; }
.ep-table td.is-minus { color: #9a3b1a; font-weight: 600; }
.wp-block-table.ennis-compare.ep-table tbody tr:nth-child(even) th { background: var(--wp--preset--color--surface); }
@media (max-width: 600px) {
	.ennis-payments .ec-grid { grid-template-columns: minmax(0, 1fr); }
	.wp-block-table.ennis-compare.ep-table tbody tr:nth-child(n) th { background: none; }
	.wp-block-table.ennis-compare.ep-table::before { content: none; }
	.wp-block-table.ennis-compare.ep-table tbody tr:nth-child(n) td { background: none; }
	.ep-table thead { display: none; }
	.ep-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 14px 12px; border-bottom: 1px solid var(--ec-line); }
	.ep-table td:nth-of-type(2), .ep-table td:nth-of-type(3) { font-size: 1.15rem; font-weight: 700; }
	.ep-table th[scope=row] { grid-column: 1 / -1; border: 0 !important; padding: 0 !important; }
	.ep-table td { border: 0 !important; padding: 0 !important; white-space: normal; }
	.ep-table td:nth-of-type(1)::before { content: "Interest rate: "; color: var(--ec-muted); font-weight: 400; font-size: .9rem; }
	.ep-table td:nth-of-type(2)::before { content: "Payment: "; color: var(--ec-muted); font-weight: 400; font-size: .9rem; }
	.ep-table td:nth-of-type(3) { grid-column: 1 / -1; }
	.ep-table td:nth-of-type(3)::before { content: "After rent and costs: "; color: var(--ec-muted); font-weight: 400; font-size: .9rem; }
}

/* "Send my picks" quick form (assets/lead-form.js) inside the calculator, plan finder and payment table */
.el-box { margin-top: 14px; padding: 18px; border: 1px solid var(--ec-line, #e2e0d8); border-radius: 10px; background: #fff; color: var(--ec-ink, #151515); }
.el-title { margin: 0 0 6px; font-weight: 700; font-size: 1.05rem; }
.el-picks { margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: var(--wp--preset--color--surface, #f4f3ef); font-size: .9rem; color: var(--ec-muted, #5f5f5a); }
.el-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.el-grid label { display: grid; gap: 5px; font-size: .9rem; font-weight: 600; min-width: 0; }
.el-grid label em { font-style: normal; font-weight: 400; color: var(--ec-muted, #5f5f5a); }
.el-grid input, .el-grid textarea { font: inherit; font-weight: 400; padding: 9px 10px; border: 1px solid #c9c7be; border-radius: 6px; background: #fff; width: 100%; box-sizing: border-box; color: inherit; }
.el-grid input:focus-visible, .el-grid textarea:focus-visible { outline: 3px solid var(--wp--preset--color--brand, #7ab648); outline-offset: 1px; }
.el-grid .el-wide { grid-column: 1 / -1; }
.el-hp, .el-grid .el-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.el-note { margin: 10px 0 0; font-size: .82rem; color: var(--ec-muted, #5f5f5a); }
.el-box .ec-cta { margin: 12px 0 0; }
.el-status { margin: 8px 0 0; font-size: .9rem; font-weight: 600; color: #9a3b1a; }
.el-status:empty { display: none; }
.el-done p { margin: 0 0 6px; }
.el-done:focus { outline: none; }
.ep-next { margin-top: 6px; }
.ep-next > p:first-child { margin: 0 0 8px; font-weight: 600; }
@media (max-width: 600px) {
	.el-grid { grid-template-columns: minmax(0, 1fr); }
	.el-box { padding: 14px; }
}
button.ec-btn { cursor: pointer; border: 0; font-family: var(--wp--preset--font-family--heading, inherit); }
/* Long plan names (Spanish ones especially) never widen a column past the screen. */
.ennis-calc select, .ennis-finder select, .ennis-payments select { max-width: 100%; min-width: 0; }
.ec-out, .ef-out { grid-template-columns: minmax(0, 1fr); }
.ec-out > *, .ef-out > *, .ef-cards > * { min-width: 0; }
.ec-break table { table-layout: fixed; }
.ec-break th:last-child, .ec-break td:last-child { width: 6.5em; }
.ec-break td:first-child { overflow-wrap: anywhere; }
.ec-v, .ef-price, .ec-total { overflow-wrap: anywhere; }
.ec-cta .ec-btn { max-width: 100%; box-sizing: border-box; white-space: normal; }
/* The quick form standing alone as a page's contact form ([ennis_lead_form]) */
.ennis-leadform { --ec-ink: var(--wp--preset--color--ink, #151515); --ec-muted: var(--wp--preset--color--muted, #5f5f5a); --ec-line: var(--wp--preset--color--line, #e2e0d8);
	--ec-brand: var(--wp--preset--color--brand, #77be43); --ec-brand-dark: var(--wp--preset--color--brand-dark, #3f6b1f); font-size: 16px; color: var(--ec-ink); }
.ennis-leadform .el-box { margin: 0; padding: 20px 18px; border: 0; background: transparent; }

/* Phones: the result buttons stack full width, all the same size (audit 14) */
@media (max-width: 600px) {
	.ennis-calc .ec-cta .ec-btn, .ennis-payments .ec-cta .ec-btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
}
