/* Climate & Terrain Matcher (scoped) */
.fp-climate-scope {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fp-climate-scope .fpp-section-wrapper {
	max-width: 100%;
	padding: 0;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy, #0c0c30);
}

.fp-climate-scope .fpp-unified-auditor {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	grid-template-areas:
		'header header'
		'left right'
		'footer footer';
	overflow: hidden;
	border: 1px solid var(--border-light, #e6e6e3);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.fp-climate-scope .fpp-unified-auditor * {
	box-sizing: border-box;
}

.fp-climate-scope .fpp-unified-auditor .fpp-sheet-merged-header {
	grid-area: header;
}

.fp-climate-scope .fpp-input-panel {
	grid-area: left;
	padding: 30px;
	background: #fff;
	border-right: 1px solid var(--border-light, #e6e6e3);
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.fp-climate-scope .fpp-output-panel {
	grid-area: right;
	background: #f8f9fa;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-climate-scope .fpp-action-footer {
	grid-area: footer;
}

.fp-climate-scope .fpp-section-title {
	font-family: 'Vollkorn', serif;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--fp-navy, #0c0c30);
	margin: 0 0 10px;
	border-bottom: 1px solid var(--border-light, #e6e6e3);
	padding-bottom: 8px;
}

.fp-climate-scope .fpp-section-title--spaced {
	margin-top: 10px;
}

.fp-climate-scope .fpp-form-group {
	margin-bottom: 5px;
}

.fp-climate-scope .fpp-form-group label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #555;
	margin-bottom: 8px;
	display: block;
	letter-spacing: 0.5px;
}

.fp-climate-scope .fpp-select,
.fp-climate-scope .fpp-range {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	background: #fcfcfc;
	font-weight: 600;
	color: var(--fp-navy, #0c0c30);
	font-size: 0.95rem;
	font-family: 'IBM Plex Sans', sans-serif;
	transition: 0.2s;
	outline: none;
}

.fp-climate-scope .fpp-select:focus {
	border-color: var(--fp-gold, #b87f0d);
	background: #fff;
}

.fp-climate-scope .fpp-range {
	padding: 0;
	cursor: pointer;
	background: transparent;
	border: none;
}

.fp-climate-scope .fpp-slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.7rem;
	color: #888;
	margin-top: 5px;
	font-weight: 600;
	gap: 4px;
}

.fp-climate-scope .fpp-topo-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.fp-climate-scope .fpp-topo-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	background: rgba(184, 127, 13, 0.03);
	padding: 10px 15px;
	border-radius: 4px;
	border: 1px solid rgba(184, 127, 13, 0.1);
}

.fp-climate-scope .fpp-topo-item span {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--fp-navy, #0c0c30);
	flex: 1;
	min-width: 0;
}

.fp-climate-scope .fpp-topo-item select {
	width: 130px;
	max-width: 45%;
	padding: 6px;
	font-size: 0.8rem;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 3px;
	background: #fff;
	font-weight: 600;
	outline: none;
	flex-shrink: 0;
}

.fp-climate-scope .fpp-toggle-label {
	display: flex;
	align-items: center;
	font-size: 0.85rem;
	font-weight: 600;
	color: #000;
	cursor: pointer;
	margin-bottom: 12px;
}

.fp-climate-scope .fpp-toggle-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 22px;
	margin-right: 12px;
	flex-shrink: 0;
}

.fp-climate-scope .fpp-toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.fp-climate-scope .fpp-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--border-light, #e6e6e3);
	transition: 0.3s;
	border-radius: 22px;
	border: 1px solid #ccc;
}

.fp-climate-scope .fpp-switch-slider:before {
	position: absolute;
	content: '';
	height: 16px;
	width: 16px;
	left: 2px;
	bottom: 2px;
	background-color: #fff;
	transition: 0.3s;
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fp-climate-scope input:checked + .fpp-switch-slider {
	background-color: var(--fp-danger);
	border-color: var(--fp-danger);
}

.fp-climate-scope input:checked + .fpp-switch-slider:before {
	transform: translateX(18px);
}

.fp-climate-scope .fpp-results-scroll {
	padding: 40px;
	flex-grow: 1;
	min-width: 0;
}

.fp-climate-scope .fpp-climate-empty {
	text-align: center;
	padding: 35px;
	color: #888;
	font-weight: 600;
}

@media (max-width: 900px) {
	.fp-climate-scope .fpp-unified-auditor {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			'header'
			'left'
			'right'
			'footer';
	}

	.fp-climate-scope .fpp-input-panel {
		border-right: none;
		border-bottom: 1px solid var(--border-light, #e6e6e3);
		padding: 1.25rem 1rem;
	}

	.fp-climate-scope .fpp-results-scroll {
		padding: 20px;
	}
}

@media (max-width: 520px) {
	.fp-climate-scope .fpp-topo-item {
		flex-direction: column;
		align-items: stretch;
	}

	.fp-climate-scope .fpp-topo-item select {
		width: 100%;
		max-width: 100%;
	}
}

.fp-fin-toolkit-wrap .fp-climate-scope,
.fp-lifestyle-wrap .fp-climate-scope,
.fp-phase1-calc-mount .fp-climate-scope {
	min-width: 0;
	max-width: 100%;
}
