/**
 * Psychologist search form and results.
 */
.fmp-search-container {
	max-width: 1000px;
	margin: 0 auto;
	font-family: Inter, sans-serif;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.fmp-search-title {
	color: #045482;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 700;
	margin-bottom: 25px;
	text-align: center;
	line-height: 1.25;
}
.fmp-search-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}
.fmp-search-field {
	flex: 1;
	min-width: 180px;
}
.fmp-search-field label {
	display: block;
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 6px;
	font-weight: 600;
}
.fmp-search-field select,
.fmp-search-field input {
	width: 100%;
	height: 50px;
	padding: 12px 15px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
	background-color: #fff;
	color: #4b5563;
}

.fmp-search-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1rem;
	cursor: pointer;
}

.fmp-search-field select::-ms-expand {
	display: none;
}
.fmp-search-submit {
	text-align: center;
	margin-top: 25px;
}
.fmp-search-submit button {
	background: #045482;
	color: #fff;
	border: none;
	padding: 14px 40px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 6px;
	cursor: pointer;
}
.fmp-search-submit button:hover {
	background: #05abc1;
}
@media (max-width: 768px) {
	.fmp-search-row {
		flex-direction: column;
	}
}

/* Evaluation Type custom dropdown */
.custom-search-dropdown {
	position: relative;
	width: 100%;
	font-family: inherit;
}
.csd-trigger {
	width: 100%;
	height: 50px;
	padding: 12px 2.5rem 12px 15px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 15px;
	color: #4b5563;
	background-color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.85rem center;
	background-size: 1rem;
}
.csd-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	margin-top: 4px;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-height: 400px;
	overflow-y: auto;
}
.csd-option {
	padding: 10px 15px;
	cursor: pointer;
	color: #374151;
	font-size: 14px;
	border-bottom: 1px solid #f3f4f6;
}
.csd-option:hover {
	background-color: #f9fafb;
	color: #045482;
}
.csd-option.has-submenu {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
	color: #045482;
	position: relative;
}
.csd-option.has-submenu::after {
	content: '›';
	font-size: 18px;
	font-weight: bold;
}
.csd-submenu {
	display: none;
	position: absolute;
	width: 280px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	max-height: 400px;
	overflow-y: auto;
	z-index: 1100;
}
.csd-submenu::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: -10px;
	width: 10px;
	background: transparent;
}
@media (min-width: 769px) {
	.csd-submenu {
		position: fixed;
		left: auto;
		top: auto;
		margin: 0;
	}
	.csd-option.has-submenu.submenu-open .csd-submenu {
		display: block;
	}
}
@media (max-width: 768px) {
	.csd-submenu {
		position: static;
		width: 100%;
		box-shadow: none;
		border: none;
		border-left: 2px solid #045482;
		background: #f9fafb;
		margin: 0;
	}
	.csd-option.has-submenu.submenu-open .csd-submenu {
		display: block;
	}
	.csd-option.has-submenu.submenu-open::after {
		transform: rotate(90deg);
	}
}

#psychologist-search-results-container,
.fmp-search-results {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

/*
 * rc-pages caps .rc-prose at 1100px (for marketing pages). Search results need the
 * wider directory shell — override the parent + body when this UI is present.
 */
.rc-page--search-results .rc-prose {
	width: min(100%, 1500px);
	max-width: none;
	margin: 0 auto;
	padding: 0;
}

.rc-page--search-results .rc-page-hero__inner {
	width: min(100%, 1500px);
}

.rc-page--search-results .rc-prose__body,
.rc-prose__body:has(.fmp-search-results),
.hh-container:has(.fmp-search-results) {
	max-width: 1500px !important;
	width: 100%;
	padding-left: 1.5rem !important;
	padding-right: 1.5rem !important;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
}

.fmp-search-results__layout.fmp-directory__layout {
	gap: 2rem;
}

@media (min-width: 900px) {
	.fmp-search-results__layout.fmp-directory__layout {
		grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
		gap: 2.25rem;
	}
}

.fmp-search-results__header {
	margin-bottom: 1.25rem;
}

.fmp-search-results__title {
	margin: 0 0 0.35rem;
	color: #1e293b;
	font-size: clamp(1.4rem, 2.5vw, 1.75rem);
	font-weight: 700;
}

.fmp-search-results__count {
	margin: 0;
	font-size: 0.95rem;
	color: #64748b;
}

.fmp-search-results__notice {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	color: #92400e;
	padding: 16px 20px;
	margin-bottom: 20px;
	border-radius: 8px;
}

.fmp-search-results__list {
	min-width: 0;
	width: 100%;
}

.fmp-search-results__cards {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
}

/* Collapsible left filter sidebar */
.fmp-search-filters {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem 0.85rem 1.15rem;
	position: sticky;
	top: 1rem;
}

.fmp-search-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	padding: 0 0.35rem;
}

.fmp-search-filters__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #045482;
}

.fmp-search-filters__clear {
	font-size: 0.8rem;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	white-space: nowrap;
}

.fmp-search-filters__clear:hover,
.fmp-search-filters__clear:focus-visible {
	color: #045482;
	text-decoration: underline;
}

