/* ST Accountancy Estimator — front end.
   Scoped under .ste-* so it sits inside any theme without bleeding. */

.ste-app, .ste-results-wrap, .ste-pricelist {
	--ste-accent: #2f72d6;
	--ste-accent-dark: #1f57ab;
	--ste-accent-soft: #eaf1fc;
	--ste-ink: #0f172a;
	--ste-ink-soft: #5b6878;
	--ste-rule: #e2e8f0;
	--ste-surface: #ffffff;
	--ste-bg: #f6f8fb;
	--ste-good: #15803d;
	--ste-warn: #b45309;
	--ste-warn-soft: #fff7ed;
	--ste-radius: 12px;
	--ste-shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px -12px rgba(15,23,42,.18);
	font-family: inherit;
	color: var(--ste-ink);
	box-sizing: border-box;
}
.ste-app *, .ste-results-wrap *, .ste-pricelist * { box-sizing: border-box; }

.ste-app { max-width: 920px; margin: 0 auto; padding: 40px 16px 8px; }
/* On a full-width page template there is no section padding to sit in. */
@media (max-width: 640px) { .ste-app { padding-top: 28px; } }

/* ---------- intro ---------- */
.ste-intro { text-align: center; margin: 0 0 28px; }
.ste-intro h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: 0 0 10px; color: var(--ste-ink); }
.ste-intro p { margin: 0 auto; max-width: 52ch; color: var(--ste-ink-soft); font-size: 1.02rem; line-height: 1.5; }

/* ---------- progress ---------- */
.ste-progress { display: flex; gap: 4px; margin: 0 0 26px; flex-wrap: wrap; justify-content: center; }
.ste-pstep {
	display: flex; align-items: center; gap: 7px; background: none; border: 0;
	padding: 6px 10px; border-radius: 999px; cursor: default; color: var(--ste-ink-soft);
	font-size: .82rem; font-family: inherit; line-height: 1;
}
.ste-pstep.is-done { cursor: pointer; color: var(--ste-ink); }
.ste-pstep.is-now { background: var(--ste-accent-soft); color: var(--ste-accent-dark); font-weight: 600; }
.ste-pstep__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ste-rule); flex: none; transition: background .2s; }
.ste-pstep.is-done .ste-pstep__dot { background: var(--ste-good); }
.ste-pstep.is-now .ste-pstep__dot { background: var(--ste-accent); }
@media (max-width: 640px) { .ste-pstep__label { display: none; } .ste-pstep { padding: 8px; } }

/* ---------- screens ---------- */
.ste-body { background: var(--ste-surface); border: 1px solid var(--ste-rule); border-radius: var(--ste-radius); padding: 28px 24px; box-shadow: var(--ste-shadow); }
@media (max-width: 560px) { .ste-body { padding: 20px 16px; } }

.ste-screen { display: block; }
.ste-screen.ste-in { opacity: 0; transform: translateY(8px); }
.ste-screen { transition: opacity .28s ease, transform .28s ease; }

