/* Energy Optimisation – components for calculator, forms, cards, dashboard.
   Colours come from the theme (theme.json presets) with fallbacks. */

:root {
	--eo-navy: var(--wp--preset--color--navy, #0f1f3d);
	--eo-ink: var(--wp--preset--color--ink, #1b2a41);
	--eo-muted: var(--wp--preset--color--muted, #5b6b82);
	--eo-accent: var(--wp--preset--color--amber, #f5a524);
	--eo-accent-dark: var(--wp--preset--color--amber-dark, #d98c0a);
	--eo-sky: var(--wp--preset--color--sky, #eef5fb);
	--eo-line: var(--wp--preset--color--line, #dce4ee);
	--eo-white: var(--wp--preset--color--white, #fff);
	--eo-green: var(--wp--preset--color--green, #1f8a5b);
	--eo-radius: 14px;
	--eo-shadow: 0 1px 2px rgba(15, 31, 61, .06), 0 8px 24px rgba(15, 31, 61, .08);
}

/* ---------- Buttons ---------- */
.eo-btn {
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .85em 1.4em; border-radius: 10px; border: 2px solid transparent;
	font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
	background: var(--eo-navy); color: var(--eo-white);
	transition: background .15s, transform .15s;
}
.eo-btn:hover { transform: translateY(-1px); }
.eo-btn:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 2px; }
.eo-btn--accent { background: var(--eo-accent); color: var(--eo-navy); }
.eo-btn--accent:hover { background: var(--eo-accent-dark); color: var(--eo-navy); }
.eo-btn--ghost { background: transparent; border-color: var(--eo-line); color: var(--eo-ink); }
.eo-btn--ghost:hover { border-color: var(--eo-navy); }
.eo-btn--block { display: flex; width: 100%; }
.eo-btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Calculator ---------- */
.eo-calc {
	display: grid; gap: 0; grid-template-columns: 1fr;
	background: var(--eo-white); color: var(--eo-ink);
	border-radius: var(--eo-radius); box-shadow: var(--eo-shadow); overflow: hidden;
	text-align: left;
}
@media (min-width: 820px) { .eo-calc { grid-template-columns: 1.1fr 1fr; } }
.eo-calc__form { padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; align-content: start; }
.eo-calc__title { margin: 0; font-size: 1.35rem; line-height: 1.25; color: var(--eo-navy); }
.eo-calc__result { background: var(--eo-navy); color: var(--eo-white); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; align-content: start; }
.eo-calc__eyebrow { margin: 0; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--eo-accent); }
.eo-calc__figures { margin: 0; display: grid; gap: 2px; }
.eo-calc__figures div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.eo-calc__figures dt { color: rgba(255, 255, 255, .78); }
.eo-calc__figures dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.eo-calc__total dd { color: var(--eo-accent); font-size: 1.5rem; }
.eo-calc__total dt { color: var(--eo-white); font-weight: 700; align-self: center; }
.eo-calc__note { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .65); line-height: 1.45; }

.eo-field { display: grid; gap: 6px; }
.eo-field > label, .eo-label, .eo-field legend { font-weight: 700; color: var(--eo-navy); font-size: .95rem; }
.eo-field label output { float: right; color: var(--eo-ink); font-variant-numeric: tabular-nums; }
.eo-hint { margin: 0; font-size: .82rem; color: var(--eo-muted); }
.eo-field--toggle { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eo-field--toggle legend { margin-bottom: 8px; padding: 0; }
.eo-field--toggle label {
	flex: 1 1 160px; display: flex; gap: 8px; align-items: center;
	padding: 10px 12px; border: 2px solid var(--eo-line); border-radius: 10px; cursor: pointer; font-weight: 600;
}
.eo-field--toggle label small { color: var(--eo-muted); font-weight: 400; }
.eo-field--toggle label:has(input:checked) { border-color: var(--eo-navy); background: var(--eo-sky); }
.eo-field input[type=range] { width: 100%; accent-color: var(--eo-accent); height: 28px; }

/* ---------- Forms ---------- */
.eo-quote { display: grid; gap: 20px; background: var(--eo-white); border-radius: var(--eo-radius); box-shadow: var(--eo-shadow); padding: clamp(20px, 4vw, 40px); color: var(--eo-ink); }
.eo-quote input[type=text], .eo-quote input:not([type]), .eo-quote input[type=email], .eo-quote input[type=tel], .eo-quote input[type=url],
.eo-quote select, .eo-quote textarea, .eo-login input[type=text], .eo-login input[type=password] {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--eo-ink);
	padding: 12px 14px; border: 2px solid var(--eo-line); border-radius: 10px; background: var(--eo-white);
}
.eo-quote input:focus, .eo-quote select:focus, .eo-quote textarea:focus { outline: none; border-color: var(--eo-navy); box-shadow: 0 0 0 3px rgba(245, 165, 36, .35); }
.eo-step { border: 0; margin: 0; padding: 0; display: grid; gap: 18px; min-width: 0; }
.eo-step[hidden] { display: none; }
.eo-step__title { font-size: 1.3rem; font-weight: 800; color: var(--eo-navy); padding: 0; margin-bottom: 4px; }
.eo-step__nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.eo-steps { display: none; }
.eo-quote.is-stepped .eo-steps { display: flex; list-style: none; margin: 0; padding: 0; gap: 6px; counter-reset: s; }
.eo-steps li { flex: 1; font-size: .8rem; font-weight: 700; color: var(--eo-muted); padding-top: 8px; border-top: 4px solid var(--eo-line); counter-increment: s; }
.eo-steps li::before { content: counter(s) ". "; }
.eo-steps li.is-active, .eo-steps li.is-done { border-color: var(--eo-accent); color: var(--eo-navy); }
.eo-choices { display: grid; gap: 10px; }
.eo-choices--inline { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.eo-choice { position: relative; cursor: pointer; }
.eo-choice input { position: absolute; opacity: 0; inset: 0; }
.eo-choice span { display: block; padding: 14px 16px; border: 2px solid var(--eo-line); border-radius: 10px; font-weight: 600; }
.eo-choice span::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -2px; border: 2px solid var(--eo-line); border-radius: 50%; }
.eo-choice input[type=checkbox] + span::before { border-radius: 4px; }
.eo-choice input:checked + span { border-color: var(--eo-navy); background: var(--eo-sky); }
.eo-choice input:checked + span::before { border-color: var(--eo-navy); background: var(--eo-accent); box-shadow: inset 0 0 0 3px var(--eo-sky); }
.eo-choice input:focus-visible + span { outline: 3px solid var(--eo-accent); outline-offset: 2px; }
.eo-grid-2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .eo-grid-2 { grid-template-columns: 1fr 1fr; } }
.eo-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--eo-muted); }
.eo-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--eo-navy); flex: none; }
.eo-quote__trust { margin: 0; text-align: center; font-size: .85rem; color: var(--eo-muted); }
.eo-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.eo-alert { margin: 0; padding: 12px 16px; border-radius: 10px; background: #fdecea; color: #8a1c12; font-weight: 600; }
.eo-success { padding: 16px 20px; border-radius: 10px; background: #e7f6ee; color: #135c3c; }
.eo-success h2 { margin-top: 0; }

/* ---------- Cards ---------- */
.eo-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.eo-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; background: var(--eo-white); border: 1px solid var(--eo-line); border-radius: var(--eo-radius); transition: box-shadow .15s, border-color .15s; }
.eo-card:hover { box-shadow: var(--eo-shadow); border-color: transparent; }
.eo-card__head { display: flex; gap: 14px; align-items: center; }
.eo-card__logo { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex: none; background: var(--eo-sky); }
.eo-card__logo--initials { display: grid; place-items: center; font-weight: 800; color: var(--eo-navy); font-size: 1.1rem; }
.eo-card__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.eo-card__title a { color: var(--eo-navy); text-decoration: none; }
.eo-card__title a::after { content: ""; position: absolute; inset: 0; }
.eo-card { position: relative; }
.eo-card__rating, .eo-card__meta { margin: 2px 0 0; font-size: .85rem; color: var(--eo-muted); }
.eo-card__text { margin: 0; color: var(--eo-ink); font-size: .95rem; }
.eo-card__link { margin-top: auto; font-weight: 700; color: var(--eo-navy); text-decoration: none; }
.eo-tags { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.eo-tags span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--eo-sky); color: var(--eo-navy); }
.eo-badges { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; color: var(--eo-green); font-weight: 600; }
.eo-badges li::before { content: "✓ "; }
.eo-stars { --eo-rating: 0; display: inline-block; font-size: 1rem; line-height: 1; font-family: Arial, sans-serif; letter-spacing: 1px; }
.eo-stars::before { content: "★★★★★"; background: linear-gradient(90deg, var(--eo-accent) calc(var(--eo-rating) / 5 * 100%), var(--eo-line) calc(var(--eo-rating) / 5 * 100%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.eo-empty { padding: 24px; border: 2px dashed var(--eo-line); border-radius: var(--eo-radius); text-align: center; }
.eo-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; font-weight: 700; }
.eo-filter select { font: inherit; padding: 10px 12px; border: 2px solid var(--eo-line); border-radius: 10px; }

/* ---------- Installer profile ---------- */
.eo-profile { padding: 24px; background: var(--eo-white); border: 1px solid var(--eo-line); border-radius: var(--eo-radius); display: grid; gap: 16px; }
.eo-profile__rating { margin: 0; }
.eo-profile__facts { margin: 0; display: grid; gap: 0; }
.eo-profile__facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--eo-line); font-size: .92rem; }
.eo-profile__facts dt { color: var(--eo-muted); }
.eo-profile__facts dd { margin: 0; font-weight: 600; }
.eo-profile__note { margin: 0; font-size: .82rem; color: var(--eo-muted); }

/* ---------- Suburb links ---------- */
.eo-suburbs { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.eo-suburbs h3 { font-size: 1rem; margin: 0 0 8px; }
.eo-suburbs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.eo-suburbs a { color: inherit; }

/* ---------- Dashboard ---------- */
.eo-dash { display: grid; gap: 20px; }
.eo-dash__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eo-dash__head h2 { margin: 4px 0 0; }
.eo-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.eo-stats div { padding: 16px; background: var(--eo-sky); border-radius: 12px; font-size: .85rem; color: var(--eo-muted); font-weight: 600; }
.eo-stats span { display: block; font-size: 1.8rem; font-weight: 800; color: var(--eo-navy); }
.eo-leads { display: grid; gap: 14px; }
.eo-lead { padding: 18px; border: 1px solid var(--eo-line); border-left: 5px solid var(--eo-accent); border-radius: 12px; background: var(--eo-white); }
.eo-lead--accepted { border-left-color: var(--eo-green); }
.eo-lead--declined { border-left-color: var(--eo-line); opacity: .7; }
.eo-lead header { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.eo-lead h4 { margin: 0; font-size: 1.1rem; }
.eo-lead h4 small { font-weight: 400; color: var(--eo-muted); }
.eo-lead dl { display: grid; gap: 6px 20px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 12px 0; font-size: .9rem; }
.eo-lead dt { color: var(--eo-muted); font-size: .8rem; }
.eo-lead dd { margin: 0; font-weight: 600; }
.eo-lead__actions { display: flex; gap: 10px; }
.eo-pill { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--eo-sky); color: var(--eo-navy); }
.eo-login { max-width: 420px; padding: 28px; border: 1px solid var(--eo-line); border-radius: var(--eo-radius); }
.eo-login form p { display: grid; gap: 6px; }
.eo-login .login-remember { display: block; }
.eo-login input[type=submit] { background: var(--eo-navy); color: #fff; border: 0; padding: 12px 20px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.eo-dash__foot { font-size: .9rem; color: var(--eo-muted); }

/* ---------- Back to top ---------- */
.eo-top { position: fixed; right: 16px; bottom: 16px; z-index: 55; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
	background: var(--eo-navy); color: var(--eo-white); box-shadow: 0 6px 18px rgba(15, 31, 61, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.eo-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.eo-top:hover { background: var(--eo-accent); color: var(--eo-navy); }
.eo-top:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 2px; }
@media (max-width: 781px) { .eo-top { bottom: 84px; right: 12px; width: 42px; height: 42px; } }

/* ---------- Quote popup ---------- */
.eo-pop { box-sizing: border-box; position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.eo-pop[hidden] { display: none; }
.eo-pop__backdrop { position: absolute; inset: 0; background: rgba(15, 31, 61, .55); opacity: 0; transition: opacity .2s; }
.eo-pop__box { box-sizing: border-box; position: relative; width: 100%; max-width: 480px; background: var(--eo-white); color: var(--eo-ink); border-radius: 18px; padding: 32px 28px 22px; box-shadow: 0 24px 60px rgba(15, 31, 61, .35);
	transform: translateY(16px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; }
.eo-pop.is-open .eo-pop__backdrop { opacity: 1; }
.eo-pop.is-open .eo-pop__box { transform: none; opacity: 1; }
.eo-pop__close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 28px; line-height: 1; color: var(--eo-muted); cursor: pointer; border-radius: 50%; }
.eo-pop__close:hover { background: var(--eo-sky); color: var(--eo-navy); }
.eo-pop__eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a5300; }
.eo-pop__title { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.2; color: var(--eo-navy); }
.eo-pop__text { margin: 0 0 18px; color: var(--eo-muted); }
.eo-pop__options { display: grid; gap: 10px; }
.eo-pop__opt { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 2px solid var(--eo-line); border-radius: 12px; font-weight: 700; color: var(--eo-navy); text-decoration: none; transition: border-color .15s, background .15s; }
.eo-pop__opt:hover, .eo-pop__opt:focus-visible { border-color: var(--eo-navy); background: var(--eo-sky); outline: none; }
.eo-pop__opt span { color: var(--eo-accent-dark); }
.eo-pop__later { display: block; margin: 14px auto 0; border: 0; background: none; color: var(--eo-muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }

/* Mobile: small bottom sheet, no full-screen overlay (Google penalises intrusive mobile popups). */
.eo-pop--sheet { inset: auto 0 0 0; padding: 0; display: block; }
.eo-pop--sheet .eo-pop__backdrop { display: none; }
.eo-pop--sheet .eo-pop__box { max-width: none; border-radius: 18px 18px 0 0; padding: 22px 18px 16px; transform: translateY(100%); }
.eo-pop--sheet.is-open .eo-pop__box { transform: none; }
.eo-pop--sheet .eo-pop__title { font-size: 1.2rem; padding-right: 30px; }
.eo-pop--sheet .eo-pop__text { margin-bottom: 12px; font-size: .92rem; }
.eo-pop--sheet .eo-pop__opt { padding: 11px 14px; }

/* ---------- Hanging "Get free quotes" tab (desktop) ---------- */
.eo-tab { display: none; }
@media (min-width: 782px) {
	.eo-tab { display: flex; flex-direction: column; align-items: center; gap: 8px; position: fixed; right: 0; top: 50%; z-index: 54; transform: translate(4px, -50%);
		padding: 16px 10px 18px; background: var(--eo-accent); color: var(--eo-navy); text-decoration: none; font-weight: 800; font-size: .95rem;
		border-radius: 12px 0 0 12px; box-shadow: -4px 6px 18px rgba(15, 31, 61, .2); transition: transform .2s, background .2s; }
	.eo-tab:hover, .eo-tab:focus-visible { transform: translate(0, -50%); background: var(--eo-accent-dark); color: var(--eo-navy); outline: none; }
	.eo-tab__text { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .02em; }
	.eo-tab__icon { font-size: 1.1rem; line-height: 1; }
}

/* ---------- Reviews ---------- */
.eo-stars-input { border: 0; padding: 0; margin: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.eo-stars-input legend { width: 100%; margin-bottom: 6px; }
.eo-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.eo-stars-input label { font-size: 2.2rem; line-height: 1; color: var(--eo-line); cursor: pointer; transition: color .1s; }
.eo-stars-input label:hover, .eo-stars-input label:hover ~ label, .eo-stars-input input:checked ~ label { color: var(--eo-accent); }
.eo-stars-input input:focus-visible + label { outline: 3px solid var(--eo-accent); outline-offset: 2px; border-radius: 4px; }
.eo-reviews { margin-top: 40px; }
.eo-reviews h2 { font-size: 1.5rem; }
.eo-reviews__summary { font-size: 1.05rem; }
.eo-review { padding: 18px 0; border-bottom: 1px solid var(--eo-line); }
.eo-review p { margin: 8px 0; }
.eo-review footer { font-size: .88rem; color: var(--eo-muted); }

/* ---------- Buy lead credits ---------- */
.eo-buy { padding: 22px; border: 1px solid var(--eo-line); border-radius: var(--eo-radius); background: var(--eo-white); }
.eo-buy h3 { margin-top: 0; }
.eo-buy__packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 14px 0; }
.eo-buy__pack { display: grid; gap: 6px; justify-items: start; padding: 18px; border: 2px solid var(--eo-line); border-radius: 12px; }
.eo-buy__pack strong { font-size: 1.2rem; color: var(--eo-navy); }
.eo-buy__pack span { font-size: 1.6rem; font-weight: 800; color: var(--eo-navy); }
.eo-buy__pack small { color: var(--eo-muted); }

/* ---------- AI chat widget ---------- */
.eo-chat { position: fixed; right: 16px; bottom: 16px; z-index: 70; font-size: 15px; }
.eo-chat__launch { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 99px; background: var(--eo-navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(15, 31, 61, .3); }
.eo-chat__launch:hover { background: var(--eo-navy2, #1d3460); }
.eo-chat__launch:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 3px; }
.eo-chat.is-open .eo-chat__launch { display: none; }
.eo-chat__panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(15, 31, 61, .3); overflow: hidden; }
.eo-chat__panel[hidden] { display: none; }
.eo-chat__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: var(--eo-navy); color: #fff; }
.eo-chat__head small { display: block; color: #cfd8e6; font-size: .78rem; }
.eo-chat__close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; cursor: pointer; }
.eo-chat__close:hover { background: rgba(255, 255, 255, .12); }
.eo-chat__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--eo-sky); }
.eo-chat__msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; word-wrap: break-word; }
.eo-chat__msg--assistant { align-self: flex-start; background: #fff; border: 1px solid var(--eo-line); border-bottom-left-radius: 4px; }
.eo-chat__msg--user { align-self: flex-end; background: var(--eo-navy); color: #fff; border-bottom-right-radius: 4px; }
.eo-chat__msg a { color: inherit; font-weight: 700; }
.eo-chat__msg.is-typing { color: var(--eo-muted); letter-spacing: 2px; }
.eo-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; background: var(--eo-sky); }
.eo-chat__chips:not(:empty) { padding-bottom: 10px; }
.eo-chat__chips button { border: 1px solid var(--eo-line); background: #fff; color: var(--eo-navy); border-radius: 99px; padding: 6px 11px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.eo-chat__chips button:hover { border-color: var(--eo-navy); }
.eo-chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--eo-line); }
.eo-chat__form textarea { flex: 1; resize: none; font: inherit; font-size: 16px; padding: 10px 12px; border: 2px solid var(--eo-line); border-radius: 12px; max-height: 110px; }
.eo-chat__form textarea:focus { outline: none; border-color: var(--eo-navy); }
.eo-chat__form button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--eo-accent); color: var(--eo-navy); cursor: pointer; display: grid; place-items: center; flex: none; }
.eo-chat__note { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: var(--eo-muted); line-height: 1.4; }
.eo-chat__note a { color: inherit; }
.eo-hp-label { position: absolute; left: -9999px; }
/* Keep the back-to-top and side tab clear of the chat button. */
.eo-has-chat .eo-top { bottom: 76px; }
@media (max-width: 781px) {
	.eo-chat { right: 12px; bottom: 82px; }
	.eo-chat__launch span { display: none; }
	.eo-chat__launch { padding: 13px; }
	.eo-chat.is-open { right: 0; bottom: 0; left: 0; top: 0; }
	.eo-chat__panel { position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; }
	.eo-has-chat .eo-top { bottom: 140px; }
}

/* ---------- Quote form: home / business switch + phone check ---------- */
.eo-quote-switch { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px; background: var(--eo-sky); border: 1px solid var(--eo-line); border-radius: 12px; }
.eo-quote-switch a { padding: .55em 1.1em; border-radius: 9px; font-weight: 700; color: var(--eo-muted); text-decoration: none; }
.eo-quote-switch a.is-active { background: var(--eo-white); color: var(--eo-navy); box-shadow: 0 1px 3px rgba(15, 31, 61, .12); }
.eo-verify { margin: 4px 0 12px; padding: 16px; border: 2px dashed var(--eo-accent); border-radius: 12px; background: #fffaf0; }
.eo-verify input { letter-spacing: .3em; font-size: 1.2rem; font-weight: 700; }

/* ---------- Featured listings ---------- */
.eo-feat-badge { display: inline-flex; align-items: center; gap: .3em; align-self: flex-start; padding: .25em .7em; border-radius: 999px; background: var(--eo-accent); color: var(--eo-navy); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.eo-card--featured { border: 2px solid var(--eo-accent); box-shadow: var(--eo-shadow); }
.eo-card__contact { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; font-weight: 700; }
.eo-card__contact a { color: var(--eo-navy); }
.eo-profile--featured { border-color: var(--eo-accent); }
.eo-profile .eo-btn--block + .eo-btn--block { margin-top: 8px; }
.eo-featured-box { border: 2px solid var(--eo-accent); }
.eo-feat-list { margin: 0 0 14px; padding-left: 1.2em; }
.eo-feat-list li { margin: 4px 0; }

/* ---------- How it works: numbered steps with Homes / Businesses switch ---------- */
.eo-how { margin: 24px 0; }
.eo-how__switch { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 24px; padding: 4px; background: var(--eo-sky); border: 1px solid var(--eo-line); border-radius: 999px; }
.eo-how__switch button { padding: .6em 1.4em; border: 0; border-radius: 999px; background: transparent; font: inherit; font-weight: 700; color: var(--eo-muted); cursor: pointer; }
.eo-how__switch button[aria-selected="true"] { background: var(--eo-navy); color: var(--eo-white); }
.eo-how__switch button:focus-visible { outline: 3px solid var(--eo-accent); outline-offset: 2px; }
.eo-how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.eo-how__step { position: relative; padding: 22px 20px 20px; background: var(--eo-white); border: 1px solid var(--eo-line); border-radius: var(--eo-radius); }
.eo-how__icon { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 12px; border-radius: 16px; background: var(--eo-sky); color: var(--eo-navy); }
.eo-how__num { position: absolute; top: -8px; right: -8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--eo-accent); color: var(--eo-navy); font-size: .85rem; font-weight: 800; }
.eo-how__title { margin: 0 0 6px; font-size: 1.1rem; line-height: 1.3; }
.eo-how__text { margin: 0; color: var(--eo-muted); font-size: .95rem; }
.eo-how__cta { margin: 24px 0 0; text-align: center; }
/* Arrows between steps: down on phones, across on wider screens. */
.eo-how__step:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -15px; width: 14px; height: 14px; margin-left: -7px; border-right: 3px solid var(--eo-accent); border-bottom: 3px solid var(--eo-accent); transform: rotate(45deg); background: transparent; z-index: 1; }
@media (min-width: 900px) {
	.eo-how__list { grid-template-columns: repeat(4, 1fr); gap: 28px; }
	.eo-how__step:not(:last-child)::after { left: auto; right: -22px; top: 50%; bottom: auto; margin: -7px 0 0; transform: rotate(-45deg); }
}

/* ---------- Why trust us ---------- */
.eo-trust__title { text-align: center; margin: 0 0 24px; }
.eo-trust__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .eo-trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .eo-trust__grid { grid-template-columns: repeat(3, 1fr); } }
.eo-trust__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; background: var(--eo-white); border: 1px solid var(--eo-line); border-radius: var(--eo-radius); }
.eo-trust__item svg { flex: none; margin-top: 2px; color: var(--eo-green); }
.eo-trust__item h3 { margin: 0 0 4px; font-size: 1rem; }
.eo-trust__item p { margin: 0; color: var(--eo-muted); font-size: .92rem; }

/* ---------- Commercial calculator ---------- */
.eo-calc--commercial select { box-sizing: border-box; width: 100%; font: inherit; padding: 12px 14px; border: 2px solid var(--eo-line); border-radius: 10px; background: var(--eo-white); }
.eo-trust .eo-trust__title { text-align: center; }
.eo-trust__grid > li::before, .eo-how__list > li::before { content: none !important; display: none !important; }
.eo-trust__grid > li, .eo-how__list > li { list-style: none; margin: 0; }
.eo-feat-badge { width: max-content; justify-self: start; }
.eo-card .eo-feat-badge { position: absolute; top: -12px; left: 18px; }
