/*
 * EnergeticaMente — Seletor de Escolas
 * Styles affect only the plugin's own component. Nothing here touches the wider
 * Forminator theming.
 */

.em-school-search {
	position: relative;
}

.em-school-search .em-school-list {
	display: none;
	position: absolute;
	z-index: 1000;
	left: 0;
	right: 0;
	top: 100%;
	margin: 4px 0 0 0;
	padding: 4px;
	max-height: 260px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #212e3e;
	border-radius: 8px;
	box-sizing: border-box;
}

.em-school-search .em-school-list[hidden] {
	display: none;
}

.em-school-option {
	display: block;
	min-height: 44px;
	padding: 10px 16px;
	margin: 0;
	box-sizing: border-box;
	cursor: pointer;
	color: #212e3e;
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.3;
}

.em-school-option[aria-selected="true"],
.em-school-option:hover,
.em-school-option:focus {
	background: #212e3e;
	color: #ffffff;
}

.em-school-option--empty {
	cursor: default;
	color: #6b7480;
}

.em-school-option--empty:hover {
	background: transparent;
	color: #6b7480;
}

.em-school-option:focus-visible,
.em-school-search:focus-visible,
.em-school-manual-toggle:focus-visible {
	outline: 2px solid #28ff52;
	outline-offset: 2px;
}

.em-school-message {
	margin-top: 6px;
	font-size: 0.875rem;
	color: #6b7480;
}

.em-school-message--error {
	color: #b3261e;
	font-weight: 600;
}

.em-school-message--error::before {
	content: "⚠";
	margin-right: 6px;
	color: #b3261e;
}

/* 44px minimum touch target for the manual toggle */
.em-school-manual-toggle {
	display: inline-block;
	min-height: 44px;
	margin-top: 8px;
	padding: 10px 16px;
	background: transparent;
	color: #212e3e;
	border: 1px solid #212e3e;
	border-radius: 8px;
	font: inherit;
	cursor: pointer;
}

.em-school-manual-toggle:hover {
	background: #effff1;
}

.em-school-manual-toggle:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.em-school-search[aria-invalid="true"] {
	border-color: #b3261e;
}

.em-school-search:disabled {
	background: #f2f2f2;
}