.ste-q { font-size: 1.3rem; line-height: 1.3; margin: 0 0 6px; color: var(--ste-ink); font-weight: 600; }
.ste-q--sm { font-size: 1.05rem; margin-top: 4px; }
.ste-qsub { margin: 0 0 18px; color: var(--ste-ink-soft); font-size: .95rem; line-height: 1.5; max-width: 60ch; }
.ste-hint { margin: 14px 0 0; font-size: .88rem; color: var(--ste-ink-soft); }
.ste-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--ste-rule); }
.ste-block:first-of-type { margin-top: 18px; }
.ste-reveal { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ste-rule); animation: ste-fade .32s ease both; }
@keyframes ste-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- option cards ---------- */
.ste-app ul.ste-cards { list-style: none !important; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ste-cards--dense { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.ste-app ul.ste-cards > li {
	margin: 0; padding: 0; list-style: none !important; list-style-type: none !important;
	display: block; text-indent: 0;
}
.ste-app ul.ste-cards > li::before, .ste-app ul.ste-cards > li::marker { content: none !important; display: none !important; }
.ste-app ul.ste-lines, .ste-results-wrap ul.ste-lines { list-style: none !important; }
.ste-app ul.ste-lines > li::before, .ste-results-wrap ul.ste-lines > li::before { content: none !important; }

.ste-card {
	position: relative; width: 100%; height: 100%;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
	background: var(--ste-surface); border: 2px solid var(--ste-rule); border-radius: 10px;
	padding: 18px 12px 14px; cursor: pointer; text-align: center; font-family: inherit;
	transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ste-card:hover { border-color: #b9c6d8; transform: translateY(-2px); box-shadow: var(--ste-shadow); }
.ste-card:focus-visible { outline: 3px solid var(--ste-accent); outline-offset: 2px; }
.ste-card.is-on { border-color: var(--ste-accent); background: var(--ste-accent-soft); }
.ste-card__icon { width: 54px; height: 54px; object-fit: contain; margin-bottom: 2px; }
.ste-cards--dense .ste-card__icon { width: 44px; height: 44px; }
.ste-card__glyph { display: block; color: var(--ste-accent); margin-bottom: 4px; }
.ste-card__glyph svg { width: 34px; height: 34px; display: block; }
.ste-card.is-on .ste-card__glyph { color: var(--ste-accent-dark); }
.ste-card__label { font-weight: 600; font-size: .95rem; line-height: 1.25; color: var(--ste-ink); }
.ste-card__blurb { font-size: .8rem; color: var(--ste-ink-soft); line-height: 1.35; }
.ste-card__price { margin-top: auto; padding-top: 8px; font-size: .82rem; font-weight: 600; color: var(--ste-accent-dark); font-variant-numeric: tabular-nums; line-height: 1.3; }
.ste-card.is-on .ste-card__price { color: var(--ste-accent-dark); }

.ste-card__tick {
	position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%;
	border: 2px solid var(--ste-rule); background: #fff; color: #fff;
	display: flex; align-items: center; justify-content: center; transition: all .16s ease;
}
.ste-card__tick svg { width: 14px; height: 14px; opacity: 0; transition: opacity .16s ease; }
.ste-card.is-on .ste-card__tick { background: var(--ste-accent); border-color: var(--ste-accent); }
.ste-card.is-on .ste-card__tick svg { opacity: 1; }

/* info bubble */
.ste-info {
	position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; border-radius: 50%;
	border: 1.5px solid var(--ste-rule); color: var(--ste-ink-soft); background: #fff;
	font-size: .72rem; font-weight: 700; line-height: 17px; cursor: help;
}
.ste-info:hover, .ste-info:focus { border-color: var(--ste-accent); color: var(--ste-accent); }
.ste-info::after {
	content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 0;
	width: 230px; padding: 10px 12px; border-radius: 8px; background: var(--ste-ink); color: #fff;
	font-size: .76rem; font-weight: 400; line-height: 1.45; text-align: left;
	opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 20; pointer-events: none;
	box-shadow: 0 10px 30px -10px rgba(15,23,42,.5);
}
.ste-info:hover::after, .ste-info:focus::after { opacity: 1; visibility: visible; }

/* ---------- fields ---------- */
.ste-field { margin-top: 16px; }
.ste-field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--ste-ink); }
.ste-field input[type="text"], .ste-field input[type="email"], .ste-field input[type="tel"] {
	width: 100%; padding: 12px 14px; border: 2px solid var(--ste-rule); border-radius: 9px;
	font-size: 1rem; font-family: inherit; color: var(--ste-ink); background: #fff;
	transition: border-color .15s ease;
}
.ste-field input:focus { outline: none; border-color: var(--ste-accent); }
.ste-opt { font-weight: 400; color: var(--ste-ink-soft); font-size: .84rem; }
.ste-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- nav ---------- */
.ste-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.ste-back, .ste-next {
	font-family: inherit; font-size: .98rem; font-weight: 600; border-radius: 9px; cursor: pointer;
	padding: 12px 20px; border: 2px solid transparent; transition: all .16s ease;
}
.ste-back { background: none; border-color: var(--ste-rule); color: var(--ste-ink-soft); }
.ste-back:hover { border-color: #b9c6d8; color: var(--ste-ink); }
.ste-next { background: var(--ste-accent); color: #fff; }
.ste-next:hover { background: var(--ste-accent-dark); }
.ste-next.is-off { background: var(--ste-rule); color: #94a3b8; cursor: not-allowed; }

/* ---------- running total ---------- */
.ste-ticker {
	position: sticky; bottom: 0; z-index: 10; margin-top: 16px;
	display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
	background: var(--ste-ink); color: #fff; border-radius: 10px;
	padding: 13px 18px calc(13px + env(safe-area-inset-bottom, 0px));
	box-shadow: 0 -4px 24px -12px rgba(15,23,42,.45);
}
.ste-ticker__k { font-size: .84rem; opacity: .75; }
.ste-ticker__v { font-size: 1.05rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.ste-ticker__v b { font-weight: 700; font-size: 1.18rem; }
.ste-ticker__v i { font-style: normal; opacity: .6; margin: 0 4px; font-size: .86rem; }
.ste-ticker__v em { font-style: normal; opacity: .7; font-size: .8rem; }
.ste-ticker__vat { font-size: .8rem; opacity: .7; }
@media (max-width: 480px) { .ste-ticker__v { margin-left: 0; width: 100%; } }

/* ---------- opt-in ---------- */
.ste-screen--optin { max-width: 480px; margin: 0 auto; }
.ste-optin { text-align: center; }
.ste-optin__eyebrow { margin: 0 0 6px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ste-accent); font-weight: 700; }
.ste-optin__h { font-size: 1.5rem; margin: 0 0 16px; font-weight: 600; }
.ste-optin__fig {
	background: var(--ste-accent-soft); border-radius: 12px; padding: 20px 16px; margin-bottom: 14px;
	font-size: 1rem; color: var(--ste-accent-dark); font-variant-numeric: tabular-nums;
}
.ste-optin__fig span { display: inline-block; font-size: 1.7rem; font-weight: 700; color: var(--ste-ink); }
.ste-optin__fig i { font-style: normal; opacity: .55; margin: 0 8px; }
.ste-optin__sub { margin: 0 0 20px; color: var(--ste-ink-soft); font-size: .92rem; line-height: 1.5; }
.ste-form { text-align: left; }
.ste-submit {
	width: 100%; margin-top: 18px; padding: 15px 20px; border: 0; border-radius: 10px;
	background: var(--ste-accent); color: #fff; font-size: 1.05rem; font-weight: 600;
	font-family: inherit; cursor: pointer; transition: background .16s ease;
}
.ste-submit:hover { background: var(--ste-accent-dark); }
.ste-fine { margin: 12px 0 0; font-size: .8rem; color: var(--ste-ink-soft); line-height: 1.5; }
.ste-error { margin: 0 0 14px; padding: 11px 14px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: .9rem; border-left: 3px solid #dc2626; }

/* ---------- results ---------- */
.ste-reshead { text-align: center; margin-bottom: 22px; }
.ste-resgroup { margin-top: 20px; }
.ste-resgroup__h { font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ste-ink-soft); margin: 0 0 8px; font-weight: 700; }
.ste-lines { list-style: none; margin: 0; padding: 0; }
.ste-lines li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ste-rule); font-size: .97rem; }
.ste-lines li span { display: flex; flex-direction: column; }
.ste-lines li em { font-style: normal; font-size: .82rem; color: var(--ste-ink-soft); margin-top: 2px; }
.ste-lines li b { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.ste-resgroup.is-bespoke .ste-lines li b { color: var(--ste-warn); }
.ste-note { margin: 14px 0 0; padding: 12px 15px; background: var(--ste-warn-soft); border-left: 3px solid var(--ste-warn); border-radius: 0 8px 8px 0; font-size: .88rem; color: #7c2d12; line-height: 1.5; }
.ste-restotal {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
	margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ste-ink);
}
.ste-restotal span { font-size: .95rem; color: var(--ste-ink-soft); }
.ste-restotal strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }

.ste-addons { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ste-rule); }
.ste-addon { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 15px; border: 1px solid var(--ste-rule); border-radius: 10px; margin-bottom: 10px; }
.ste-addon strong { display: block; font-size: .98rem; }
.ste-addon p { margin: 3px 0 0; font-size: .86rem; color: var(--ste-ink-soft); line-height: 1.45; }
.ste-addon__r { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ste-addon__r span { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ste-addbtn { padding: 9px 15px; border: 2px solid var(--ste-accent); background: #fff; color: var(--ste-accent-dark); border-radius: 8px; font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ste-addbtn:hover { background: var(--ste-accent); color: #fff; }

.ste-next-step {
	margin-top: 26px; padding: 26px 24px; border-radius: 14px; text-align: center;
	background: linear-gradient(180deg, var(--ste-accent-soft), #fff);
	border: 2px solid var(--ste-accent);
}
.ste-next-step h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 600; color: var(--ste-ink); }
.ste-next-step p { margin: 0 auto 18px; max-width: 46ch; font-size: .93rem; line-height: 1.55; color: var(--ste-ink-soft); }
.ste-cta {
	display: inline-block; padding: 16px 34px; border-radius: 10px;
	background: var(--ste-accent); color: #fff !important; text-decoration: none;
	font-size: 1.06rem; font-weight: 700; line-height: 1.2;
	box-shadow: 0 10px 22px -10px rgba(47,114,214,.8);
	transition: background .16s ease, transform .16s ease;
}
.ste-cta:hover { background: var(--ste-accent-dark); transform: translateY(-1px); color: #fff !important; }
.ste-cta:focus-visible { outline: 3px solid var(--ste-ink); outline-offset: 3px; }
.ste-next-step__alt { display: block; margin-top: 14px; font-size: .88rem; color: var(--ste-ink-soft); }
.ste-next-step__alt a { color: var(--ste-ink); font-weight: 600; }
@media (max-width: 480px) { .ste-cta { display: block; padding: 16px 20px; } }

.ste-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; justify-content: center; }
.ste-btn { display: inline-block; padding: 13px 22px; border-radius: 9px; text-decoration: none; font-weight: 600; font-size: .98rem; border: 2px solid var(--ste-rule); color: var(--ste-ink); }
.ste-btn:hover { border-color: #b9c6d8; }
.ste-btn--primary { background: var(--ste-accent); border-color: var(--ste-accent); color: #fff; }
.ste-btn--primary:hover { background: var(--ste-accent-dark); border-color: var(--ste-accent-dark); color: #fff; }
.ste-btn--ghost { border-style: dashed; color: var(--ste-ink-soft); }

/* ---------- standalone results page ---------- */
.ste-results-body { margin: 0; background: #f6f8fb; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: #0f172a; }
.ste-results-wrap { max-width: 620px; margin: 0 auto; padding: 40px 16px; }
.ste-paper { background: #fff; border-radius: 14px; padding: 32px 28px; box-shadow: var(--ste-shadow); text-align: left; }
.ste-paper h1 { font-size: 1.6rem; margin: 0 0 6px; }
.ste-eyebrow { margin: 0 0 6px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ste-accent); font-weight: 700; }
.ste-sub { margin: 0 0 22px; color: var(--ste-ink-soft); font-size: .92rem; }
.ste-grouph { font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; color: var(--ste-ink-soft); margin: 22px 0 8px; font-weight: 700; }
.ste-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--ste-ink); }
.ste-total strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* ---------- crawlable price list ---------- */
.ste-pricelist { max-width: 920px; margin: 34px auto 0; padding: 0 16px 56px; }
.ste-pricelist details { border: 1px solid var(--ste-rule); border-radius: var(--ste-radius); background: var(--ste-surface); }
.ste-pricelist summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 1rem; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.ste-pricelist summary::-webkit-details-marker { display: none; }
.ste-pricelist summary::after { content: "+"; font-size: 1.3rem; color: var(--ste-ink-soft); line-height: 1; }
.ste-pricelist details[open] summary::after { content: "−"; }
.ste-pricelist__inner { padding: 4px 20px 22px; }
.ste-pricelist__intro { margin: 0 0 18px; color: var(--ste-ink-soft); font-size: .92rem; }
.ste-pricelist h3 { font-size: .95rem; margin: 22px 0 8px; }
.ste-tablewrap { overflow-x: auto; }
.ste-pricelist table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 380px; }
.ste-pricelist th, .ste-pricelist td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--ste-rule); }
.ste-pricelist thead th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ste-ink-soft); }
.ste-pricelist td { font-variant-numeric: tabular-nums; }
.ste-only { display: block; font-weight: 400; font-size: .78rem; color: var(--ste-ink-soft); }

.ste-noscript { padding: 16px; border: 1px solid var(--ste-rule); border-radius: 10px; background: #fff; }

@media (prefers-reduced-motion: reduce) {
	.ste-app *, .ste-results-wrap * { animation: none !important; transition: none !important; }
}

/* ---------- field helper note ---------- */
.ste-fieldnote { display: block; margin-top: 5px; font-size: .78rem; color: var(--ste-ink-soft); }
.ste-next-step__alt em { font-style: normal; opacity: .7; font-size: .85em; }

/* Office details at the foot of a saved estimate */
.ste-offices{display:flex;flex-wrap:wrap;gap:18px 36px;margin:22px 0 0;padding-top:18px;border-top:1px solid #e5e7eb}
.ste-offices__item{display:flex;flex-direction:column;gap:2px;font-size:13px;line-height:1.5;color:#64748b}
.ste-offices__item strong{color:#0f172a;font-size:13px;font-weight:600}
.ste-offices__item a{color:#2f72d6;text-decoration:none}
.ste-offices__item a:hover{text-decoration:underline}
