/* Beatsons Concrete Calculator 2.0.5 */
.bcc {
	--bcc-ink: #222b32;
	--bcc-muted: #56616a;
	--bcc-line: #d7dce0;
	--bcc-panel: #f4f5f5;
	--bcc-error: #b3261e;
	--bcc-focus: #236bad;
	--bcc-ok: #1e7a46;
	--bcc-radius: 8px;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #e1e4e6;
	border-radius: 14px;
	padding: clamp(20px, 4vw, 44px);
	color: var(--bcc-ink);
	font-family: inherit;
	line-height: 1.5;
	margin: 24px 0;
	position: relative;
	container: bcc / inline-size; /* Layout responds to the calculator's own width, not the screen's. */
}
.bcc *, .bcc *::before, .bcc *::after { box-sizing: border-box; }
.bcc [hidden] { display: none !important; }
.bcc p { padding: 0; margin: 0 0 12px; }
.bcc button, .bcc input, .bcc select, .bcc textarea { font-family: inherit; font-size: 16px; line-height: 1.4; }
.bcc .bcc-icon { flex: none; width: 24px; height: 24px; }

/* Progress */
.bcc .bcc-progress { margin: 0 0 28px; }
.bcc .bcc-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.bcc .bcc-progress li { margin: 0; padding: 0; position: relative; }
.bcc .bcc-progress li::before {
	content: ""; display: block; height: 4px; border-radius: 2px; background: var(--bcc-line); margin-bottom: 10px;
	transition: background-color .2s;
}
.bcc .bcc-progress li.is-done::before, .bcc .bcc-progress li[aria-current="step"]::before { background: var(--bcc-accent); }
.bcc .bcc-progress button {
	display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; margin: 0; border: 0; background: none;
	color: var(--bcc-muted); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
.bcc .bcc-progress button:disabled { cursor: default; opacity: .7; }
.bcc .bcc-progress button:not(:disabled):hover .bcc-progress-label { text-decoration: underline; }
.bcc .bcc-progress-num {
	flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
	border: 1px solid var(--bcc-line); background: #fff; font-size: 12px; font-weight: 700;
}
.bcc .bcc-progress li[aria-current="step"] button { color: var(--bcc-ink); opacity: 1; }
.bcc .bcc-progress li[aria-current="step"] .bcc-progress-num,
.bcc .bcc-progress li.is-done .bcc-progress-num { background: var(--bcc-accent); border-color: var(--bcc-accent); color: var(--bcc-on-accent, #fff); }

/* Layout */
.bcc .bcc-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.bcc .bcc-step { outline: none; }
.bcc .bcc-step-title {
	font-family: inherit; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; color: var(--bcc-ink);
	margin: 0 0 8px; padding: 0; font-weight: 700; letter-spacing: -.01em;
}
.bcc .bcc-step-intro { color: var(--bcc-muted); margin-bottom: 22px; }

/* Shape cards */
.bcc .bcc-shapes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bcc .bcc-shape {
	display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px; margin: 0;
	border: 1px solid var(--bcc-line); border-radius: var(--bcc-radius); background: #fff; color: var(--bcc-ink);
	text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.bcc .bcc-shape .bcc-icon { width: 36px; height: 36px; color: var(--bcc-accent-text, var(--bcc-accent)); }
.bcc .bcc-shape-text strong { display: block; font-size: 17px; }
.bcc .bcc-shape-text span { display: block; font-size: 14px; color: var(--bcc-muted); }
.bcc .bcc-shape:hover { border-color: var(--bcc-accent); box-shadow: 0 0 0 1px var(--bcc-accent); }
.bcc .bcc-shape[aria-pressed="true"] { border-color: var(--bcc-accent); box-shadow: 0 0 0 2px var(--bcc-accent); }

/* Fields */
.bcc .bcc-help { margin: -8px 0 20px; padding: 10px 14px; background: var(--bcc-panel); border-radius: 6px; font-size: 14px; color: var(--bcc-muted); }
.bcc .bcc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.bcc .bcc-wide { grid-column: 1 / -1; }
.bcc label, .bcc legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.bcc .bcc-optional { font-weight: 400; color: var(--bcc-muted); }
.bcc .bcc-measurement { display: flex; }
.bcc input[type="number"], .bcc input[type="text"], .bcc input[type="email"], .bcc input[type="tel"], .bcc input[type="date"], .bcc select, .bcc textarea {
	height: 49px; width: 100%; min-width: 0; margin: 0;
	border: 1px solid #c8cfd4; background: #fff; color: var(--bcc-ink);
	border-radius: 6px; padding: 10px 12px; box-shadow: none;
}
.bcc textarea { height: auto; min-height: 110px; resize: vertical; }
.bcc input:hover, .bcc select:hover, .bcc textarea:hover { border-color: #9aa5ad; }
.bcc .bcc-measurement input { flex: 1 1 45%; border-radius: 6px 0 0 6px; }
.bcc .bcc-measurement select { flex: 1 1 55%; border-left: 0; border-radius: 0 6px 6px 0; padding: 8px; }
.bcc [aria-invalid="true"] { border-color: var(--bcc-error) !important; box-shadow: inset 0 0 0 1px var(--bcc-error) !important; }
.bcc small { display: block; font-size: 13px; margin-top: 6px; color: var(--bcc-muted); }
.bcc .bcc-field-error { display: block; font-size: 14px; font-weight: 600; color: var(--bcc-error); margin-top: 6px; }
.bcc .bcc-field-error:empty { display: none; }
.bcc .bcc-check-field { align-self: end; }
.bcc .bcc-check { display: flex; align-items: center; gap: 10px; font-weight: 400; min-height: 49px; margin: 0; cursor: pointer; }
.bcc .bcc-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--bcc-accent); }
.bcc .bcc-error {
	margin: 18px 0 0; padding: 10px 14px; border-left: 4px solid var(--bcc-error);
	background: #fdf1f0; color: var(--bcc-error); font-weight: 600; border-radius: 0 6px 6px 0;
}
.bcc .bcc-area-total { margin: 22px 0 0; font-weight: 700; font-size: 17px; }
.bcc .bcc-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.bcc .bcc-turnstile { margin-top: 20px; min-height: 65px; }
.bcc .bcc-privacy { font-size: 13px; color: var(--bcc-muted); margin: 16px 0 0; }
.bcc .bcc-privacy a { color: inherit; }

/* Waste chips */
.bcc .bcc-waste { border: 0; margin: 0 0 24px; padding: 0; min-width: 0; }
.bcc .bcc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bcc .bcc-chip { margin: 0; position: relative; font-weight: 600; cursor: pointer; }
.bcc .bcc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bcc .bcc-chip span {
	display: inline-block; min-width: 76px; text-align: center; padding: 11px 18px;
	border: 1px solid var(--bcc-line); border-radius: 999px; background: #fff; transition: border-color .15s, background-color .15s;
}
.bcc .bcc-chip:hover span { border-color: var(--bcc-accent); }
.bcc .bcc-chip input:checked + span { background: var(--bcc-accent); border-color: var(--bcc-accent); color: var(--bcc-on-accent, #fff); }
.bcc .bcc-chip input:focus-visible + span { outline: 3px solid var(--bcc-focus); outline-offset: 2px; }
.bcc .bcc-project { max-width: 420px; }
.bcc .bcc-inline-total { display: block; font-weight: 700; font-size: 18px; margin: 20px 0 0; }

/* Actions */
.bcc .bcc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.bcc .bcc-primary, .bcc .bcc-secondary {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	padding: 13px 20px; border-radius: 6px; font-weight: 700; cursor: pointer; margin: 0;
	text-decoration: none !important; transition: filter .15s, background-color .15s, color .15s;
}
.bcc .bcc-primary { background: var(--bcc-accent); color: var(--bcc-on-accent, #fff); border: 2px solid var(--bcc-accent); margin-left: auto; }
.bcc .bcc-primary:hover { filter: brightness(.92); }
.bcc .bcc-primary:disabled { opacity: .7; cursor: progress; }
.bcc .bcc-secondary { background: #fff; color: var(--bcc-ink); border: 2px solid var(--bcc-ink); }
.bcc .bcc-secondary:hover { background: var(--bcc-ink); color: #fff; }
.bcc .bcc-back, .bcc .bcc-link {
	background: none; border: 0; padding: 10px 4px; margin: 0; color: var(--bcc-muted); font-weight: 600; cursor: pointer;
}
.bcc .bcc-back:hover, .bcc .bcc-link:hover { color: var(--bcc-ink); text-decoration: underline; }
.bcc .bcc-step-intro .bcc-link { padding: 0; font-size: inherit; text-decoration: underline; }
.bcc .bcc-chosen-shape { font-weight: 600; color: var(--bcc-ink); }

/* Done */
.bcc .bcc-done-icon {
	display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
	background: #e7f4ec; color: var(--bcc-ok); margin-bottom: 16px;
}
.bcc .bcc-done-icon .bcc-icon { width: 32px; height: 32px; stroke-width: 2.4; }
.bcc .bcc-done-message p { font-size: 17px; }
.bcc .bcc-reference { display: inline-block; background: var(--bcc-panel); border-radius: 6px; padding: 10px 16px; margin-top: 4px; }
.bcc .bcc-reference strong { margin-left: 6px; letter-spacing: .04em; }
.bcc .bcc-done .bcc-secondary { margin-left: 0; }

/* Result panel */
.bcc .bcc-result {
	background: var(--bcc-panel); border-radius: 10px; padding: 26px;
	display: flex; flex-direction: column; border-top: 4px solid var(--bcc-accent);
}
.bcc .bcc-eyebrow {
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	margin: 0 0 10px; color: var(--bcc-accent-text, var(--bcc-accent));
}
.bcc .bcc-items { list-style: none; margin: 4px 0 18px; padding: 0; border-bottom: 1px solid var(--bcc-line); }
.bcc .bcc-items li {
	display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
	padding: 10px 0; border-top: 1px solid var(--bcc-line); font-size: 14px; margin: 0;
}
.bcc .bcc-items li.bcc-item-current { grid-template-columns: 1fr auto; color: var(--bcc-muted); }
.bcc .bcc-item-desc strong { display: block; color: var(--bcc-ink); }
.bcc .bcc-item-vol { font-weight: 700; white-space: nowrap; }
.bcc .bcc-remove {
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--bcc-line); background: #fff;
	color: var(--bcc-muted); font-size: 18px; line-height: 1; padding: 0; margin: 0; cursor: pointer;
}
.bcc .bcc-remove:hover { border-color: var(--bcc-error); color: var(--bcc-error); }
.bcc .bcc-output { font-size: 16px; margin: 6px 0 4px; }
.bcc .bcc-placeholder { color: var(--bcc-muted); }
.bcc .bcc-total-label { display: block; font-weight: 600; color: var(--bcc-muted); font-size: 14px; }
.bcc .bcc-total strong {
	display: block; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; overflow-wrap: anywhere;
	letter-spacing: -.03em; margin: 2px 0 14px; font-variant-numeric: tabular-nums;
}
.bcc .bcc-breakdown { margin: 0; padding: 0; font-size: 14px; }
.bcc .bcc-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bcc .bcc-breakdown dt { color: var(--bcc-muted); margin: 0; font-weight: 400; }
.bcc .bcc-breakdown dd { margin: 0; font-weight: 600; text-align: right; }
.bcc .bcc-rounding { font-size: 13px; color: var(--bcc-muted); margin: 8px 0 0; }
.bcc .bcc-note { font-size: 12px; color: var(--bcc-muted); margin: 18px 0 0; }

/* Utilities */
.bcc .bcc-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.bcc :is(button, input, select, textarea, a):focus-visible { outline: 3px solid var(--bcc-focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .bcc * { transition: none !important; } }
/* Wide: estimate panel on the right */
/* Steps 1–2: full width, no estimate panel. Steps 3–4: estimate panel on the right. */
.bcc:not(.has-summary) .bcc-result { display: none; }
@container bcc (min-width: 760px) {
	.bcc.has-summary .bcc-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; }
	.bcc .bcc-result { position: sticky; top: 24px; }
	.bcc .bcc-inline-total { display: none; }
}
/* Using the extra width on the measurements step */
@container bcc (min-width: 900px) {
	.bcc:not(.has-summary) .bcc-form .bcc-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@supports not (container-type: inline-size) {
	@media (min-width: 900px) {
		.bcc.has-summary .bcc-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; }
		.bcc .bcc-inline-total { display: none; }
	}
}
/* Narrow: only label the current step */
@container bcc (max-width: 700px) {
	.bcc .bcc-progress ol { display: flex; }
	.bcc .bcc-progress li { flex: 1 1 0; min-width: 0; }
	.bcc .bcc-progress li[aria-current="step"] { flex-grow: 3.2; }
	.bcc .bcc-progress-label { display: none; }
	.bcc .bcc-progress li[aria-current="step"] .bcc-progress-label { display: inline; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}
@container bcc (max-width: 520px) {
	.bcc .bcc-fields { grid-template-columns: 1fr; }
	.bcc .bcc-actions { flex-direction: column-reverse; align-items: stretch; }
	.bcc .bcc-actions .bcc-primary, .bcc .bcc-actions .bcc-secondary { width: 100%; margin-left: 0; }
}
@media (max-width: 560px) {
	.bcc { padding: 20px 16px; }
	.bcc .bcc-result { padding: 22px; }
}
