/**
 * BRO Electrical — Quick Estimate: House Rewire calculator (V1).
 * Premium multi-step estimator: large selectable areas, hairline
 * dividers, restrained transitions. No form-plugin styling, no
 * gradients, no gimmicky animation.
 */

.bro-estimate-page {
	background: var(--bro-offwhite);
}

.bro-estimate-page section {
	padding: var(--bro-section-spacing) 0;
}

/* ---- Intro / landing ---- */

.bro-estimator__intro-inner {
	max-width: 44rem;
}

.bro-estimator__heading {
	font-size: var(--bro-text-h1);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--bro-text-on-light);
	margin: 0 0 1.5rem;
}

.bro-estimator__intro-inner p {
	font-size: var(--bro-text-lg);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 56ch;
	margin: 0 0 1.25rem;
}

.bro-estimator__notice {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
	border: 1px solid var(--bro-border-on-light);
	border-left: 3px solid var(--bro-orange);
	border-radius: var(--bro-radius-sm);
	padding: 1.1rem 1.35rem;
	margin: 1.75rem 0 2.25rem;
	max-width: 56ch;
}

.bro-estimator__notice p {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-text-on-light);
	margin: 0;
	max-width: none;
}

.bro-estimator__intro-inner .bro-eyebrow.bro-reveal-fade {
	transition-delay: 0ms;
}

.bro-estimator__heading.bro-reveal-fade {
	transition-delay: 90ms;
}

.bro-estimator__intro-inner p.bro-reveal-fade:nth-of-type(1) {
	transition-delay: 180ms;
}

.bro-estimator__intro-inner p.bro-reveal-fade:nth-of-type(2) {
	transition-delay: 230ms;
}

.bro-estimator__intro-inner p.bro-reveal-fade:nth-of-type(3) {
	transition-delay: 280ms;
}

.bro-estimator__intro-inner p.bro-reveal-fade:nth-of-type(4) {
	transition-delay: 280ms;
}

.bro-estimator__notice.bro-reveal-fade {
	transition-delay: 330ms;
}

.bro-estimator__start.bro-reveal-fade {
	transition-delay: 400ms;
}

.bro-estimator__start .bro-icon-arrow {
	width: 14px;
	height: 14px;
	transition: transform var(--bro-transition-base);
}

@media (hover: hover) and (pointer: fine) {
	.bro-estimator__start:hover .bro-icon-arrow {
		transform: translateX(4px);
	}
}

.bro-estimator__start:focus-visible .bro-icon-arrow {
	transform: translateX(4px);
}

/* ---- Wizard shell ---- */

.bro-estimator__wizard-inner {
	background: var(--bro-white);
	border: 1px solid var(--bro-border-on-light);
	border-radius: var(--bro-radius);
	padding: clamp(1.75rem, 4vw, 3rem);
	max-width: 44rem;
	margin: 0 auto;
}

.bro-estimator__progress {
	margin: 0 0 clamp(2rem, 4vw, 2.75rem);
}

.bro-estimator__progress-label {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-xs);
	font-weight: 700;
	letter-spacing: var(--bro-tracking-label);
	text-transform: uppercase;
	color: var(--bro-text-muted-on-light);
	margin: 0 0 0.75rem;
}

.bro-estimator__progress-track {
	height: 2px;
	background: var(--bro-border-on-light);
}

.bro-estimator__progress-fill {
	height: 100%;
	width: 16.6667%;
	background: var(--bro-orange);
	transition: width var(--bro-transition-slow);
}

/* ---- Steps ---- */

.bro-estimator__step {
	animation: bro-step-in 420ms var(--bro-ease);
}

@keyframes bro-step-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.bro-estimator__step {
		animation: none;
	}
}

.bro-estimator__step h2 {
	font-size: var(--bro-text-h3);
	font-weight: 700;
	color: var(--bro-text-on-light);
	margin: 0 0 1.75rem;
	outline: none;
}

.bro-estimator__question {
	border: none;
	min-width: 0;
	padding: 0;
	margin: 0 0 2rem;
}

.bro-estimator__question:last-child {
	margin-bottom: 0;
}

.bro-estimator__question-label {
	display: block;
	width: 100%;
	padding: 0;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	color: var(--bro-text-on-light);
	margin: 0 0 0.9rem;
}

/* ---- Large selectable options ---- */

.bro-options-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.75rem;
}

.bro-options-grid--compact {
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	max-width: 30rem;
}

.bro-option {
	position: relative;
}

.bro-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: -1px;
}

