/* ================================================================
   Hero Busca — Seção full-screen (WarderleIA / filtro)
   ================================================================
   Para ativar, adicione a classe CSS "hero-busca" na seção via
   BeBuilder: seção > General > Custom CSS Class → "hero-busca"
   ================================================================ */

.hero-busca {
	min-height: 100vh !important;
	box-sizing: border-box;
	position: relative;
	border-top: 4px solid #2a559b;
	/* Garante que scroll nativo (hash) e scrollIntoView parem no topo da seção */
	scroll-margin-top: var(--header-height, 100px);

	/* Preparação para background image (definir via BeBuilder ou
	   sobrescrever a regra abaixo quando a imagem for escolhida):
	   background-image: url('/wp-content/uploads/sua-imagem.jpg'); */
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-attachment: scroll !important;
}

/* BeBuilder renderiza a imagem de fundo em um div absoluto —
   forçamos ele para z-index 0 e o overlay para z-index 1 */
.hero-busca .bt_bb_background_image_holder_wrapper {
	z-index: 0 !important;
}

/* Overlay desativado — imagem de fundo em tom claro não precisa de overlay escuro */
.hero-busca::before {
	content: '';
	position: absolute;
	inset: 0;
	background-color: transparent;
	z-index: 1;
	pointer-events: none;
}

/* Garante que o conteúdo fique acima do overlay e centralizado */
.hero-busca .bt_bb_port {
	position: relative;
	z-index: 2;
	min-height: 100vh;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	/* Compensa o header fixo para centralização visual real */
	padding-top: 46px !important;
	box-sizing: border-box;
}

/* Sobrescreve o bt_bb_vertical_align_top do BeBuilder */
.hero-busca.bt_bb_vertical_align_top .bt_bb_port,
.hero-busca.bt_bb_vertical_align_middle .bt_bb_port {
	align-items: center !important;
}

/* Remove os espaçamentos internos do BeBuilder que seriam
   redundantes quando a seção ocupa 100vh */
.hero-busca.bt_bb_top_spacing_60,
.hero-busca.bt_bb_top_spacing_normal {
	padding-top: 0 !important;
}

.hero-busca.bt_bb_bottom_spacing_100,
.hero-busca.bt_bb_bottom_spacing_normal {
	padding-bottom: 0 !important;
}

/* ================================================================
   Cores do texto e form — adaptadas para fundo escuro/overlay
   ================================================================ */

/* Headlines e texto da seção — fundo claro, texto escuro */
.hero-busca .bt_bb_headline_content,
.hero-busca .bt_bb_headline_subheadline,
.hero-busca .bt_bb_text_content {
	color: #1a1a2e !important;
}

/* Neutraliza cor branca dentro do card */
.hero-busca .gp-card,
.hero-busca .gp-card h2,
.hero-busca .gp-card h3,
.hero-busca .gp-card p,
.hero-busca .gp-card label,
.hero-busca .gp-card span {
	color: unset;
}

/* Selects dentro do card — estilos normais, não do overlay */
.hero-busca .gp-card select,
.hero-busca .gp-card .gp-select {
	background-color: #ffffff !important;
	color: #333333 !important;
	border-color: #dde1e9 !important;
}

.hero-busca .gp-card select option {
	background-color: #ffffff;
	color: #333333;
}

/* Botão Buscar */
.gp-submit-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #2a559b !important;
	color: #ffffff !important;
	border: none;
	border-radius: 0;
	padding: 0 clamp(28px, 2.8vw, 52px);
	font-size: clamp(15px, 1.5vw, 20px);
	font-weight: 700;
	letter-spacing: 0.06em;
	cursor: pointer;
	white-space: nowrap;
	height: clamp(52px, 5vw, 72px);
	align-self: end;
	transition: background-color 0.2s;
}

.gp-submit-btn:hover {
	background-color: #1e3f74 !important;
}