.fmp-search-filters__form {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.fmp-search-filters__group {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
}

.fmp-search-filters__group.is-active {
	border-color: rgba(4, 84, 130, 0.35);
}

.fmp-search-filters__summary {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 0.8rem;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.fmp-search-filters__summary::-webkit-details-marker {
	display: none;
}

.fmp-search-filters__summary-label {
	flex: 1;
	min-width: 0;
	font-size: 0.88rem;
	font-weight: 650;
	color: #1e293b;
}

.fmp-search-filters__summary-value {
	max-width: 45%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.75rem;
	font-weight: 600;
	color: #045482;
	background: rgba(4, 84, 130, 0.08);
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}

.fmp-search-filters__chevron {
	width: 0.55rem;
	height: 0.55rem;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg);
	transition: transform 0.18s ease;
	flex-shrink: 0;
	margin-top: -0.2rem;
}

.fmp-search-filters__group[open] .fmp-search-filters__chevron {
	transform: rotate(-135deg);
	margin-top: 0.15rem;
}

.fmp-search-filters__panel {
	padding: 0 0.8rem 0.85rem;
}

.fmp-search-filters__panel select,
.fmp-search-filters__panel input {
	width: 100%;
	height: 42px;
	padding: 0.55rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.9rem;
	color: #334155;
	background: #fff;
	box-sizing: border-box;
}

.fmp-search-filters__panel select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.7rem center;
	background-size: 0.95rem;
	cursor: pointer;
}

.fmp-search-filters__panel select::-ms-expand {
	display: none;
}

.fmp-search-filters__actions {
	margin-top: 0.65rem;
	padding: 0 0.15rem;
}

.fmp-search-filters__apply {
	width: 100%;
	border: none;
	border-radius: 8px;
	padding: 0.75rem 1rem;
	background: #045482;
	color: #fff;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
}

.fmp-search-filters__apply:hover,
.fmp-search-filters__apply:focus-visible {
	background: #05abc1;
}

@media (max-width: 899px) {
	.fmp-search-filters {
		position: static;
	}
}

.psych-card {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	min-width: 0;
	max-width: 100%;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	container-type: inline-size;
	container-name: psych-card;
}

.psych-card__photo {
	flex: 0 0 160px;
	width: 160px;
	min-width: 0;
	align-self: stretch;
	background: #e2e8f0;
}

.psych-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.psych-card__body {
	flex: 1 1 200px;
	min-width: 0;
	padding: 20px 24px;
}

.psych-card__name {
	margin: 0 0 6px;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.psych-card__name a {
	color: #045482;
	text-decoration: none;
}

.psych-card__title {
	color: #334155;
	font-size: 0.9rem;
	margin-bottom: 8px;
}

.psych-card__meta {
	color: #64748b;
	font-size: 0.9rem;
	margin-bottom: 8px;
}

.psych-card__status {
	font-weight: 500;
}

.psych-card__status.is-open {
	color: #16a34a;
}

.psych-card__status.is-waitlist {
	color: #d97706;
}

.psych-card__languages {
	color: #475569;
	font-size: 0.85rem;
	margin-bottom: 12px;
}

.psych-card__languages strong {
	color: #045482;
}

.psych-card__about {
	color: #334155;
	font-size: 0.95rem;
	line-height: 1.6;
}

.psych-card__aside {
	flex: 0 0 240px;
	min-width: 200px;
	max-width: 100%;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	border-left: 1px solid #e2e8f0;
	box-sizing: border-box;
}

.fmp-card-phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.fmp-icon-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #475569;
	flex-shrink: 0;
}

.psych-card__phone-text {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
}

.fmp-card-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.psych-card .fmp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
	box-sizing: border-box;
}

.psych-card .fmp-btn-email {
	background: #f8fafc;
	color: #045482;
	border: 1px solid #e2e8f0;
}

.psych-card .fmp-btn-email:hover {
	background: rgba(5, 171, 193, 0.12);
	border-color: #05abc1;
	color: #045482;
}

.psych-card .fmp-btn-view {
	background: #045482;
	color: #fff;
	border: 1px solid #045482;
}

.psych-card .fmp-btn-view:hover {
	background: #05abc1;
	border-color: #05abc1;
	color: #fff;
	opacity: 0.95;
}

/* When the card is too narrow for photo + body + aside, drop aside full-width. */
@container psych-card (max-width: 640px) {
	.psych-card__photo {
		flex: 0 0 140px;
		width: 140px;
	}

	.psych-card__aside {
		flex: 1 1 100%;
		min-width: 0;
		border-left: 0;
		border-top: 1px solid #e2e8f0;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 1rem 1.25rem;
	}

	.fmp-card-phone {
		margin-bottom: 0;
	}

	.fmp-card-actions {
		flex-direction: row;
		flex: 1 1 auto;
		min-width: 12rem;
	}

	.psych-card .fmp-btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 899px) {
	.psych-card__photo {
		width: 100%;
		flex: 0 0 auto;
		aspect-ratio: 16 / 10;
		max-height: 220px;
	}

	.psych-card__body {
		flex: 1 1 100%;
	}

	.psych-card__aside {
		flex: 1 1 100%;
		min-width: 0;
		border-left: 0;
		border-top: 1px solid #e2e8f0;
	}
}

.fmp-search-languages option:disabled {
	color: #94a3b8;
}
