.ta-es {
	--ta-es-border: #cbd5e1;
	--ta-es-focus: #2563eb;
	--ta-es-muted: #64748b;
	--ta-es-surface: #ffffff;
	--ta-es-text: #0f172a;
	color: var(--ta-es-text);
	margin-inline: auto;
	max-width: 640px;
	width: 100%;
}

/* A busca vive no cabeçalho Elementor. A largura é dada à célula real do
 * cabeçalho, sem deslocar visualmente o formulário para fora dela. */
.elementor-16 .elementor-element.elementor-element-5b2e3be .ta-es {
	max-width: 640px;
	position: static;
	transform: none;
	width: 100%;
}

@media (min-width: 768px) {
	/* Logo + início + busca ocupam a mesma linha, com área real para a busca. */
	.elementor-16 .elementor-element.elementor-element-052a1a1 {
		--width: 15%;
	}

	.elementor-16 .elementor-element.elementor-element-0901aba {
		--width: 6%;
	}

	.elementor-16 .elementor-element.elementor-element-8857bc9 {
		--width: 79%;
	}

	.elementor-16 .elementor-element.elementor-element-d5f8f89 {
		--width: 100%;
	}
}

.ta-es__title {
	font-size: 1.35rem;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

.ta-es__form {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	grid-template-columns: minmax(0, 1fr) auto;
}

.ta-es__input {
	appearance: none;
	background: var(--ta-es-surface);
	border: 1px solid var(--ta-es-border);
	border-radius: 0.5rem;
	box-shadow: none;
	color: inherit;
	flex: 1 1 auto;
	font: inherit;
	font-size: 1rem;
	min-height: 54px;
	min-width: 0;
	padding: 0.75rem 1rem;
}

.ta-es__input:focus {
	border-color: var(--ta-es-focus);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
	outline: 0;
}

.ta-es__button {
	background: var(--ta-es-focus);
	border: 1px solid var(--ta-es-focus);
	border-radius: 0.5rem;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 54px;
	padding: 0.75rem 1.25rem;
	transition: background-color 150ms ease, border-color 150ms ease;
	white-space: nowrap;
}

.ta-es__button:hover,
.ta-es__button:focus-visible {
	background: #1d4ed8;
	border-color: #1d4ed8;
}

.ta-es__button:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
	outline: 0;
}

.ta-es__hint,
.ta-es__status {
	color: var(--ta-es-muted);
	font-size: 0.875rem;
	margin: 0.5rem 0 0;
}

.ta-es__status--error {
	color: #b91c1c;
}

.ta-es__results {
	margin-top: 0.75rem;
}

.ta-es__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ta-es__item {
	margin: 0 0 0.625rem;
}

.ta-es__item:last-child {
	margin-bottom: 0;
}

.ta-es__card {
	align-items: center;
	background: var(--ta-es-surface);
	border: 1px solid var(--ta-es-border);
	border-radius: 0.75rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	color: inherit;
	display: grid;
	gap: 0.875rem;
	grid-template-columns: 72px minmax(0, 1fr);
	padding: 0.75rem;
	text-decoration: none;
	transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.ta-es__card:hover {
	border-color: var(--ta-es-focus);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
	transform: translateY(-1px);
}

.ta-es__card:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
	outline: 0;
}

.ta-es__logo {
	align-items: center;
	background: #f1f5f9;
	border-radius: 999px;
	display: flex;
	height: 72px;
	justify-content: center;
	overflow: hidden;
	width: 72px;
}

.ta-es__logo img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.ta-es__logo--placeholder {
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 1.5rem;
	font-weight: 700;
}

.ta-es__content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.ta-es__name {
	color: var(--ta-es-text);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
}

.ta-es__meta {
	display: flex;
	gap: 0.375rem;
}

.ta-es__type {
	background: #e2e8f0;
	border-radius: 999px;
	color: #334155;
	display: inline-block;
	font-size: 0.75rem;
	line-height: 1.2;
	padding: 0.2rem 0.5rem;
}

.ta-es__excerpt {
	color: var(--ta-es-muted);
	display: block;
	font-size: 0.9rem;
	line-height: 1.45;
	margin: 0;
}

.ta-es__cta {
	color: var(--ta-es-focus);
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	margin-top: 0.125rem;
}

.ta-es__sr-only {
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (max-width: 767px) {
	/* No celular a busca vira uma linha própria e aproveita toda a largura. */
	.elementor-16 .elementor-element.elementor-element-8857bc9,
	.elementor-16 .elementor-element.elementor-element-d5f8f89 {
		--width: 100%;
	}

	.elementor-16 .elementor-element.elementor-element-8857bc9 {
		order: 3;
	}

	.elementor-16 .elementor-element.elementor-element-5b2e3be {
		width: 100%;
	}

	.ta-es__form {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.ta-es__button {
		width: 100%;
	}

	.ta-es__card {
		gap: 0.75rem;
		grid-template-columns: 58px minmax(0, 1fr);
	}

	.ta-es__logo {
		height: 58px;
		width: 58px;
	}
}