.gp-submit-btn svg,
.gp-btn-icon {
	width: clamp(18px, 1.6vw, 24px);
	height: clamp(18px, 1.6vw, 24px);
	flex-shrink: 0;
	display: block;
}

/* ================================================================
   Guia de Produtos — Card branco flutuante sobre o hero
   ================================================================ */

.boldthemes-filtro-busca {
	width: 100%;
	margin: 0 auto;
}

.gp-card {
	background: transparent;
	border-radius: 0;
	padding: 64px 80px 52px;
	box-shadow: none;
	/* Neutraliza bt_bb_align_center da coluna do BeBuilder */
	text-align: left !important;
}

/* Override: dentro do card o texto deve ser escuro, não branco */
.hero-busca .gp-card,
.hero-busca .gp-card h2,
.hero-busca .gp-card p,
.hero-busca .gp-card label,
.hero-busca .gp-card strong,
.hero-busca .gp-card span:not(.gp-field-num):not(.gp-step-dot):not(.gp-headline-blue):not(.gp-label-icon) {
	color: #1a1a2e !important;
}

/* Ícone da lupa no retângulo azul — sempre branco */
.gp-label-icon {
	color: #ffffff !important;
}

/* ---- Cabeçalho do card ---- */

.gp-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ebebeb;
}

.gp-card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	background: #e6edf7;
	border-radius: 10px;
	color: #2a559b;
	flex-shrink: 0;
}

.gp-card-title-wrap {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.gp-card-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #1a1a2e !important;
	line-height: 1.2;
}

.gp-card-subtitle {
	font-size: 13px !important;
	color: #666 !important;
	line-height: 1.2;
}

/* ---- Headline principal ---- */

/* "GUIA DE PRODUTOS" — rótulo/superheadline com retângulo azul à esquerda */
.gp-headline {
	font-size: clamp(13px, 1.2vw, 18px) !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	margin: 0 0 14px !important;
	color: #1a1a2e !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 14px !important;
}

.gp-headline br {
	display: block !important;
}

/* Wrapper inline do rótulo com retângulo azul + ícone de lupa */
.gp-label-wrap {
	display: inline-flex;
	align-items: center;
	gap: clamp(10px, 1vw, 16px);
}

.gp-label-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(36px, 3.2vw, 52px);
	height: clamp(32px, 2.8vw, 46px);
	background-color: #2a559b;
	border-radius: 0;
	color: #ffffff;
	flex-shrink: 0;
}

.gp-label-icon svg {
	width: clamp(16px, 1.6vw, 24px);
	height: clamp(16px, 1.6vw, 24px);
	display: block;
}

/* "ENCONTRE O PRODUTO INDICADO / EM 2 CLIQUES" — a promessa dominante */
.gp-headline-blue {
	color: #2a559b !important;
	display: block !important;
	font-size: clamp(30px, 3.8vw, 62px) !important;
	font-weight: 800 !important;
	letter-spacing: -0.01em !important;
	line-height: 1.1 !important;
	text-transform: uppercase !important;
	text-align: center !important;
}

.gp-subtext {
	font-size: 14px !important;
	color: #555 !important;
	margin: 0 0 24px !important;
	line-height: 1.5;
	text-align: left !important;
}

/* ---- Progress bar de 3 etapas ---- */

.gp-steps {
	display: flex;
	align-items: center;
	margin-bottom: 28px;
}

.gp-step {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #aaa !important;
	white-space: nowrap;
	transition: color 0.4s ease;
}

.gp-step--active,
.gp-step--done {
	color: #2a559b !important;
	font-weight: 600;
}

.gp-step-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
	display: inline-block;
	transition: background 0.4s ease, transform 0.4s ease;
	flex-shrink: 0;
}

.gp-step--active .gp-step-dot {
	transform: scale(1.25);
}

.gp-step--active .gp-step-dot,
.gp-step--done .gp-step-dot {
	background: #2a559b;
}

.gp-step-line {
	flex: 1;
	height: 2px;
	background: #e0e0e0;
	margin: 0 10px;
	min-width: 28px;
	transition: background 0.4s ease;
}

