/* Health & Medical Matcher (scoped) */
.fp-health-scope {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	font-family: 'IBM Plex Sans', sans-serif;
	color: var(--fp-navy, #0c0c30);
}

.fp-health-scope .fpp-section-wrapper {
	max-width: 100%;
	padding: 0;
}

.fp-health-scope .fpp-sheet-auditor {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--border-light, #e6e6e3);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

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

.fp-health-scope .fpp-split-panel-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	min-height: 680px;
	background: var(--border-light, #e6e6e3);
	gap: 1px;
}

.fp-health-scope .fpp-control-panel {
	background: #fff;
	padding: 30px;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.fp-health-scope .fpp-selection-status-bar {
	background: #f8f8f8;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	padding: 12px 20px;
	font-size: 0.85rem;
	font-weight: 600;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.fp-health-scope .fpp-counter-badge {
	background: var(--fp-navy, #0c0c30);
	color: #fff;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 0.75rem;
	border: 1px solid var(--fp-gold, #b87f0d);
	white-space: nowrap;
	flex-shrink: 0;
}

.fp-health-scope .fpp-counter-badge.active-selections {
	background: var(--fp-safe);
	border-color: var(--fp-safe);
}

.fp-health-scope .fpp-service-fluid-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 590px;
	overflow-y: auto;
	padding-right: 5px;
	min-width: 0;
}

.fp-health-scope .fpp-service-fluid-list::-webkit-scrollbar {
	width: 6px;
}

.fp-health-scope .fpp-service-fluid-list::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.fp-health-scope .fpp-service-fluid-list::-webkit-scrollbar-thumb {
	background: var(--fp-gold, #b87f0d);
	border-radius: 3px;
}

.fp-health-scope .fpp-service-card {
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 4px;
	padding: 15px 20px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	background: #fcfcfc;
	transition: all 0.2s ease;
	user-select: none;
	min-width: 0;
}

.fp-health-scope .fpp-card-main-row {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	width: 100%;
}

.fp-health-scope .fpp-service-card:hover:not(.disabled) {
	border-color: var(--fp-gold, #b87f0d);
	background: #fff;
}

.fp-health-scope .fpp-service-card.selected {
	border-color: var(--fp-gold, #b87f0d);
	background: rgba(184, 127, 13, 0.04);
	box-shadow: inset 0 0 0 1px var(--fp-gold, #b87f0d);
}

.fp-health-scope .fpp-service-card.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f3f3f3;
	border-color: var(--border-light, #e6e6e3);
}

.fp-health-scope .fpp-checkbox-mock {
	width: 18px;
	height: 18px;
	border: 2px solid var(--border-light, #e6e6e3);
	border-radius: 2px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
	transition: 0.2s;
	background: #fff;
}

.fp-health-scope .fpp-service-card.selected .fpp-checkbox-mock {
	border-color: var(--fp-gold, #b87f0d);
	background: var(--fp-gold, #b87f0d);
}

.fp-health-scope .fpp-service-card.selected .fpp-checkbox-mock::after {
	content: '';
	width: 8px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translateY(-1px);
}

.fp-health-scope .fpp-card-details {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.fp-health-scope .fpp-card-title {
	font-family: 'Vollkorn', serif;
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--fp-navy, #0c0c30);
}

.fp-health-scope .fpp-card-subtext {
	font-size: 0.8rem;
	color: #666;
	line-height: 1.4;
	margin-top: 2px;
}

.fp-health-scope .fpp-sub-specialist-wrapper {
	width: 100%;
	margin-top: 12px;
	padding: 12px 15px 15px 33px;
	border-top: 1px dashed var(--border-light, #e6e6e3);
	display: none;
}

.fp-health-scope .fpp-service-card.selected .fpp-sub-specialist-wrapper {
	display: block;
}

.fp-health-scope .fpp-sub-specialist-wrapper p {
	margin: 0 0 10px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--fp-gold, #b87f0d);
}

.fp-health-scope .fpp-specialist-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.fp-health-scope .fpp-specialist-tag {
	background: #fff;
	border: 1px solid var(--border-light, #e6e6e3);
	border-radius: 3px;
	padding: 8px 10px;
	font-size: 0.75rem;
	font-weight: 600;
	text-align: center;
	transition: 0.15s ease;
	color: var(--fp-navy, #0c0c30);
	cursor: pointer;
}

.fp-health-scope .fpp-specialist-tag:hover:not(.disabled) {
	border-color: var(--fp-gold, #b87f0d);
	color: var(--fp-gold, #b87f0d);
}

.fp-health-scope .fpp-specialist-tag.active {
	background: var(--fp-navy, #0c0c30);
	border-color: var(--fp-navy, #0c0c30);
	color: #fff;
}

.fp-health-scope .fpp-specialist-tag.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	background: #f3f3f3;
}

.fp-health-scope .fpp-results-panel {
	background: #fdfdfd;
	padding: 30px;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-y: auto;
	max-height: 705px;
	min-width: 0;
	min-height: 400px;
}

.fp-health-scope .fpp-placeholder-state {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: auto;
	max-width: 320px;
	color: #888;
}

.fp-health-scope .fpp-placeholder-state[hidden],
.fp-health-scope .fpp-active-results-space[hidden],
.fp-health-scope .fpp-health-footer-wrap[hidden] {
	display: none !important;
}

.fp-health-scope .fpp-placeholder-state svg {
	width: 48px;
	height: 48px;
	fill: rgba(184, 127, 13, 0.3);
	margin-bottom: 20px;
}

.fp-health-scope .fpp-placeholder-state p {
	font-family: 'Vollkorn', serif;
	font-size: 1.15rem;
	line-height: 1.4;
	margin: 0;
}

.fp-health-scope .fpp-active-results-space {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	min-height: 0;
}

.fp-health-scope .fpp-results-panel.is-health-has-results .fpp-placeholder-state {
	display: none !important;
}

.fp-health-scope .fpp-results-panel:not(.is-health-has-results) .fpp-active-results-space {
	display: none !important;
}

.fp-health-scope .fpp-filter-notice {
	margin-top: 20px;
	padding: 12px 15px;
	background: rgba(198, 40, 40, 0.08);
	border-left: 3px solid var(--fp-danger);
	font-size: 0.78rem;
	color: #444;
	line-height: 1.4;
}

.fp-health-scope .fpp-health-footer-wrap .fpp-action-footer {
	grid-column: auto;
	border-top: none;
}

@media (max-width: 850px) {
	.fp-health-scope .fpp-split-panel-layout {
		grid-template-columns: minmax(0, 1fr);
		min-height: auto;
	}

	.fp-health-scope .fpp-control-panel,
	.fp-health-scope .fpp-results-panel {
		padding: 1.25rem 1rem;
	}

	.fp-health-scope .fpp-results-panel {
		max-height: none;
	}

	.fp-health-scope .fpp-service-fluid-list {
		max-height: none;
	}

	.fp-health-scope .fpp-sheet-auditor .fpp-sheet-merged-header {
		padding: 1.25rem 1rem;
	}
}

@media (max-width: 520px) {
	.fp-health-scope .fpp-specialist-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

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