/* Prêmio Movimento – formulário público (v3.3).
 *
 * Tudo fica dentro de .premio-movimento-container para não afetar o tema/Elementor.
 * A cor principal vem de --pm-primary (Configurações do formulário → Cor principal);
 * os tons derivados são calculados a partir dela.
 * O layout responde à largura do próprio formulário (container queries), não da tela:
 * funciona igual numa coluna estreita do Elementor ou em página inteira.
 */
.premio-movimento-container {
	--pm-primary: #b5913f;
	--pm-primary-strong: #8a6d2b;   /* botões e textos sobre fundo claro */
	--pm-primary-soft: #f7f1e3;     /* seleção, etapa concluída */
	--pm-primary-ring: rgba(181, 145, 63, 0.22);
	--pm-ink: #1c1a16;
	--pm-text: #2b2823;
	--pm-muted: #6f695e;
	--pm-line: #e3dccb;
	--pm-line-strong: #cfc6b1;
	--pm-field: #ffffff;
	--pm-panel: #fbf9f4;
	--pm-error: #b42318;
	--pm-error-soft: #fdf0ee;
	--pm-warn: #8a5a00;
	--pm-warn-soft: #fff6e0;
	--pm-ok: #23744a;
	--pm-ok-soft: #ebf6ef;
	--pm-radius: 10px;
	--pm-sticky-top: 32px;

	container-type: inline-size;
	container-name: premio;
	box-sizing: border-box;
	max-width: 1080px;
	margin: 32px auto;
	padding: clamp(20px, 4vw, 44px);
	background: #fff;
	color: var(--pm-text);
	border: 1px solid var(--pm-line);
	border-radius: 18px;
	box-shadow: 0 1px 2px rgba(40, 32, 12, 0.04), 0 12px 32px -18px rgba(40, 32, 12, 0.18);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.premio-movimento-container {
		--pm-primary-strong: color-mix(in srgb, var(--pm-primary) 76%, #000);
		--pm-primary-soft: color-mix(in srgb, var(--pm-primary) 10%, #fff);
		--pm-primary-ring: color-mix(in srgb, var(--pm-primary) 24%, transparent);
	}
}
.premio-movimento-container *,
.premio-movimento-container *::before,
.premio-movimento-container *::after { box-sizing: border-box; }
.premio-movimento-container [hidden] { display: none !important; }

/* ------------------------------------------------------------------ */
/* Cabeçalho                                                           */
/* ------------------------------------------------------------------ */

.premio-movimento-header {
	margin: 0 0 clamp(20px, 4cqi, 36px);
	padding-bottom: clamp(18px, 3cqi, 28px);
	border-bottom: 1px solid var(--pm-line);
}
.premio-movimento-header h2 {
	margin: 0;
	max-width: 22ch;
	color: var(--pm-ink);
	font-size: clamp(1.6rem, 1.1rem + 2.2cqi, 2.5rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}
.premio-movimento-header .subtitle {
	margin: 10px 0 0;
	max-width: 62ch;
	color: var(--pm-muted);
	font-size: 1.05rem;
}
.premio-movimento-header .subtitle strong { color: var(--pm-text); }

/* Logo: ao lado do título em formulários largos, acima dele em telas estreitas. */
.premio-movimento-header.premio-has-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.premio-header-text { min-width: 0; }
.premio-logo { flex: 0 0 auto; line-height: 0; }
.premio-movimento-container .premio-logo-img {
	display: block;
	width: auto;
	max-width: min(240px, 70cqi);
	height: auto;
	max-height: 64px;
	object-fit: contain;
	object-position: left center;
}
.premio-logo-size-s .premio-logo-img { max-height: 48px; }
.premio-logo-size-l .premio-logo-img { max-height: 84px; }
@container premio (min-width: 600px) {
	.premio-movimento-header.premio-has-logo { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
	.premio-logo-right .premio-logo { order: 2; }
	.premio-logo-right .premio-header-text { order: 1; }
	.premio-movimento-container .premio-logo-img { max-width: 300px; max-height: 88px; }
	.premio-logo-right .premio-logo-img { object-position: right center; }
	.premio-logo-size-s .premio-logo-img { max-height: 60px; }
	.premio-logo-size-l .premio-logo-img { max-width: 360px; max-height: 120px; }
	.premio-logo-left { justify-content: flex-start; }
}
/* Logo acima do título, texto em toda a largura (em qualquer tela). */
.premio-movimento-header.premio-logo-top { flex-direction: column !important; align-items: flex-start !important; gap: 18px; }
.premio-logo-top .premio-logo { order: 0 !important; }
.premio-logo-top .premio-header-text { order: 1 !important; width: 100%; }
.premio-logo-top .premio-logo-img { object-position: left center !important; }
.premio-logo-top h2,
.premio-logo-top .subtitle { max-width: none; }

/* Largura da logo definida em pixels nas configurações do formulário. */
.premio-movimento-container .premio-logo-custom .premio-logo-img {
	width: var(--pm-logo-wm) !important;
	max-width: 100% !important;
	max-height: none !important;
	height: auto !important;
}
.premio-logo-custom .premio-logo { flex-shrink: 1; max-width: 100%; }
@container premio (min-width: 600px) {
	.premio-movimento-container .premio-logo-custom.premio-logo-wd .premio-logo-img { width: var(--pm-logo-w) !important; }
	.premio-movimento-container .premio-logo-custom:not(.premio-logo-wd) .premio-logo-img { width: auto !important; max-width: 300px !important; max-height: 88px !important; }
	.premio-movimento-container .premio-logo-custom.premio-logo-size-s:not(.premio-logo-wd) .premio-logo-img { max-height: 60px !important; }
	.premio-movimento-container .premio-logo-custom.premio-logo-size-l:not(.premio-logo-wd) .premio-logo-img { max-width: 360px !important; max-height: 120px !important; }
	.premio-logo-custom.premio-logo-wd .premio-logo { flex: 0 0 auto; }
}
.premio-movimento-header p + p { margin-top: 6px; }

.premio-preview-bar {
	margin: -8px 0 20px;
	padding: 10px 14px;
	border-radius: var(--pm-radius);
	background: var(--pm-warn-soft);
	color: var(--pm-warn);
	font-size: 0.9rem;
	font-weight: 600;
}

/* Modo revisão (só administradores logados) */
.premio-review-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin: -8px 0 22px;
	padding: 10px 14px;
	border: 1px dashed #8a8478;
	border-radius: var(--pm-radius);
	background: #f4f2ed;
	color: var(--pm-text);
	font-size: 0.88rem;
}
.premio-review-title { font-weight: 700; color: var(--pm-ink); }
.premio-review-bar label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; cursor: pointer; }
.premio-review-bar input { margin: 0; accent-color: var(--pm-primary-strong); }
.premio-review-note { flex-basis: 100%; color: var(--pm-muted); font-size: 0.8rem; }
.premio-free-nav .premio-review-bar { border-color: var(--pm-primary); background: var(--pm-primary-soft); }

/* ------------------------------------------------------------------ */
/* Estrutura: trilha de etapas + conteúdo                              */
/* ------------------------------------------------------------------ */

.premio-shell { display: block; }
.premio-main { min-width: 0; }

.premio-tabs-nav { margin: 0 0 28px; }

.premio-progress-head { display: flex; flex-direction: column; gap: 8px; }
.premio-step-counter { color: var(--pm-muted); font-size: 0.85rem; font-weight: 600; }
.premio-progress {
	display: block;
	height: 6px;
	overflow: hidden;
	border-radius: 99px;
	background: var(--pm-line);
}
.premio-progress-bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--pm-primary);
	transition: width 0.35s ease;
}