.gp-step-line--active {
	background: #2a559b !important;
}

/* ---- Form row ---- */

.gp-form-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto;
	align-items: end;
	gap: clamp(16px, 1.8vw, 28px);
}

.gp-field {
	min-width: 0; /* grid controla o tamanho */
}

.gp-field label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	font-size: clamp(16px, 1.6vw, 22px);
	font-weight: 600;
	color: #444 !important;
	line-height: 1.2;
	background-color: rgba(255, 255, 255, 0.80);
	border-radius: 6px;
	padding: 3px 10px 3px 4px;
	width: fit-content;
}

.gp-field-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(28px, 2.6vw, 40px);
	height: clamp(28px, 2.6vw, 40px);
	border-radius: 0;
	background: #2a559b;
	color: #ffffff !important;
	font-size: clamp(14px, 1.3vw, 18px);
	font-weight: 700;
	flex-shrink: 0;
}

.gp-select {
	width: 100%;
	height: clamp(52px, 5vw, 72px);
	padding: 0 clamp(44px, 4vw, 60px) 0 clamp(16px, 1.4vw, 22px);
	border: 1.5px solid #dde1e9;
	border-radius: 0;
	font-size: clamp(14px, 1.3vw, 18px);
	color: #333 !important;
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%232a559b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right clamp(14px, 1.5vw, 22px) center !important;
	background-size: clamp(18px, 1.8vw, 26px) !important;
	box-sizing: border-box;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.gp-select:focus {
	outline: none;
	border-color: #2a559b;
	box-shadow: 0 0 0 3px rgba(42, 85, 155, 0.12);
}

.gp-select:disabled {
	background: #f5f5f5 !important;
	color: #aaa !important;
	cursor: not-allowed;
}

.gp-arrow {
	font-size: clamp(24px, 2.2vw, 34px);
	color: #2a559b !important;
	margin-bottom: clamp(14px, 1.4vw, 22px);
	line-height: 1;
	text-align: center;
}

/* ---- Âncora de resultados ---- */

.gp-resultados-anchor {
	/* Compensa o header fixo + margem de respiro suficiente para mostrar os primeiros produtos */
	scroll-margin-top: 110px;
	display: block;
	height: 0;
}

/* ---- Disclaimer ---- */

.gp-disclaimer {
	margin: 28px 0 0 !important;
	padding: 0 clamp(60px, 10vw, 200px) !important;
	font-size: clamp(13px, 1.1vw, 16px) !important;
	color: #888 !important;
	line-height: 1.5;
	text-align: center !important;
}

/* ================================================================
   Responsivo — mobile
   ================================================================ */

@media (max-width: 1024px) {
	.gp-card {
		padding: 48px 48px 40px;
	}
}

@media (max-width: 640px) {
	.gp-card {
		padding: 40px 24px 32px;
	}

	.gp-headline-blue {
		font-size: clamp(26px, 7vw, 38px) !important;
	}

	.gp-form-row {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.gp-arrow {
		transform: rotate(90deg);
		margin: 0 auto;
		text-align: center;
	}
}

/* ================================================================
   Página de Busca — card full-width + empty/no-results state
   ================================================================ */

.gp-busca-page-wrap {
	margin: 32px 0;
}

.gp-busca-page-wrap .boldthemes-filtro-busca {
	max-width: 100%;
}

.gp-busca-page-wrap .gp-card {
	box-shadow: none;
	border: none;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* ---- Empty state / no results ---- */

.gp-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 56px 24px;
	gap: 10px;
}

.gp-empty-state svg {
	margin-bottom: 8px;
	opacity: 0.85;
}

.gp-empty-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	color: #1a1a2e !important;
	margin: 0 !important;
	line-height: 1.3;
}

.gp-empty-sub {
	font-size: 14px !important;
	color: #888 !important;
	margin: 0 !important;
	line-height: 1.5;
}