.bro-option__label {
	display: block;
	height: 100%;
	border: 1px solid var(--bro-border-on-light);
	border-radius: var(--bro-radius-sm);
	padding: 1rem 1.1rem;
	cursor: pointer;
	transition: border-color var(--bro-transition-base), background-color var(--bro-transition-base);
}

.bro-option__title {
	display: block;
	font-family: var(--bro-font-display);
	font-weight: 700;
	font-size: var(--bro-text-sm);
	color: var(--bro-text-on-light);
}

.bro-option__desc {
	display: block;
	font-size: var(--bro-text-xs);
	line-height: 1.5;
	color: var(--bro-text-muted-on-light);
	margin-top: 0.4rem;
}

.bro-option__input:checked + .bro-option__label {
	border-color: var(--bro-orange);
	background: rgba(255, 90, 31, 0.06);
}

.bro-option__input:focus-visible + .bro-option__label {
	outline: 2px solid var(--bro-orange);
	outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.bro-option__label:hover {
		border-color: var(--bro-orange);
	}
}

/* Inline conditional notes (occupied, decorative, high-spec, etc). */
.bro-estimator__inline-note {
	border-left: 3px solid var(--bro-orange);
	padding: 0.9rem 1.1rem;
	margin-top: 1rem;
	background: var(--bro-offwhite);
	border-radius: 0 var(--bro-radius-sm) var(--bro-radius-sm) 0;
}

.bro-estimator__inline-note p {
	font-size: var(--bro-text-sm);
	line-height: 1.55;
	color: var(--bro-text-on-light);
	margin: 0;
}

.bro-estimator__sub-question {
	margin-top: 1.1rem;
	padding-top: 1.1rem;
	border-top: 1px solid var(--bro-border-on-light);
}

/* ---- Nav controls ---- */

.bro-estimator__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: clamp(2rem, 4vw, 2.75rem);
	padding-top: 1.5rem;
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-estimator__nav-spacer {
	flex: 1 1 auto;
}

.bro-btn--text {
	background: none;
	border: none;
	padding: 0.6em 0;
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bro-text-muted-on-light);
	cursor: pointer;
	transition: color var(--bro-transition-base);
}

.bro-btn--text:hover,
.bro-btn--text:focus-visible {
	color: var(--bro-orange);
}

button.bro-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	transform: none;
}

/* ---- Result ---- */

.bro-result__eyebrow {
	margin-bottom: 0.75rem;
}

.bro-result__range {
	font-size: var(--bro-text-hero);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.01em;
	color: var(--bro-text-on-light);
	margin: 0 0 0.5rem;
}

.bro-result__range-note {
	font-size: var(--bro-text-sm);
	color: var(--bro-text-muted-on-light);
	margin: 0 0 2.25rem;
}

.bro-result__block {
	margin: 0 0 2.25rem;
}

.bro-result__block-title {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bro-text-on-light);
	margin: 0 0 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--bro-border-on-light);
}

.bro-result__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bro-result__list li {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-text-on-light);
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--bro-border-on-light);
}

.bro-result__list li:last-child {
	border-bottom: none;
}

.bro-result__included li {
	position: relative;
	padding-left: 1.1rem;
	color: var(--bro-text-muted-on-light);
	border-bottom: none;
	padding-top: 0.4rem;
	padding-bottom: 0.4rem;
}

.bro-result__included li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.9em;
	width: 7px;
	height: 1px;
	background: var(--bro-orange);
}

/* ---- Disclaimer — deliberately prominent, not small print ---- */

.bro-result__disclaimer {
	background: var(--bro-charcoal);
	color: var(--bro-offwhite);
	border-radius: var(--bro-radius);
	padding: clamp(1.5rem, 3.5vw, 2.25rem);
	margin: 0 0 2.25rem;
}

.bro-result__disclaimer-heading {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-base);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bro-orange);
	margin: 0 0 1rem;
}

.bro-result__disclaimer p {
	font-size: var(--bro-text-sm);
	line-height: 1.65;
	color: var(--bro-text-muted-on-dark);
	margin: 0 0 1rem;
}

.bro-result__disclaimer p:last-child {
	margin-bottom: 0;
}

.bro-result__tailored-note {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--bro-border-on-dark);
}

.bro-result__tailored-note-heading {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--bro-orange);
	margin: 0 0 0.6rem;
}

.bro-result__tailored-note-body {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-white);
	font-weight: 600;
	margin: 0;
}

/* ---- Lead capture ---- */

