/* Water Damage Claim Estimator — scoped component styles */

.wde-faq__estimator {
	margin: 2rem 0;
	padding: 1.25rem 0 0;
	border-top: 1px solid var(--wde-faq-border, color-mix(in srgb, currentColor 20%, transparent));
}

.wde-faq__estimator .wde-results {
	margin-top: 1.5rem;
}

.wde-faq__estimator .wde-q7-panel {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--wde-faq-border, color-mix(in srgb, currentColor 20%, transparent));
}

.wde-faq__estimator .wde-q7-panel__heading {
	margin: 0 0 1rem;
	font-size: 1.02rem;
	line-height: 1.35;
}

.wde-page {
	max-width: 48rem;
	margin: 0 auto;
}

.wde-estimator {
	margin-bottom: 0;
}

.wde-estimator__intro {
	margin-bottom: 2rem;
}

.wde-estimator__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 3.5vw, 1.75rem);
	line-height: 1.3;
}

.wde-estimator__intro p {
	margin: 0 0 1rem;
	line-height: 1.6;
}

.wde-estimator__intro p:last-child {
	margin-bottom: 0;
}

.wde-estimator__cta {
	margin-top: 1.25rem !important;
}

.wde-jump-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.65rem 1.15rem;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
	border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
	border-radius: 0.375rem;
	background: color-mix(in srgb, currentColor 5%, transparent);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wde-jump-link:hover,
.wde-jump-link:focus-visible {
	text-decoration: none;
	background: color-mix(in srgb, currentColor 10%, transparent);
	border-color: color-mix(in srgb, currentColor 45%, transparent);
}

.wde-jump-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

#wde-questions-heading {
	scroll-margin-top: 1.5rem;
}

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

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

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

.wde-summary {
	padding: 0.85rem 1rem;
	margin-bottom: 0.75rem;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 0.25rem;
	background: color-mix(in srgb, currentColor 4%, transparent);
}

.wde-summary__label {
	margin: 0 0 0.35rem;
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	opacity: 0.8;
}

.wde-summary__answer {
	margin: 0 0 0.5rem;
	line-height: 1.45;
}

