/* DIY vs. Contractor ROI Analyzer */
.fp-interactive-wrapper.fp-tool-root--diy-vs-contractor-model {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: clip;
}

.fp-dvc-scope .fpp-section-wrapper {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.fp-dvc-scope .fpp-sheet-auditor {
	background: #fff;
	border-radius: 4px;
	box-shadow: var(--shadow-card, 0 12px 40px rgba(0, 0, 0, 0.06));
	display: flex;
	flex-direction: column;
	overflow: hidden;
	overflow-x: clip;
	border: 1px solid var(--border-light, #e6e6e3);
	font-family: 'IBM Plex Sans', sans-serif;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	container-type: inline-size;
	container-name: fp-dvc-auditor;
}

.fp-dvc-scope .fpp-sheet-auditor * {
	box-sizing: border-box;
}

/* Header (navy band + CTA) */
.fp-dvc-scope .fpp-sheet-merged-header--cta {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 15px;
}

.fp-dvc-scope .fpp-header-titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1 1 auto;
}

.fp-dvc-scope .fpp-dvc-merged-header h1 {
	text-transform: none !important;
	font-weight: 700;
	line-height: 1.2;
	font-size: clamp(1.35rem, 4vw, 2.2rem);
	word-break: break-word;
}

.fp-dvc-scope .fpp-dvc-header-lede {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
	line-height: 1.5;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.fp-dvc-scope .fpp-dvc-merged-header .fpp-btn-explore {
	flex: 0 0 auto;
	align-self: center;
	margin: 0;
}

.fp-dvc-scope .fpp-btn-explore {
	background: var(--fp-gold, #b87f0d);
	color: var(--fp-navy, #0c0c30);
	padding: 12px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 1px;
	transition: 0.3s ease;
	border: 1px solid transparent;
	white-space: nowrap;
}

.fp-dvc-scope .fpp-btn-explore:hover,
.fp-dvc-scope .fpp-btn-explore:focus {
	background: #fff;
	color: var(--fp-navy, #0c0c30);
	box-shadow: 0 4px 15px rgba(184, 127, 13, 0.4);
}

.fp-dvc-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
	position: relative;
	z-index: 20;
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 25px 30px;
	border-bottom: 4px solid var(--fp-gold, #b87f0d);
}

.fp-dvc-scope .fpp-sheet-auditor .fpp-sheet-merged-header h1 {
	font-family: 'Vollkorn', serif;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	margin: 0;
	line-height: 1.1;
	color: #fff;
}

/* Action footer (navy band) */
.fp-dvc-scope .fpp-sheet-auditor .fpp-action-footer {
	padding: 30px;
	background: var(--fp-navy, #0c0c30);
	display: flex;
	flex-direction: column;
	align-items: center;
	border-top: 4px solid var(--fp-gold, #b87f0d);
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
	margin-top: 0;
	flex-shrink: 0;
	border-radius: 0 0 4px 4px;
}

.fp-dvc-scope .fpp-action-footer h3,
.fp-dvc-scope .fpp-action-footer__desc {
	display: none !important;
}

.fp-dvc-scope .fpp-action-buttons-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	max-width: 720px;
}

.fp-dvc-scope .fpp-action-footer .fpp-btn-vault {
	padding: 12px 16px;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	font-size: 0.75rem;
	gap: 8px;
	cursor: pointer;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-family: 'IBM Plex Sans', sans-serif;
	flex: 1 1 0;
	min-width: 0;
	box-sizing: border-box;
}

.fp-dvc-scope .fpp-action-footer .fpp-btn-vault svg {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.fp-dvc-scope .fpp-action-footer .fpp-btn-vault.primary {
	background: var(--fp-gold, #b87f0d);
	color: var(--fp-navy, #0c0c30);
	border-color: var(--fp-gold, #b87f0d);
}

.fp-dvc-scope .fpp-action-footer .fpp-btn-vault.primary:hover {
	background: #d4a017;
	border-color: #d4a017;
}

.fp-dvc-scope .fpp-action-footer .fpp-btn-vault:not(.primary):hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Grid */
.fp-dvc-scope .fpp-dvc-calc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	align-items: start;
	width: 100%;
	min-width: 0;
}

/* Inputs */
.fp-dvc-scope .fpp-dvc-inputs {
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.fp-dvc-scope .fpp-dvc-subhead {
	font-family: 'Vollkorn', serif;
	font-size: 1.3rem;
	color: var(--fp-navy, #0c0c30);
	margin: 15px 0 0 0;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
	display: block;
	font-weight: 600;
}

.fp-dvc-scope .fpp-dvc-subhead:first-of-type {
	margin-top: 0;
}

.fp-dvc-scope .fpp-dvc-input-split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.fp-dvc-scope .fpp-dvc-input-split--three {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fp-dvc-scope .fpp-dvc-input-group {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-dvc-scope .fpp-dvc-input-group label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--fp-navy, #0c0c30);
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	line-height: 1.3;
	white-space: normal;
}

.fp-dvc-scope .fpp-dvc-input-group label .fpp-dvc-lbl-sub {
	display: block;
	text-transform: none;
	font-weight: 500;
	color: #888;
	font-size: 0.75rem;
	letter-spacing: 0;
	margin-top: 2px;
}

.fp-dvc-scope .fpp-dvc-input-row {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	overflow: hidden;
	transition: 0.3s border;
	margin-top: auto;
}

.fp-dvc-scope .fpp-dvc-input-row:focus-within {
	border-color: var(--fp-gold, #b87f0d);
	box-shadow: 0 0 0 3px rgba(184, 127, 13, 0.1);
}

.fp-dvc-scope .fpp-dvc-input-prefix,
.fp-dvc-scope .fpp-dvc-input-suffix {
	background: var(--fp-bg-light, #fcfcfc);
	color: #666;
	padding: 12px 10px;
	font-weight: 600;
	font-size: 0.85rem;
	border-right: 1px solid var(--border-light, #e6e6e3);
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 2.75rem;
}

.fp-dvc-scope .fpp-dvc-input-suffix {
	border-right: none;
	border-left: 1px solid var(--border-light, #e6e6e3);
}

.fp-dvc-scope .fpp-dvc-input-row input {
	flex: 1;
	border: none;
	padding: 12px 15px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 1rem;
	color: var(--fp-navy, #0c0c30);
	font-weight: 600;
	width: 100%;
	outline: none;
	background: transparent;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
	min-width: 0;
}

.fp-dvc-scope .fpp-dvc-input-row input::-webkit-outer-spin-button,
.fp-dvc-scope .fpp-dvc-input-row input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Results */
.fp-dvc-scope .fpp-dvc-results {
	background: var(--fp-navy, #0c0c30);
	padding: 40px;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 25px;
	margin: 40px 40px 40px 0;
	border-radius: 4px;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

.fp-dvc-scope .fpp-dvc-grand-total {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(184, 127, 13, 0.4);
	border-radius: 6px;
	padding: 25px;
	text-align: center;
	margin-bottom: 0;
}

.fp-dvc-scope .fpp-dvc-grand-total > span {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #fff;
	font-weight: 700;
	margin-bottom: 10px;
}

.fp-dvc-scope .fpp-dvc-big-number {
	font-family: 'Vollkorn', serif;
	font-size: 2.2rem;
	color: var(--fp-gold, #b87f0d);
	margin: 0;
	line-height: 1.1;
}

/* Comparison Matrix */
.fp-dvc-scope .fpp-dvc-comp-matrix {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.fp-dvc-scope .fpp-dvc-comp-matrix th {
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 1px;
	color: var(--fp-gold, #b87f0d);
	padding: 10px 5px;
	text-align: right;
	border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
}

.fp-dvc-scope .fpp-dvc-comp-matrix th:first-child {
	text-align: left;
}

.fp-dvc-scope .fpp-dvc-comp-matrix td {
	padding: 12px 5px;
	font-size: 1rem;
	font-weight: 600;
	text-align: right;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-dvc-scope .fpp-dvc-comp-matrix td:first-child {
	text-align: left;
	font-weight: 500;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.85);
}

.fp-dvc-scope .fpp-dvc-comp-matrix tr.fpp-dvc-row-total td {
	border-bottom: none;
	border-top: 1px solid rgba(255, 255, 255, 0.5);
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	padding-top: 15px;
}

.fp-dvc-scope .fpp-dvc-comp-matrix tr.fpp-dvc-row-highlight td {
	color: var(--fp-gold, #b87f0d);
	border-bottom: none;
}

.fp-dvc-scope .fpp-dvc-comp-matrix td.fpp-dvc-pad-top {
	padding-top: 15px;
}

.fp-dvc-scope .fpp-dvc-comp-matrix td.fpp-dvc-danger {
	color: var(--fp-danger, #ef4444);
}

.fp-dvc-scope .fpp-dvc-comp-matrix td.fpp-dvc-safe {
	color: var(--fp-safe, #10b981);
}

/* Charts */
.fp-dvc-scope .fpp-dvc-charts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
	padding: 40px;
	background: var(--fp-navy, #0c0c30);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fp-dvc-scope .fpp-dvc-chart-box {
	background: rgba(255, 255, 255, 0.03);
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 25px;
	min-width: 0;
}

.fp-dvc-scope .fpp-dvc-chart-box h4 {
	margin: 0 0 15px 0;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-gold, #b87f0d);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-align: center;
	font-weight: 700;
}

.fp-dvc-scope .fpp-dvc-canvas-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 300px;
	min-width: 0;
	overflow: hidden;
}

/* Container query responsiveness */
@container fp-dvc-auditor (max-width: 850px) {
	.fp-dvc-scope .fpp-dvc-calc-grid {
		grid-template-columns: 1fr;
	}

	.fp-dvc-scope .fpp-dvc-input-split {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.fp-dvc-scope .fpp-dvc-inputs {
		padding: 30px 20px;
		gap: 16px;
	}

	.fp-dvc-scope .fpp-dvc-results {
		margin: 0;
		border-radius: 0;
		padding: 30px 20px;
		width: 100%;
	}

	.fp-dvc-scope .fpp-dvc-charts {
		padding: 30px 20px;
		gap: 20px;
	}

	.fp-dvc-scope .fpp-dvc-big-number {
		font-size: 1.8rem;
	}

	.fp-dvc-scope .fpp-dvc-merged-header .fpp-btn-explore {
		display: flex;
		align-self: stretch;
		width: 100%;
		text-align: center;
		justify-content: center;
		white-space: normal;
		padding: 12px 16px;
		letter-spacing: 0.5px;
	}
}

@media (max-width: 850px) {
	.fp-dvc-scope .fpp-dvc-calc-grid {
		grid-template-columns: 1fr;
	}

	.fp-dvc-scope .fpp-dvc-input-split {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.fp-dvc-scope .fpp-dvc-inputs {
		padding: 30px 20px;
		gap: 16px;
	}

	.fp-dvc-scope .fpp-dvc-results {
		margin: 0;
		border-radius: 0;
		padding: 30px 20px;
		width: 100%;
	}

	.fp-dvc-scope .fpp-dvc-charts {
		padding: 30px 20px;
		gap: 20px;
	}

	.fp-dvc-scope .fpp-dvc-big-number {
		font-size: 1.8rem;
	}

	.fp-dvc-scope .fpp-dvc-merged-header .fpp-btn-explore {
		display: flex;
		align-self: stretch;
		width: 100%;
		text-align: center;
		justify-content: center;
		white-space: normal;
		padding: 12px 16px;
		letter-spacing: 0.5px;
	}
}

@media (max-width: 520px) {
	.fp-dvc-scope .fpp-sheet-merged-header--cta {
		padding: 20px 16px;
	}

	.fp-dvc-scope .fpp-dvc-header-lede {
		font-size: 0.88rem;
	}

	.fp-dvc-scope .fpp-dvc-inputs,
	.fp-dvc-scope .fpp-dvc-results,
	.fp-dvc-scope .fpp-dvc-charts {
		padding: 24px 16px;
	}

	.fp-dvc-scope .fpp-dvc-subhead {
		font-size: 1.15rem;
	}

	.fp-dvc-scope .fpp-dvc-input-row input {
		padding: 10px 8px;
		font-size: 0.95rem;
	}

	.fp-dvc-scope .fpp-dvc-grand-total {
		padding: 18px 14px;
	}

	.fp-dvc-scope .fpp-dvc-big-number {
		font-size: 1.6rem;
	}

	.fp-dvc-scope .fpp-dvc-comp-matrix td,
	.fp-dvc-scope .fpp-dvc-comp-matrix th {
		font-size: 0.82rem;
	}

	.fp-dvc-scope .fpp-action-footer .fpp-btn-vault {
		font-size: 0.65rem;
		padding: 10px 8px;
		min-height: 44px;
		white-space: normal;
	}
}