.bro-lead {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-lead__heading {
	font-size: var(--bro-text-h3);
	font-weight: 700;
	color: var(--bro-text-on-light);
	margin: 0 0 0.35rem;
}

.bro-lead__subheading {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-sm);
	font-weight: 600;
	color: var(--bro-orange);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 0 0 1rem;
}

.bro-lead > p {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	max-width: 56ch;
	margin: 0 0 1.75rem;
}

.bro-lead__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1.1rem;
	margin: 0 0 1.1rem;
}

.bro-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.bro-field--full {
	grid-column: 1 / -1;
}

.bro-field label {
	font-family: var(--bro-font-display);
	font-size: var(--bro-text-xs);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bro-text-on-light);
}

.bro-field input,
.bro-field select,
.bro-field textarea {
	font-family: var(--bro-font-body);
	font-size: var(--bro-text-base);
	color: var(--bro-text-on-light);
	background: var(--bro-white);
	border: 1px solid var(--bro-border-on-light);
	border-radius: var(--bro-radius-sm);
	padding: 0.75em 0.9em;
	transition: border-color var(--bro-transition-base);
}

.bro-field textarea {
	resize: vertical;
	min-height: 5.5em;
}

.bro-field input:focus-visible,
.bro-field select:focus-visible,
.bro-field textarea:focus-visible {
	outline: 2px solid var(--bro-orange);
	outline-offset: 1px;
	border-color: var(--bro-orange);
}

.bro-lead__submit {
	margin-top: 0.5rem;
}

.bro-lead__submit .bro-icon-arrow {
	width: 14px;
	height: 14px;
	transition: transform var(--bro-transition-base);
}

@media (hover: hover) and (pointer: fine) {
	.bro-lead__submit:hover .bro-icon-arrow {
		transform: translateX(4px);
	}
}

.bro-lead__confirmation {
	border: 1px solid var(--bro-border-on-light);
	border-left: 3px solid var(--bro-orange);
	border-radius: var(--bro-radius-sm);
	padding: 1.25rem 1.5rem;
}

.bro-lead__confirmation h3 {
	font-size: var(--bro-text-base);
	font-weight: 700;
	color: var(--bro-text-on-light);
	margin: 0 0 0.6rem;
}

.bro-lead__confirmation p {
	font-size: var(--bro-text-sm);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	margin: 0 0 1rem;
}

.bro-lead__payload {
	font-family: monospace;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--bro-text-muted-on-light);
	background: var(--bro-offwhite);
	border-radius: var(--bro-radius-sm);
	padding: 1rem;
	max-height: 16rem;
	overflow: auto;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ---- Homepage teaser (below Customer Reviews) ---- */

.bro-quick-estimate-teaser {
	padding: var(--bro-section-spacing) 0;
	background: var(--bro-white);
	border-top: 1px solid var(--bro-border-on-light);
}

.bro-quick-estimate-teaser__inner {
	max-width: 40rem;
	margin: 0 auto;
	text-align: center;
}

.bro-quick-estimate-teaser__inner .bro-eyebrow {
	justify-content: center;
}

.bro-quick-estimate-teaser__heading {
	font-size: var(--bro-text-h2);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--bro-text-on-light);
	margin: 0 0 1.1rem;
}

.bro-quick-estimate-teaser__inner p {
	font-size: var(--bro-text-base);
	line-height: 1.6;
	color: var(--bro-text-muted-on-light);
	margin: 0 auto 0.75rem;
	max-width: 42ch;
}

.bro-quick-estimate-teaser__note {
	font-size: var(--bro-text-sm);
	color: var(--bro-text-muted-on-light);
	margin: 0 auto 1.75rem;
	max-width: 42ch;
}

.bro-quick-estimate-teaser__inner .bro-eyebrow.bro-reveal-fade {
	transition-delay: 0ms;
}

.bro-quick-estimate-teaser__heading.bro-reveal-fade {
	transition-delay: 90ms;
}

.bro-quick-estimate-teaser__inner p.bro-reveal-fade:nth-of-type(2) {
	transition-delay: 180ms;
}

.bro-quick-estimate-teaser__note.bro-reveal-fade {
	transition-delay: 230ms;
}

.bro-quick-estimate-teaser__inner .bro-btn.bro-reveal-fade {
	transition-delay: 280ms;
}

@media (max-width: 600px) {
	.bro-estimator__nav {
		flex-wrap: wrap;
	}

	.bro-estimator__nav .bro-btn {
		width: 100%;
	}

	.bro-estimator__nav-spacer {
		display: none;
	}
}