.wde-summary__edit {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.wde-summary__edit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

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

.wde-legend {
	font-weight: 600;
	padding: 0 0.25rem;
}

.wde-help {
	margin: 0.5rem 0 1rem;
	line-height: 1.5;
	opacity: 0.9;
}

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

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

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

.wde-option input:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

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

.wde-btn {
	cursor: pointer;
	padding: 0.6rem 1.25rem;
	border-radius: 0.25rem;
	border: 1px solid currentColor;
	line-height: 1.3;
	background: transparent;
	color: inherit;
	font: inherit;
}

.wde-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

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

.wde-btn--primary {
	font-weight: 600;
	background: color-mix(in srgb, currentColor 8%, transparent);
}

.wde-btn--secondary {
	opacity: 0.92;
}

.wde-results {
	margin-top: 1.5rem;
}

.wde-results-card {
	display: grid;
	gap: 1rem;
	padding: 1.25rem 1.35rem;
	margin-bottom: 1rem;
	border-radius: 0.5rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	background: color-mix(in srgb, currentColor 4%, transparent);
	border-left-width: 4px;
}

.wde-results-card--low {
	border-left-color: #2e7d32;
}

.wde-results-card--elevated {
	border-left-color: #f9a825;
}

.wde-results-card--high {
	border-left-color: #ef6c00;
}

.wde-results-card--critical {
	border-left-color: #c62828;
}

.wde-results-card__label {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.wde-results-card__range {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
}

.wde-results__headline {
	margin: 0 0 0.75rem;
	font-size: clamp(1.25rem, 3vw, 1.6rem);
	line-height: 1.35;
}

.wde-results__disclaimer {
	margin: 0 0 1.25rem;
	font-size: 0.88em;
	line-height: 1.5;
	opacity: 0.9;
}

.wde-mold {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.85rem 1rem;
	border-radius: 0.375rem;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	background: color-mix(in srgb, currentColor 3%, transparent);
}

.wde-mold__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.5rem;
	padding: 0.2rem 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	flex-shrink: 0;
	color: #fff;
}

.wde-mold--low .wde-mold__pill {
	background: #2e7d32;
}

.wde-mold--elevated .wde-mold__pill {
	background: #f9a825;
	color: #1a1a1a;
}

.wde-mold--high .wde-mold__pill {
	background: #ef6c00;
}

.wde-mold--critical .wde-mold__pill {
	background: #c62828;
}

.wde-mold__content {
	flex: 1 1 12rem;
	min-width: 0;
}

.wde-mold__title {
	margin: 0 0 0.25rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.8;
}

.wde-mold__text,
.wde-mold__note {
	margin: 0;
	line-height: 1.45;
}

.wde-mold__note {
	margin-top: 0.35rem;
	font-size: 0.92em;
	opacity: 0.9;
}

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

.wde-section__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.wde-modifier-note {
	margin: 0 0 0.75rem;
	font-size: 0.9em;
	line-height: 1.45;
	opacity: 0.9;
}

.wde-line-items {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95em;
}

.wde-line-items th,
.wde-line-items td {
	padding: 0.65rem 0.5rem;
	border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	text-align: left;
	vertical-align: top;
}

.wde-line-items th {
	font-weight: 600;
}

.wde-line-items__label {
	font-weight: 600;
	min-width: 8rem;
}

.wde-line-items__range {
	white-space: nowrap;
}

.wde-line-items__detail p {
	margin: 0 0 0.5rem;
	line-height: 1.45;
}

.wde-line-items__detail p:last-child {
	margin-bottom: 0;
}

.wde-line-items__note {
	font-size: 0.92em;
}

.wde-qty__adjust {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

.wde-qty__adjust:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wde-qty__input {
	display: block;
	width: 100%;
	max-width: 8rem;
	margin-top: 0.35rem;
	padding: 0.35rem 0.5rem;
	font: inherit;
}

.wde-scope select {
	display: block;
	width: 100%;
	max-width: 22rem;
	margin-top: 0.35rem;
	font: inherit;
}

.wde-checklist {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.55;
}

.wde-checklist li + li {
	margin-top: 0.45rem;
}

.wde-results__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.wde-results__doc-link {
	margin: 0.85rem 0 0;
	font-size: 0.95em;
}

.wde-line-items__cta {
	margin: 0.5rem 0 0;
	font-size: 0.92em;
}

.wde-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15rem;
	height: 1.15rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	vertical-align: middle;
}

.wde-tooltip:focus-visible,
.wde-tooltip:hover + .wde-tooltip__text,
.wde-tooltip:focus + .wde-tooltip__text {
	clip: auto;
	height: auto;
	width: auto;
	overflow: visible;
	position: absolute;
	z-index: 2;
	max-width: 16rem;
	padding: 0.5rem 0.65rem;
	margin-top: 0.25rem;
	border: 1px solid currentColor;
	border-radius: 0.2rem;
	background: Canvas;
	color: CanvasText;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: 0 2px 8px color-mix(in srgb, currentColor 15%, transparent);
}

.wde-tooltip__text {
	position: absolute;
	clip: rect(0, 0, 0, 0);
	overflow: hidden;
	height: 1px;
	width: 1px;
	white-space: normal;
}

.wde-term {
	position: relative;
	white-space: normal;
}

.wde-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;
}

.wde-print-summary {
	display: none;
}

@media (max-width: 640px) {
	.wde-line-items thead {
		display: none;
	}

	.wde-line-items tr {
		display: block;
		padding: 0.75rem 0;
		border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	}

	.wde-line-items td {
		display: block;
		border: 0;
		padding: 0.25rem 0;
	}

	.wde-line-items__range {
		font-weight: 600;
	}
}

@media (min-width: 321px) {
	.wde-estimator {
		min-width: 0;
	}
}
