/* Mold Remediation Cost Estimator — layout and component styles (scoped to .mre) */

.mre {
	max-width: 42rem;
	margin: 0 auto;
}

.mre-intro {
	margin-bottom: 2rem;
}

.mre-intro__title {
	margin: 0 0 1rem;
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	line-height: 1.3;
}

.mre-intro__title a {
	font-weight: inherit;
}

.mre-intro p {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.mre-intro p:last-child {
	margin-bottom: 0;
}

.mre-intro__disclaimer {
	font-size: 0.95em;
	opacity: 0.9;
}

.mre-progress {
	margin: 0 0 0.5rem;
	font-size: 0.9em;
}

.mre-progress-bar {
	height: 0.35rem;
	background: currentColor;
	opacity: 0.15;
	border-radius: 0.2rem;
	margin-bottom: 1.5rem;
	overflow: hidden;
}

.mre-progress-bar__fill {
	display: block;
	height: 100%;
	background: currentColor;
	opacity: 0.85;
	border-radius: 0.2rem;
	transition: width 0.2s ease;
	width: 0;
}

.mre-fieldset {
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	padding: 1.25rem;
	margin: 0 0 1.5rem;
	border-radius: 0.25rem;
}

.mre-legend {
	font-weight: 600;
	padding: 0 0.25rem;
	margin-bottom: 0.75rem;
}

.mre-options {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.mre-option {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	line-height: 1.4;
}

.mre-option input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.mre-select {
	display: block;
	width: 100%;
	max-width: 20rem;
}

.mre-nav {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mre-btn {
	cursor: pointer;
	padding: 0.6rem 1.25rem;
	border-radius: 0.25rem;
	border: 1px solid currentColor;
	line-height: 1.3;
}

.mre-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.mre-btn--primary {
	font-weight: 600;
}

.mre-results {
	margin-top: 0;
}

.mre-section {
	margin-bottom: 2rem;
}

.mre-section--actions-top,
.mre-section--actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.mre-meta {
	margin: 0 0 0.35rem;
}

.mre-disclaimer {
	margin: 1rem 0 0;
	padding: 1rem;
	border: 2px solid currentColor;
	border-radius: 0.25rem;
	line-height: 1.5;
}

.mre-cost-total {
	font-size: 1.75rem;
	font-weight: 700;
	margin: 0.5rem 0 1rem;
}

.mre-phase-table {
	width: 100%;
	border-collapse: collapse;
}

.mre-phase-table th,
.mre-phase-table td {
	padding: 0.5rem 0.75rem;
	text-align: left;
	border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
}

.mre-phase-table th {
	font-weight: 600;
}

.mre-gauge__bar {
	display: flex;
	width: 100%;
	border-radius: 0.25rem;
	overflow: hidden;
	border: 1px solid currentColor;
}

.mre-gauge__segment {
	flex: 1;
	text-align: center;
	padding: 0.65rem 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	opacity: 0.35;
	transition: opacity 0.15s ease;
}

.mre-gauge__segment--active {
	opacity: 1;
}

.mre-gauge__segment--low.mre-gauge__segment--active {
	background: #c8e6c9;
	color: #1b5e20;
}

.mre-gauge__segment--moderate.mre-gauge__segment--active {
	background: #fff9c4;
	color: #f57f17;
}

.mre-gauge__segment--high.mre-gauge__segment--active {
	background: #ffcc80;
	color: #e65100;
}

.mre-gauge__segment--severe.mre-gauge__segment--active {
	background: #ef9a9a;
	color: #b71c1c;
}

.mre-severity-text {
	margin-top: 0.75rem;
}

.mre-insurance {
	padding: 1rem;
	border-left: 4px solid currentColor;
	border-radius: 0 0.25rem 0.25rem 0;
}

.mre-insurance--likely {
	border-left-color: #2e7d32;
	background: rgba(46, 125, 50, 0.08);
}

.mre-insurance--maybe {
	border-left-color: #f9a825;
	background: rgba(249, 168, 37, 0.08);
}

.mre-insurance--unlikely {
	border-left-color: #c62828;
	background: rgba(198, 40, 40, 0.08);
}

.mre-insurance-label {
	margin: 0 0 0.5rem;
}

.mre-insurance-text {
	margin: 0;
	line-height: 1.5;
}

.mre-checklist {
	list-style: none;
	padding: 0;
	margin: 0.75rem 0 0;
}

.mre-checklist li {
	margin-bottom: 0.65rem;
}

.mre-checklist label {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	cursor: pointer;
	line-height: 1.4;
}

.mre-checklist input {
	margin-top: 0.2rem;
	flex-shrink: 0;
}

.mre-contractor-list {
	padding-left: 1.25rem;
	margin: 0.75rem 0 0;
}

.mre-contractor-list li {
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.mre-print-footer {
	display: none;
}

.mre-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.mre-gauge__segment {
		font-size: 0.65rem;
		padding: 0.5rem 0.15rem;
	}

	.mre-cost-total {
		font-size: 1.4rem;
	}

	.mre-phase-table th,
	.mre-phase-table td {
		padding: 0.4rem 0.5rem;
		font-size: 0.9em;
	}
}