/* Formulário estreito: etapas como uma fila de círculos ligados por uma linha. */
.premio-progress { display: none; }
.premio-steps-list { display: flex; align-items: center; margin: 12px 0 0; padding: 0; list-style: none; }
.premio-steps-list li { display: flex; flex: 1 1 0; align-items: center; margin: 0; padding: 0; list-style: none; }
.premio-steps-list li:last-child { flex: 0 0 auto; }
.premio-steps-list li:not(:last-child)::after { content: ""; flex: 1 1 auto; height: 1.5px; margin: 0 6px; background: var(--pm-line-strong); }
.premio-steps-list .premio-tab-button { width: auto; padding: 0; }
.premio-steps-list .step-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.premio-tab-button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 8px 10px 8px 0;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--pm-muted);
	font: inherit;
	font-size: 0.93rem;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.premio-tab-button:hover,
.premio-tab-button:focus { background: none; color: var(--pm-ink); }

/* Blindagem contra estilos globais de botão do tema/Elementor (ex.: .elementor-kit-N button:hover
 * com texto branco), que deixavam o nome da etapa invisível ao passar o mouse ou depois do clique. */
.premio-movimento-container .premio-tabs-nav .premio-tab-button,
.premio-movimento-container .premio-tabs-nav .premio-tab-button:hover,
.premio-movimento-container .premio-tabs-nav .premio-tab-button:focus,
.premio-movimento-container .premio-tabs-nav .premio-tab-button:active {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--pm-muted) !important;
	text-decoration: none !important;
	transform: none !important;
}
.premio-movimento-container .premio-tabs-nav .premio-tab-button:hover,
.premio-movimento-container .premio-tabs-nav .premio-tab-button:focus-visible { color: var(--pm-ink) !important; }
.premio-movimento-container .premio-tabs-nav .premio-tab-button.done { color: var(--pm-text) !important; }
.premio-movimento-container .premio-tabs-nav .premio-tab-button.active { color: var(--pm-ink) !important; }
.premio-movimento-container .premio-tabs-nav .premio-tab-button .step-title { color: inherit !important; background: none !important; }
.premio-movimento-container .premio-tabs-nav .premio-tab-button:hover .step-title { text-decoration: underline; text-underline-offset: 3px; }
.premio-tab-button:focus-visible { outline: 2px solid var(--pm-primary); outline-offset: 2px; }
.premio-tab-button .step-number {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1.5px solid var(--pm-line-strong);
	border-radius: 50%;
	background: #fff;
	color: var(--pm-muted);
	font-size: 0.82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.premio-tab-button.active { color: var(--pm-ink); font-weight: 700; }
.premio-tab-button.active .step-number { border-color: var(--pm-primary); background: var(--pm-primary); color: #fff; box-shadow: 0 0 0 4px var(--pm-primary-ring); }
.premio-tab-button.done { color: var(--pm-text); }
.premio-tab-button.done .step-number { border-color: var(--pm-primary); background: var(--pm-primary-soft); color: var(--pm-primary-strong); }
.premio-tab-button.done .step-number span { visibility: hidden; }
.premio-tab-button.done .step-number::after {
	content: "";
	position: absolute;
	width: 10px;
	height: 6px;
	margin-top: -2px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

/* Formulário largo: trilha vertical fixa à esquerda. */
@container premio (min-width: 820px) {
	.premio-has-steps .premio-shell {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		gap: 48px;
		align-items: start;
	}
	.premio-has-steps .premio-tabs-nav {
		position: sticky;
		top: var(--pm-sticky-top);
		margin: 0;
	}
	.premio-progress { display: block; }
	.premio-steps-list { display: block; margin-top: 22px; }
	.premio-steps-list li { position: relative; display: block; }
	.premio-steps-list li:not(:last-child)::after { content: none; }
	.premio-steps-list .premio-tab-button { width: 100%; padding: 8px 10px 8px 0; }
	.premio-steps-list .step-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
	/* Etapas por categoria: agrupadas sob o título do questionário, com recuo. */
	.premio-steps-list .premio-steps-group:not([hidden]) { display: block !important; margin: 14px 0 2px 42px; color: var(--pm-muted); font-size: 0.78rem; font-weight: 700; }
	.premio-steps-list .premio-steps-group::before { content: none !important; }
	.premio-steps-list .premio-steps-sub .premio-tab-button { padding-left: 14px; }
	.premio-steps-list .premio-steps-sub .step-number { width: 24px; height: 24px; font-size: 0.75rem; margin-left: 3px; }
	/* Linha que liga as etapas. */
	.premio-steps-list li + li::before {
		content: "";
		position: absolute;
		top: -9px;
		left: 14.25px;
		width: 1.5px;
		height: 18px;
		background: var(--pm-line-strong);
	}
	.premio-steps-list li + li { margin-top: 10px; }
}

/* ------------------------------------------------------------------ */
/* Etapa                                                               */
/* ------------------------------------------------------------------ */

.premio-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.premio-step.active { display: block; animation: premio-in 0.28s ease both; }
@keyframes premio-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.premio-step-title {
	display: block;
	float: left; /* faz a legend se comportar como bloco normal em todos os navegadores */
	width: 100%;
	margin: 0 0 22px;
	padding: 0;
	color: var(--pm-ink);
	font-size: clamp(1.3rem, 1rem + 1.2cqi, 1.7rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}
.premio-step > :not(.premio-step-title) { clear: both; }
.premio-step-kicker { display: block; margin-bottom: 4px; color: var(--pm-primary-strong); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; }
.premio-category-block.premio-category-block-solo { margin: 0; padding: 0; border: 0; background: none; }
.premio-steps-group { display: none !important; }
.premio-step-desc { margin: -12px 0 24px; max-width: 65ch; color: var(--pm-muted); }

/* ------------------------------------------------------------------ */
/* Campos                                                              */
/* ------------------------------------------------------------------ */

.premio-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px 20px; }
@container premio (min-width: 560px) {
	.premio-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.premio-field-group.premio-full { grid-column: 1 / -1; }
}
.premio-field-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.premio-label {
	display: block;
	margin: 0;
	color: var(--pm-ink);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
}
.premio-required { color: var(--pm-error); font-weight: 700; }
.premio-help { margin: -2px 0 2px; color: var(--pm-muted); font-size: 0.86rem; line-height: 1.45; }

.premio-movimento-container .premio-input,
.premio-movimento-container .premio-select,
.premio-movimento-container .premio-textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--pm-line-strong);
	border-radius: var(--pm-radius);
	background: var(--pm-field);
	color: var(--pm-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	box-shadow: 0 1px 0 rgba(40, 32, 12, 0.03);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.premio-movimento-container .premio-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%236f695e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 18px;
	cursor: pointer;
}
.premio-movimento-container .premio-textarea { min-height: 150px; resize: vertical; }
.premio-movimento-container .premio-input::placeholder,
.premio-movimento-container .premio-textarea::placeholder { color: #a39c8d; opacity: 1; }
.premio-movimento-container .premio-input:hover,
.premio-movimento-container .premio-select:hover,
.premio-movimento-container .premio-textarea:hover { border-color: #b3a98f; }
.premio-movimento-container .premio-input:focus,
.premio-movimento-container .premio-select:focus,
.premio-movimento-container .premio-textarea:focus {
	border-color: var(--pm-primary);
	outline: none;
	box-shadow: 0 0 0 4px var(--pm-primary-ring);
}
.premio-movimento-container .premio-input[readonly],
.premio-movimento-container .premio-select:disabled { background: #f4f2ed; color: var(--pm-muted); cursor: not-allowed; }
.premio-char-count { align-self: flex-end; margin-top: -2px; color: var(--pm-muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

/* Opções (múltipla escolha e caixas de seleção) como cartões clicáveis. */
.premio-checkbox-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@container premio (min-width: 560px) {
	.premio-checkbox-group { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
	[data-options="2"] .premio-checkbox-group,
	[data-options="3"] .premio-checkbox-group { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}
/* Colunas escolhidas no editor (sobrepõem o automático). */
.premio-field-group[data-columns] .premio-checkbox-group { grid-template-columns: minmax(0, 1fr); }
@container premio (min-width: 560px) {
	.premio-field-group[data-columns="2"] .premio-checkbox-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.premio-field-group[data-columns="3"] .premio-checkbox-group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container premio (min-width: 760px) {
	.premio-field-group[data-columns="3"] .premio-checkbox-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Uma coluna: cartões mais baixos, com a descrição ao lado do título quando cabe. */
.premio-field-group[data-columns="1"] .premio-checkbox-label { padding: 14px 18px; }
.premio-field-group[data-columns="1"] .premio-option-desc { max-width: 70ch; }

.premio-movimento-container .premio-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 13px 16px;
	border: 1px solid var(--pm-line-strong);
	border-radius: var(--pm-radius);
	background: #fff;
	color: var(--pm-text);
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.premio-checkbox-label:hover { border-color: #b3a98f; }
.premio-checkbox-label > span { display: flex; flex-direction: column; gap: 3px; }
.premio-checkbox-label.is-checked,
.premio-checkbox-label:has(input:checked) {
	border-color: var(--pm-primary);
	background: var(--pm-primary-soft);
	box-shadow: inset 0 0 0 1px var(--pm-primary);
	color: var(--pm-ink);
}
.premio-checkbox-label:focus-within { box-shadow: 0 0 0 4px var(--pm-primary-ring); }
.premio-checkbox-label.is-checked:focus-within,
.premio-checkbox-label:has(input:checked):focus-within { box-shadow: inset 0 0 0 1px var(--pm-primary), 0 0 0 4px var(--pm-primary-ring); }
.premio-movimento-container .premio-checkbox {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 1px 0 0;
	accent-color: var(--pm-primary-strong);
	cursor: pointer;
}
.premio-option-desc { color: var(--pm-muted); font-size: 0.86rem; font-weight: 400; }
.premio-movimento-container .premio-single-check { background: var(--pm-panel); }

/* Arquivos */
.premio-drop {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 2px 14px;
	padding: 18px 20px;
	border: 1.5px dashed var(--pm-line-strong);
	border-radius: var(--pm-radius);
	background: var(--pm-panel);
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.premio-drop:hover, .premio-drop.is-dragover { border-color: var(--pm-primary); background: var(--pm-primary-soft); }
.premio-drop:focus-within { border-color: var(--pm-primary); box-shadow: 0 0 0 4px var(--pm-primary-ring); }
.premio-drop.has-files { border-style: solid; border-color: var(--pm-primary); background: var(--pm-primary-soft); }
.premio-drop-icon { grid-row: span 3; width: 30px; height: 30px; color: var(--pm-primary-strong); }
.premio-drop-text { color: var(--pm-ink); font-size: 0.95rem; }
.premio-drop-text strong { color: var(--pm-primary-strong); }
.premio-drop-meta { color: var(--pm-muted); font-size: 0.84rem; }
.premio-file-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.premio-file-list:empty { display: none; }
.premio-file-list li { display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--pm-line); border-radius: 8px; background: #fff; font-size: 0.9rem; }
.premio-file-list li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: var(--pm-primary-strong);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5h5l3.5 3.5v9a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5V2a.5.5 0 0 1 .5-.5zM9 1.5V5h3.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 1.5h5l3.5 3.5v9a.5.5 0 0 1-.5.5H4a.5.5 0 0 1-.5-.5V2a.5.5 0 0 1 .5-.5zM9 1.5V5h3.5' fill='none' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.premio-file-name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--pm-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.premio-file-size { flex: 0 0 auto; color: var(--pm-muted); font-size: 0.82rem; }
.premio-movimento-container .premio-file-remove { flex: 0 0 auto; margin: 0; padding: 2px 6px !important; border: 0 !important; background: none !important; color: var(--pm-error) !important; font: inherit; font-size: 0.82rem; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none !important; }
.premio-file-list li.premio-file-note { border-style: dashed; background: var(--pm-warn-soft); color: var(--pm-warn); }
.premio-file-list li.premio-file-note::before { content: none; }
.premio-movimento-container .premio-file {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	cursor: pointer;
}
.premio-file-help, .premio-current-files { margin: 0; color: var(--pm-muted); font-size: 0.86rem; }

/* Endereço */
.premio-address { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.premio-address-part { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.premio-ap-cep, .premio-ap-street, .premio-ap-num, .premio-ap-comp, .premio-ap-district { grid-column: 1 / -1; }
@container premio (min-width: 560px) {
	.premio-address { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; }
	.premio-ap-cep { grid-column: 1 / 7; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr); column-gap: 16px; align-items: center; }
	.premio-ap-cep .premio-sublabel { grid-column: 1 / -1; }
	.premio-ap-street { grid-column: 1 / 5; }
	.premio-ap-num { grid-column: 5 / 7; }
	.premio-ap-comp { grid-column: 1 / 4; }
	.premio-ap-district { grid-column: 4 / 7; }
	.premio-ap-city { grid-column: 1 / 5; }
	.premio-ap-uf { grid-column: 5 / 7; }
}
.premio-sublabel { margin: 0; color: var(--pm-muted); font-size: 0.82rem; font-weight: 600; }
.premio-address-status { min-height: 1.2em; color: var(--pm-muted); font-size: 0.86rem; }
.premio-address-status.is-ok { color: var(--pm-ok); }
.premio-address-status.is-warn { color: var(--pm-warn); }
.premio-movimento-container .premio-input.is-missing,
.premio-movimento-container .premio-select.is-missing { border-color: var(--pm-error); }

/* Estado das consultas (CNPJ e CEP) */
.premio-doc-status {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 8px;
	font-size: 0.87rem;
	font-weight: 600;
	line-height: 1.4;
}
.premio-doc-status::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; }
.premio-doc-status.is-loading { background: var(--pm-panel); color: var(--pm-muted); }
.premio-doc-status.is-loading::before { border: 2px solid var(--pm-line-strong); border-top-color: var(--pm-primary); animation: premio-spin 0.8s linear infinite; }
.premio-doc-status.is-ok { background: var(--pm-ok-soft); color: var(--pm-ok); }
.premio-doc-status.is-ok::before { background: var(--pm-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.premio-doc-status.is-warn { background: var(--pm-warn-soft); color: var(--pm-warn); }
.premio-doc-status.is-warn::before { background: var(--pm-warn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4.2M8 11.2v.1' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
@keyframes premio-spin { to { transform: rotate(360deg); } }

/* Erros por campo */
.premio-field-error {
	margin: 0;
	color: var(--pm-error);
	font-size: 0.87rem;
	font-weight: 600;
}
.premio-field-error:empty { display: none; }
.premio-field-group.has-error > .premio-input,
.premio-field-group.has-error > .premio-select,
.premio-field-group.has-error > .premio-textarea,
.premio-field-group.has-error .premio-drop,
.premio-field-group.has-error .premio-checkbox-label { border-color: var(--pm-error); }
.premio-field-group.has-error > .premio-input:focus,
.premio-field-group.has-error > .premio-textarea:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.14); }

/* Texto informativo */
.premio-info { padding: 16px 18px; border-radius: var(--pm-radius); background: var(--pm-panel); color: var(--pm-text); }
.premio-info strong { display: block; color: var(--pm-ink); }
.premio-info p { margin: 6px 0 0; }

/* Perguntas por categoria */
.premio-category-block {
	margin: 0 0 22px;
	padding: clamp(18px, 3cqi, 28px);
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	background: var(--pm-panel);
}
.premio-category-block h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 20px;
	color: var(--pm-ink);
	font-size: 1.12rem;
	font-weight: 700;
}
.premio-category-block h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--pm-primary); transform: rotate(45deg); }
.premio-category-block .premio-input,
.premio-category-block .premio-select,
.premio-category-block .premio-textarea,
.premio-category-block .premio-checkbox-label { background: #fff; }
.premio-category-empty, .premio-no-category { margin: 0; color: var(--pm-muted); }
.premio-no-category { padding: 18px 20px; border: 1px dashed var(--pm-line-strong); border-radius: var(--pm-radius); }

/* ------------------------------------------------------------------ */
/* Navegação e botões                                                  */
/* ------------------------------------------------------------------ */

.premio-form-navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--pm-line);
}
.premio-form-navigation .premio-btn-next,
.premio-form-navigation .premio-btn-submit { margin-left: auto; }

.premio-movimento-container .premio-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	margin: 0;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: var(--pm-radius);
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.premio-movimento-container .premio-button:active { transform: translateY(1px); }
.premio-movimento-container .premio-button:focus-visible { outline: 2px solid var(--pm-primary); outline-offset: 3px; }
.premio-movimento-container .premio-button-primary { background: var(--pm-primary-strong); color: #fff; }
.premio-movimento-container .premio-button-primary:hover,
.premio-movimento-container .premio-button-primary:focus { background: var(--pm-ink); color: #fff; }
.premio-movimento-container .premio-button-secondary { background: #fff; color: var(--pm-ink); border-color: var(--pm-line-strong); }
.premio-movimento-container .premio-button-secondary:hover,
.premio-movimento-container .premio-button-secondary:focus { background: var(--pm-panel); color: var(--pm-ink); border-color: #b3a98f; }
.premio-movimento-container .premio-btn-submit { padding-inline: 34px; }
.premio-movimento-container .premio-button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.premio-loading .premio-form-content { opacity: 0.6; pointer-events: none; transition: opacity 0.2s; }

/* ------------------------------------------------------------------ */
/* Mensagens                                                           */
/* ------------------------------------------------------------------ */

.premio-errors {
	margin-top: 24px;
	padding: 16px 18px;
	border: 1px solid rgba(180, 35, 24, 0.25);
	border-radius: var(--pm-radius);
	background: var(--pm-error-soft);
	color: var(--pm-error);
}
.premio-errors p { margin: 0 0 6px; }
.premio-errors p:last-child { margin-bottom: 0; }
.premio-errors ul { margin: 0; padding-left: 20px; }
.premio-errors li { margin: 2px 0; }

.premio-success {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: clamp(24px, 4cqi, 40px);
	border: 1px solid rgba(35, 116, 74, 0.25);
	border-radius: 14px;
	background: var(--pm-ok-soft);
	color: #154a2f;
	font-size: 1.05rem;
}
.premio-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: var(--pm-ok);
	color: #fff;
	animation: premio-pop 0.4s cubic-bezier(.2, .9, .3, 1.3) both;
}
.premio-success-icon svg { width: 28px; height: 28px; }
@keyframes premio-pop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
.premio-success p { margin: 0 0 6px; max-width: 62ch; }
.premio-protocols { align-self: stretch; margin: 6px 0 10px; padding: 14px 18px; border: 1px solid rgba(35, 116, 74, 0.25); border-radius: 10px; background: #fff; }
.premio-protocols-title { display: block; margin-bottom: 6px; color: var(--pm-muted); font-size: 0.85rem; font-weight: 600; }
.premio-protocols ul { margin: 0; padding: 0; list-style: none; }
.premio-protocols li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 2px 0; }
.premio-protocols strong { color: var(--pm-ink); font-size: 1.15rem; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.premio-protocols li span { color: var(--pm-muted); font-size: 0.92rem; }
.premio-success a { color: #154a2f; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.premio-notice {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 20px 22px;
	border: 1px solid var(--pm-line);
	border-radius: 14px;
	background: var(--pm-panel);
	color: var(--pm-text);
	font-size: 1.02rem;
}
.premio-notice::before {
	content: "";
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	background: var(--pm-primary-strong);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3v3M17 3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3v3M17 3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.premio-notice p { margin: 0; }

/* Campo invisível anti-spam */
.premio-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Telas pequenas                                                      */
/* ------------------------------------------------------------------ */

@container premio (max-width: 520px) {
	.premio-form-navigation { flex-direction: column-reverse; align-items: stretch; }
	.premio-form-navigation .premio-button { width: 100%; margin-left: 0; }
}
@media (max-width: 600px) {
	.premio-movimento-container { margin: 12px 0; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.premio-movimento-container *,
	.premio-movimento-container *::before { animation: none !important; transition: none !important; }
}

/* Só um aviso (inscrições fechadas, link inválido): sem a moldura do formulário. */
.premio-movimento-container.premio-is-notice { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
