/*
 * Diagnóstico Institucional Fomentta+ — estilos do formulário.
 * Todo o CSS é isolado dentro de .fmtd para não afetar o restante do site.
 * Cores e fontes seguem os tokens do tema fomentta-theme.
 */

.fmtd {
	--fmtd-navy: #0F2A4A;
	--fmtd-navy-dark: #0A1D33;
	--fmtd-navy-light: #16385F;
	--fmtd-gold: #C99B3F;
	--fmtd-gold-text: #94691A;
	--fmtd-gold-soft: #F7EFDF;
	--fmtd-bg: #F4F6F9;
	--fmtd-line: #E2E8F0;
	--fmtd-input-line: #D3DCE6;
	--fmtd-muted: #5B6B7C;
	--fmtd-text: #1C2733;
	--fmtd-white: #FFFFFF;
	--fmtd-error: #B42318;
	--fmtd-error-bg: #FEF3F2;
	--fmtd-radius: 10px;
	--fmtd-radius-sm: 6px;
	--fmtd-shadow: 0 2px 14px rgba(15, 42, 74, 0.06);
	--fmtd-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 0 48px;
	font-family: var(--fmtd-font);
	font-size: 16px;
	line-height: 1.55;
	color: var(--fmtd-text);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.fmtd *,
.fmtd *::before,
.fmtd *::after {
	box-sizing: border-box;
}

.fmtd [hidden] {
	display: none !important;
}

.fmtd h2,
.fmtd h3,
.fmtd h4,
.fmtd p,
.fmtd ol,
.fmtd ul,
.fmtd fieldset,
.fmtd legend {
	margin: 0;
	padding: 0;
	border: 0;
	font-family: var(--fmtd-font);
	letter-spacing: normal;
	text-transform: none;
}

.fmtd ol,
.fmtd ul {
	list-style: none;
}

.fmtd svg {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

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

.fmtd-hero {
	padding: 8px 0 28px;
}

.fmtd-hero__logo {
	display: block;
	width: auto;
	max-width: 200px;
	max-height: 56px;
	height: auto;
	margin: 0 0 26px;
}

.fmtd .fmtd-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fmtd-gold-text);
	margin-bottom: 10px;
}

.fmtd .fmtd-hero__title {
	font-size: clamp(28px, 4.2vw, 38px);
	line-height: 1.15;
	font-weight: 700;
	color: var(--fmtd-navy);
	margin-bottom: 14px;
}

.fmtd .fmtd-hero__lead {
	max-width: 680px;
	font-size: 17px;
	color: var(--fmtd-muted);
	margin-bottom: 18px;
}

.fmtd .fmtd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 14px;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.fmtd .fmtd-hero__meta svg {
	color: var(--fmtd-gold);
}

.fmtd-js-only {
	display: none !important;
}

.fmtd--js .fmtd-js-only {
	display: inline-flex !important;
}

.fmtd--js p.fmtd-js-only {
	display: block !important;
}

/* ---------- Rascunho ---------- */

.fmtd-draft {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 16px;
	margin-bottom: 18px;
	font-size: 14px;
	background: var(--fmtd-gold-soft);
	border-radius: var(--fmtd-radius-sm);
	color: var(--fmtd-text);
}

.fmtd .fmtd-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	font-weight: 600;
	color: var(--fmtd-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

/* ---------- Etapas ---------- */

.fmtd-steps {
	display: none;
	position: sticky;
	top: 0;
	z-index: 5;
	margin: 0 0 22px;
	padding: 14px 18px 0;
	background: var(--fmtd-white);
	border: 1px solid var(--fmtd-line);
	border-radius: var(--fmtd-radius);
	box-shadow: var(--fmtd-shadow);
}

.admin-bar .fmtd-steps {
	top: 32px;
}

.fmtd--js .fmtd-steps {
	display: block;
}

.fmtd-steps ol {
	display: flex;
	justify-content: space-between;
	gap: 6px;
}

.fmtd-steps__item {
	flex: 1 1 0;
	min-width: 0;
}

.fmtd .fmtd-steps__btn {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 0 2px 12px;
	margin: 0;
	background: none;
	border: 0;
	box-shadow: none;
	font: inherit;
	color: var(--fmtd-muted);
	cursor: pointer;
	text-align: center;
}

.fmtd .fmtd-steps__btn:disabled {
	cursor: default;
	opacity: 0.55;
}

.fmtd-steps__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	background: var(--fmtd-bg);
	color: var(--fmtd-muted);
	border: 1px solid var(--fmtd-line);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fmtd-steps__label {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.fmtd-steps__item.is-done .fmtd-steps__num {
	background: var(--fmtd-gold-soft);
	border-color: var(--fmtd-gold);
	color: var(--fmtd-gold-text);
}

.fmtd-steps__item.is-current .fmtd-steps__num {
	background: var(--fmtd-navy);
	border-color: var(--fmtd-navy);
	color: var(--fmtd-white);
}

.fmtd-steps__item.is-current .fmtd-steps__label {
	color: var(--fmtd-navy);
}

.fmtd-progress {
	height: 3px;
	margin: 0 -18px;
	background: var(--fmtd-line);
	border-radius: 0 0 var(--fmtd-radius) var(--fmtd-radius);
	overflow: hidden;
}

.fmtd-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--fmtd-gold);
	transition: width 0.3s ease;
}

/* ---------- Seções ---------- */

.fmtd-step {
	background: var(--fmtd-white);
	border: 1px solid var(--fmtd-line);
	border-radius: var(--fmtd-radius);
	box-shadow: var(--fmtd-shadow);
	padding: 34px 36px 30px;
	margin-bottom: 22px;
}

.fmtd--js .fmtd-step {
	display: none;
}

.fmtd--js .fmtd-step.is-active {
	display: block;
	animation: fmtd-in 0.25s ease;
}

@keyframes fmtd-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}

.fmtd-step__head {
	margin-bottom: 26px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--fmtd-line);
}

.fmtd-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--fmtd-gold-text);
	margin-bottom: 6px;
}

.fmtd .fmtd-step__title {
	font-size: 23px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--fmtd-navy);
	margin-bottom: 6px;
	outline: none;
}

.fmtd .fmtd-step__intro {
	font-size: 15px;
	color: var(--fmtd-muted);
}

/* ---------- Grade de campos ---------- */

.fmtd-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 22px 20px;
}

.fmtd-field {
	grid-column: span 6;
	min-width: 0;
}

.fmtd-w-half { grid-column: span 3; }
.fmtd-w-third { grid-column: span 2; }
.fmtd-w-twothirds { grid-column: span 4; }

.fmtd .fmtd-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--fmtd-text);
	margin-bottom: 7px;
}

.fmtd .fmtd-help {
	font-size: 13px;
	color: var(--fmtd-muted);
	margin: -3px 0 8px;
}

.fmtd-req {
	color: var(--fmtd-gold-text);
	font-weight: 700;
}

.fmtd .fmtd-input {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	font-family: var(--fmtd-font);
	font-size: 15px;
	line-height: 1.45;
	color: var(--fmtd-text);
	background: var(--fmtd-white);
	border: 1px solid var(--fmtd-input-line);
	border-radius: var(--fmtd-radius-sm);
	box-shadow: none;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.fmtd .fmtd-input::placeholder {
	color: #98A6B5;
	opacity: 1;
}

.fmtd .fmtd-input:hover {
	border-color: #B8C5D3;
}

.fmtd .fmtd-input:focus {
	border-color: var(--fmtd-navy);
	box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.12);
}

.fmtd .fmtd-textarea {
	min-height: 92px;
	resize: vertical;
	overflow-y: hidden;
}

.fmtd .fmtd-select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235B6B7C' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 15px center;
	cursor: pointer;
}

.fmtd-field.has-error .fmtd-input {
	border-color: var(--fmtd-error);
}

.fmtd-field.has-error .fmtd-input:focus {
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.fmtd .fmtd-error {
	display: none;
	font-size: 13px;
	font-weight: 500;
	color: var(--fmtd-error);
	margin-top: 6px;
}

.fmtd-field.has-error .fmtd-error {
	display: block;
}

/* ---------- Opções (cartões, sim/não, caixas) ---------- */

.fmtd-option {
	position: relative;
	display: block;
	margin: 0;
	cursor: pointer;
}

.fmtd-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.fmtd-option__box {
	display: block;
	height: 100%;
	border: 1px solid var(--fmtd-input-line);
	border-radius: var(--fmtd-radius-sm);
	background: var(--fmtd-white);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.fmtd-option:hover .fmtd-option__box {
	border-color: #B8C5D3;
}

.fmtd-option input:focus-visible + .fmtd-option__box {
	box-shadow: 0 0 0 3px rgba(15, 42, 74, 0.18);
}

.fmtd-option input:checked + .fmtd-option__box {
	border-color: var(--fmtd-navy);
	background: #F5F8FB;
	box-shadow: inset 0 0 0 1px var(--fmtd-navy);
}

.fmtd-option__label {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: var(--fmtd-text);
}

.fmtd-option__desc {
	display: block;
	margin-top: 3px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--fmtd-muted);
}

/* Cartões de perfil */
.fmtd-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.fmtd-cards .fmtd-option__box {
	position: relative;
	padding: 15px 16px 15px 46px;
}

.fmtd-cards .fmtd-option__box::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 17px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1.5px solid #AEBBC9;
	background: var(--fmtd-white);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fmtd-cards .fmtd-option input:checked + .fmtd-option__box::before {
	border-color: var(--fmtd-navy);
	box-shadow: inset 0 0 0 4px var(--fmtd-white), inset 0 0 0 9px var(--fmtd-navy);
}

/* Sim / Não */
.fmtd-pills {
	display: flex;
	gap: 10px;
}

.fmtd-pills .fmtd-option {
	flex: 0 0 auto;
}

.fmtd-pills .fmtd-option__box {
	min-width: 92px;
	padding: 10px 18px;
	text-align: center;
}

.fmtd-pills .fmtd-option__label {
	font-weight: 500;
}

/* Caixas de seleção */
.fmtd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.fmtd-chips .fmtd-option__box {
	position: relative;
	padding: 9px 14px 9px 38px;
}

.fmtd-chips .fmtd-option__label {
	font-size: 14px;
	font-weight: 500;
}

.fmtd-chips .fmtd-option__box::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 4px;
	border: 1.5px solid #AEBBC9;
	background: var(--fmtd-white) no-repeat center / 11px;
}

.fmtd-chips .fmtd-option input:checked + .fmtd-option__box::before {
	border-color: var(--fmtd-navy);
	background-color: var(--fmtd-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.fmtd-field.has-error .fmtd-option__box {
	border-color: var(--fmtd-error);
}

/* ---------- Perfis ---------- */

.fmtd-profile + .fmtd-profile {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px dashed var(--fmtd-line);
}

.fmtd .fmtd-profile__tag {
	display: inline-block;
	margin-bottom: 20px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fmtd-navy);
	background: var(--fmtd-bg);
	border-radius: 999px;
}

.fmtd--js .fmtd-profile {
	display: none;
}

.fmtd--js .fmtd-profile.is-active {
	display: block;
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

[data-profile-empty] {
	display: none;
}

.fmtd--js [data-profile-empty].is-active {
	display: block;
}

/* ---------- Avisos ---------- */

.fmtd .fmtd-notice {
	padding: 14px 16px;
	font-size: 14px;
	color: var(--fmtd-text);
	background: var(--fmtd-bg);
	border-left: 3px solid var(--fmtd-navy);
	border-radius: 0 var(--fmtd-radius-sm) var(--fmtd-radius-sm) 0;
}

.fmtd .fmtd-notice--warn {
	margin-top: 24px;
	border-left-color: var(--fmtd-gold);
	background: var(--fmtd-gold-soft);
}

.fmtd-alert {
	margin: 0 0 20px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--fmtd-error);
	background: var(--fmtd-error-bg);
	border: 1px solid #FECDCA;
	border-radius: var(--fmtd-radius-sm);
}

/* ---------- Navegação ---------- */

.fmtd-nav {
	display: none;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding-top: 22px;
	border-top: 1px solid var(--fmtd-line);
}

.fmtd--js .fmtd-nav {
	display: flex;
}

/* Sem JavaScript, apenas o botão de envio aparece. */
.fmtd:not(.fmtd--js) .fmtd-step--review .fmtd-nav {
	display: flex;
	justify-content: flex-end;
}

.fmtd:not(.fmtd--js) .fmtd-step--review [data-fmtd-action="prev"] {
	display: none;
}

.fmtd .fmtd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	margin: 0;
	padding: 11px 24px;
	font-family: var(--fmtd-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	border-radius: var(--fmtd-radius-sm);
	border: 1px solid transparent;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fmtd .fmtd-btn--primary {
	background: var(--fmtd-navy);
	border-color: var(--fmtd-navy);
	color: var(--fmtd-white);
}

.fmtd .fmtd-btn--primary:hover,
.fmtd .fmtd-btn--primary:focus {
	background: var(--fmtd-navy-light);
	border-color: var(--fmtd-navy-light);
	color: var(--fmtd-white);
}

.fmtd .fmtd-btn--ghost {
	background: transparent;
	border-color: var(--fmtd-input-line);
	color: var(--fmtd-navy);
}

.fmtd .fmtd-btn--ghost:hover,
.fmtd .fmtd-btn--ghost:focus {
	background: var(--fmtd-bg);
	color: var(--fmtd-navy);
}

.fmtd .fmtd-btn--lg {
	min-height: 50px;
	padding: 13px 28px;
}

.fmtd .fmtd-btn:focus-visible,
.fmtd .fmtd-steps__btn:focus-visible,
.fmtd .fmtd-link:focus-visible {
	outline: 2px solid var(--fmtd-gold);
	outline-offset: 3px;
}

.fmtd .fmtd-btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.fmtd-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fmtd-spin 0.8s linear infinite;
}

@keyframes fmtd-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Revisão ---------- */

.fmtd-review:empty {
	display: none;
}

.fmtd-review__section {
	margin-bottom: 18px;
	border: 1px solid var(--fmtd-line);
	border-radius: var(--fmtd-radius-sm);
	overflow: hidden;
}

.fmtd-review__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	background: var(--fmtd-bg);
}

.fmtd .fmtd-review__title {
	font-size: 15px;
	font-weight: 700;
	color: var(--fmtd-navy);
}

.fmtd-review__count {
	font-weight: 500;
	font-size: 13px;
	color: var(--fmtd-muted);
	margin-left: 6px;
}

.fmtd-review dl {
	margin: 0;
	padding: 4px 16px;
}

.fmtd-review__row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 4px 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fmtd-line);
}

.fmtd-review__row:last-child {
	border-bottom: 0;
}

.fmtd-review dt {
	font-size: 13px;
	font-weight: 600;
	color: var(--fmtd-muted);
}

.fmtd-review dd {
	margin: 0;
	font-size: 14px;
	color: var(--fmtd-text);
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.fmtd .fmtd-review__empty {
	padding: 12px 0;
	font-size: 14px;
	font-style: italic;
	color: var(--fmtd-muted);
}

/* ---------- Privacidade ---------- */

.fmtd-privacy {
	margin-top: 26px;
	padding: 20px 22px;
	background: var(--fmtd-bg);
	border-radius: var(--fmtd-radius-sm);
	font-size: 14px;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-privacy p {
	margin-bottom: 10px;
}

.fmtd .fmtd-privacy a {
	color: var(--fmtd-navy);
	font-weight: 600;
}

.fmtd .fmtd-privacy__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fmtd-navy);
	margin-bottom: 8px;
}

.fmtd-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--fmtd-line);
	font-size: 14px;
	font-weight: 500;
	color: var(--fmtd-text);
	cursor: pointer;
}

.fmtd .fmtd-check input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--fmtd-navy);
}

/* ---------- Confirmação ---------- */

.fmtd-done {
	padding: 54px 36px 46px;
	text-align: center;
	background: var(--fmtd-white);
	border: 1px solid var(--fmtd-line);
	border-radius: var(--fmtd-radius);
	box-shadow: var(--fmtd-shadow);
}

.fmtd-done__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 66px;
	height: 66px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: var(--fmtd-gold-soft);
	color: var(--fmtd-gold-text);
}

.fmtd .fmtd-done__title {
	font-size: clamp(24px, 3.4vw, 30px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--fmtd-navy);
	margin-bottom: 12px;
}

.fmtd .fmtd-done__text {
	max-width: 520px;
	margin: 0 auto 10px;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-done__protocol {
	margin-bottom: 28px;
	font-size: 14px;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-done__protocol strong {
	color: var(--fmtd-navy);
	letter-spacing: 0.03em;
}

.fmtd .fmtd-done__note {
	max-width: 440px;
	margin: 18px auto 0;
	font-size: 13px;
	color: var(--fmtd-muted);
}

/* Armadilha anti-robô */
.fmtd-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Responsivo ---------- */

@media (max-width: 782px) {
	.admin-bar .fmtd-steps {
		top: 46px;
	}
}

@media (max-width: 720px) {
	.fmtd {
		padding-bottom: 32px;
	}

	.fmtd-step {
		padding: 24px 20px 22px;
	}

	.fmtd-w-half,
	.fmtd-w-third,
	.fmtd-w-twothirds {
		grid-column: span 6;
	}

	.fmtd-grid {
		gap: 20px;
	}

	.fmtd-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.fmtd-steps {
		padding: 12px 12px 0;
	}

	.fmtd-progress {
		margin: 0 -12px;
	}

	.fmtd-steps__label {
		display: none;
	}

	.fmtd-steps__item.is-current .fmtd-steps__label {
		display: none;
	}

	.fmtd .fmtd-steps__current {
		display: block;
	}

	.fmtd-review__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.fmtd-nav {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.fmtd .fmtd-btn {
		width: 100%;
	}

	.fmtd-done {
		padding: 40px 20px 34px;
	}

	.fmtd .fmtd-hero__lead {
		font-size: 16px;
	}
}

/* Nome da etapa atual (exibido no celular) */
.fmtd-steps__current {
	display: none;
	padding: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fmtd-navy);
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.fmtd *,
	.fmtd *::before,
	.fmtd *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* ---------- Blindagem contra estilos de botão do tema ---------- */

.fmtd button.fmtd-link,
.fmtd button.fmtd-steps__btn {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-height: 0 !important;
}

.fmtd button.fmtd-steps__btn {
	width: 100%;
	padding: 0 2px 12px !important;
	color: var(--fmtd-muted) !important;
	font-size: inherit !important;
}

.fmtd button.fmtd-link {
	width: auto;
	padding: 0 !important;
	color: var(--fmtd-navy) !important;
	font-size: 14px !important;
	text-decoration: underline !important;
}

.fmtd .fmtd-btn { border-radius: var(--fmtd-radius-sm) !important; text-transform: none !important; letter-spacing: 0 !important; text-decoration: none !important; }
.fmtd .fmtd-btn.fmtd-btn--primary { background: var(--fmtd-navy) !important; border: 1px solid var(--fmtd-navy) !important; color: #fff !important; }
.fmtd .fmtd-btn.fmtd-btn--primary:hover,
.fmtd .fmtd-btn.fmtd-btn--primary:focus { background: var(--fmtd-navy-light) !important; border-color: var(--fmtd-navy-light) !important; color: #fff !important; }
.fmtd .fmtd-btn.fmtd-btn--ghost { background: transparent !important; border: 1px solid var(--fmtd-input-line) !important; color: var(--fmtd-navy) !important; }
.fmtd .fmtd-btn.fmtd-btn--ghost:hover,
.fmtd .fmtd-btn.fmtd-btn--ghost:focus { background: var(--fmtd-bg) !important; }

/* ---------- Blindagem de campos de opção e fieldset ---------- */

.fmtd .fmtd-fieldset {
	display: block !important;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.fmtd .fmtd-option input[type="radio"],
.fmtd .fmtd-option input[type="checkbox"] {
	position: absolute !important;
	top: 0;
	left: 0;
	width: 1px !important;
	height: 1px !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	border: 0 !important;
	pointer-events: none;
}

.fmtd .fmtd-check input[type="checkbox"] {
	-webkit-appearance: auto !important;
	appearance: auto !important;
	position: static !important;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	opacity: 1 !important;
}

.fmtd .fmtd-check input[type="checkbox"]::before,
.fmtd .fmtd-check input[type="checkbox"]::after {
	content: none !important;
	display: none !important;
}

/* ======================================================================
 * 1.0.2 — Alternativas, valores em reais e contatos da Regional
 * ====================================================================== */

/* Alternativas "Não se aplica" / "Não informado" */
.fmtd-x {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 9px;
}

.fmtd .fmtd-x__opt {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin: 0;
	cursor: pointer;
}

.fmtd .fmtd-x__opt input[type="checkbox"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	pointer-events: none;
}

.fmtd .fmtd-x__opt span {
	display: inline-block;
	padding: 4px 11px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--fmtd-muted);
	background: var(--fmtd-white);
	border: 1px dashed #C3CEDA;
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fmtd .fmtd-x__opt:hover span {
	border-color: var(--fmtd-navy);
	color: var(--fmtd-navy);
}

.fmtd .fmtd-x__opt input:focus-visible + span {
	outline: 2px solid var(--fmtd-gold);
	outline-offset: 2px;
}

.fmtd .fmtd-x__opt input:checked + span {
	background: var(--fmtd-navy);
	border: 1px solid var(--fmtd-navy);
	color: #fff;
}

.fmtd .fmtd-x__opt input:checked + span::before {
	content: "✓ ";
}

/* Campo marcado com uma alternativa: resposta desativada */
.fmtd-field.is-escaped .fmtd-input,
.fmtd-field.is-escaped .fmtd-cards,
.fmtd-field.is-escaped .fmtd-chips,
.fmtd-field.is-escaped .fmtd-pills,
.fmtd-field.is-escaped .fmtd-contacts,
.fmtd-field.is-escaped .fmtd-btn--add {
	opacity: 0.45;
}

.fmtd .fmtd-field.is-escaped .fmtd-input {
	background: var(--fmtd-bg);
}

.fmtd-field.is-escaped .fmtd-contacts .fmtd-field.has-error .fmtd-error {
	display: none;
}

/* Valores em reais */
.fmtd-money {
	display: flex;
	gap: 10px;
	max-width: 440px;
}

.fmtd .fmtd-input--money {
	flex: 1 1 auto;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.01em;
}

.fmtd .fmtd-money__period {
	flex: 0 0 140px;
	width: 140px;
}

/* Contatos da Regional de Saúde */
.fmtd-contacts {
	display: grid;
	gap: 14px;
	margin-top: 4px;
}

.fmtd-contact {
	padding: 16px 18px 18px;
	background: #FAFBFC;
	border: 1px solid var(--fmtd-line);
	border-radius: var(--fmtd-radius-sm);
}

.fmtd-contact__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.fmtd-contact__title {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--fmtd-navy);
}

.fmtd .fmtd-contact .fmtd-grid {
	gap: 14px 16px;
}

.fmtd .fmtd-contacts .fmtd-contact:only-child .fmtd-contact__remove {
	display: none;
}

.fmtd button.fmtd-contact__remove {
	font-size: 13px !important;
	color: var(--fmtd-error) !important;
}

.fmtd .fmtd-btn.fmtd-btn--add {
	margin-top: 12px;
	min-height: 40px;
	padding: 8px 16px;
	font-size: 14px;
	border-style: dashed !important;
}

.fmtd:not(.fmtd--js) .fmtd-btn--add,
.fmtd:not(.fmtd--js) .fmtd-contact__remove {
	display: none !important;
}

@media (max-width: 720px) {
	.fmtd-money {
		max-width: none;
	}

	.fmtd .fmtd-money__period {
		flex-basis: 120px;
		width: 120px;
	}

	.fmtd-contact {
		padding: 14px 14px 16px;
	}

	.fmtd .fmtd-btn.fmtd-btn--add {
		width: 100%;
	}
}
.fmtd-field.is-escaped .fmtd-contacts .fmtd-input { opacity: 1; }
.fmtd .fmtd-review dd,
.fmtd .fmtd-review dt { margin: 0 !important; padding: 0 !important; }

/* ======================================================================
 * 1.0.3 — Condicionais, subtítulos, percentuais e documentos
 * ====================================================================== */

.fmtd--js .fmtd-field.is-cond-hidden {
	display: none;
}

.fmtd .fmtd-opt {
	font-weight: 400;
	font-size: 13px;
	color: var(--fmtd-muted);
}

/* Subtítulo de bloco dentro de uma etapa */
.fmtd-subhead {
	grid-column: 1 / -1;
	margin-top: 18px;
	padding-top: 24px;
	border-top: 1px solid var(--fmtd-line);
}

.fmtd .fmtd-subhead__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--fmtd-navy);
	margin-bottom: 4px;
}

.fmtd .fmtd-subhead__text {
	font-size: 14px;
	color: var(--fmtd-muted);
}

/* Percentual e números */
.fmtd-suffix {
	position: relative;
	max-width: 220px;
}

.fmtd .fmtd-suffix .fmtd-input {
	padding-right: 38px;
}

.fmtd-suffix__unit {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 600;
	color: var(--fmtd-muted);
	pointer-events: none;
}

.fmtd .fmtd-input--int,
.fmtd .fmtd-input--date {
	max-width: 260px;
	font-variant-numeric: tabular-nums;
}

/* Rádios com rótulos longos quebram linha normalmente */
.fmtd-pills {
	flex-wrap: wrap;
}

.fmtd .fmtd-pills .fmtd-option__box {
	min-width: 92px;
}

/* Documentos (PDF) */
.fmtd .fmtd-file__input {
	display: block;
	margin-top: 4px;
	font-size: 14px;
}

.fmtd-file__box {
	display: none;
}

.fmtd--js .fmtd .fmtd-file__input,
.fmtd--js .fmtd-file__input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	overflow: hidden;
	pointer-events: none;
}

.fmtd--js .fmtd-file__box {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: var(--fmtd-white);
	border: 1px dashed #C3CEDA;
	border-radius: var(--fmtd-radius-sm);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.fmtd-file {
	position: relative;
}

.fmtd-field.has-file .fmtd-file__box {
	border-style: solid;
	border-color: var(--fmtd-navy);
	background: #F5F8FB;
}

.fmtd-field.has-error .fmtd-file__box {
	border-color: var(--fmtd-error);
}

.fmtd-file__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: var(--fmtd-bg);
	color: var(--fmtd-navy);
}

.fmtd-field.has-file .fmtd-file__icon {
	background: var(--fmtd-navy);
	color: #fff;
}

.fmtd-file__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fmtd-file__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--fmtd-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fmtd-file__meta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--fmtd-muted);
}

.fmtd-file__actions {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: 0 0 auto;
}

.fmtd .fmtd-btn.fmtd-file__pick {
	min-height: 38px;
	padding: 7px 14px;
	font-size: 14px;
}

.fmtd button.fmtd-file__remove {
	font-size: 13px !important;
	color: var(--fmtd-error) !important;
}

.fmtd-spinner--dark {
	border-color: rgba(15, 42, 74, 0.2);
	border-top-color: var(--fmtd-navy);
	width: 13px;
	height: 13px;
}

/* Revisão: documentos e subtítulos */
.fmtd-review-docs {
	margin-bottom: 18px;
	padding: 14px 18px;
	background: var(--fmtd-gold-soft);
	border-radius: var(--fmtd-radius-sm);
}

.fmtd .fmtd-review-docs__title {
	font-size: 14px;
	font-weight: 700;
	color: var(--fmtd-navy);
	margin-bottom: 8px;
}

.fmtd .fmtd-review-docs__list li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 2px 16px;
	padding: 6px 0;
	font-size: 13.5px;
	border-top: 1px solid rgba(201, 155, 63, 0.25);
}

.fmtd .fmtd-review-docs__list li:first-child {
	border-top: 0;
}

.fmtd-review-docs__label {
	color: var(--fmtd-muted);
}

.fmtd-review-docs__file {
	font-weight: 600;
	color: var(--fmtd-text);
	overflow-wrap: anywhere;
}

.fmtd .fmtd-review__sub {
	margin: 10px 0 0;
	padding: 8px 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fmtd-gold-text);
	border-bottom: 1px solid var(--fmtd-line);
}

@media (max-width: 720px) {
	.fmtd--js .fmtd-file__box {
		flex-wrap: wrap;
	}

	.fmtd-file__actions {
		width: 100%;
		justify-content: space-between;
	}

	.fmtd .fmtd-btn.fmtd-file__pick {
		width: auto;
		flex: 1 1 auto;
	}

	.fmtd-suffix,
	.fmtd .fmtd-input--int,
	.fmtd .fmtd-input--date {
		max-width: none;
	}
}

/* ======================================================================
 * 1.0.4 — Confirmação de envio
 * ====================================================================== */

.fmtd .fmtd-done .fmtd-eyebrow {
	margin-bottom: 8px;
}

.fmtd .fmtd-done__lead {
	max-width: 560px;
	margin: 0 auto 16px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--fmtd-navy);
}

.fmtd .fmtd-done__body {
	max-width: 560px;
	margin: 0 auto;
}

.fmtd .fmtd-done__body p {
	margin-bottom: 10px;
	font-size: 15px;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-done__sign {
	display: inline-block;
	margin: 8px auto 26px;
	padding-top: 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--fmtd-gold-text);
	border-top: 2px solid var(--fmtd-gold);
}

.fmtd .fmtd-done__receipt {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	max-width: 560px;
	margin: 0 auto 26px;
	padding: 6px 18px;
	text-align: left;
	background: var(--fmtd-bg);
	border-radius: var(--fmtd-radius-sm);
}

.fmtd .fmtd-done__receipt > div {
	padding: 10px 0;
	border-bottom: 1px solid var(--fmtd-line);
}

.fmtd .fmtd-done__receipt > div:nth-last-child(-n + 2) {
	border-bottom: 0;
}

.fmtd .fmtd-done__receipt dt {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fmtd-muted);
}

.fmtd .fmtd-done__receipt dd {
	margin: 2px 0 0;
	font-size: 14.5px;
	color: var(--fmtd-text);
	overflow-wrap: anywhere;
}

.fmtd .fmtd-done__receipt dd strong {
	color: var(--fmtd-navy);
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
	.fmtd .fmtd-done__receipt {
		grid-template-columns: minmax(0, 1fr);
	}

	.fmtd .fmtd-done__receipt > div:nth-last-child(2) {
		border-bottom: 1px solid var(--fmtd-line);
	}

	.fmtd .fmtd-done__lead {
		font-size: 16px;
	}
}
.fmtd .fmtd-done__receipt dd,
.fmtd .fmtd-done__receipt dt { margin-left: 0 !important; padding: 0 !important; }
.fmtd .fmtd-done__receipt dd { margin-top: 2px !important; }

/* ======================================================================
 * 1.0.5 — Abertura sem título duplicado e bloco econômico-financeiro
 * ====================================================================== */

.fmtd .fmtd-hero {
	padding: 0 0 22px;
}

.fmtd .fmtd-hero__logo {
	margin-bottom: 18px;
}

.fmtd .fmtd-hero .fmtd-eyebrow {
	margin-bottom: 8px;
}

.fmtd .fmtd-hero__lead {
	margin-bottom: 14px;
}

.fmtd .fmtd-subhead__note {
	margin-top: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--fmtd-text);
	background: var(--fmtd-gold-soft);
	border-left: 3px solid var(--fmtd-gold);
	border-radius: 0 var(--fmtd-radius-sm) var(--fmtd-radius-sm) 0;
}

.fmtd-calc {
	padding: 16px 18px;
	background: var(--fmtd-bg);
	border: 1px solid var(--fmtd-line);
	border-left: 4px solid var(--fmtd-muted);
	border-radius: var(--fmtd-radius-sm);
}

.fmtd-calc[data-state="superavit"] { border-left-color: #1B6E3A; }
.fmtd-calc[data-state="deficit"] { border-left-color: var(--fmtd-error); }
.fmtd-calc[data-state="equilibrio"] { border-left-color: var(--fmtd-navy); }

.fmtd .fmtd-calc__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fmtd-muted);
	margin-bottom: 4px;
}

.fmtd .fmtd-calc__value {
	font-size: 17px;
	font-weight: 700;
	color: var(--fmtd-navy);
	font-variant-numeric: tabular-nums;
}

.fmtd-calc[data-state="superavit"] .fmtd-calc__value { color: #1B6E3A; }
.fmtd-calc[data-state="deficit"] .fmtd-calc__value { color: var(--fmtd-error); }
.fmtd-calc[data-state="insuficiente"] .fmtd-calc__value { font-size: 15px; font-weight: 600; color: var(--fmtd-muted); }

.fmtd .fmtd-calc__detail {
	margin-top: 4px;
	font-size: 13.5px;
	color: var(--fmtd-text);
}

.fmtd .fmtd-calc__note {
	margin-top: 8px;
	font-size: 12.5px;
	font-style: italic;
	color: var(--fmtd-muted);
}

.fmtd:not(.fmtd--js) .fmtd-calc__value::after {
	content: " (calculado após o envio)";
	font-weight: 400;
}

/* Rótulos longos dos valores em reais lado a lado */
.fmtd .fmtd-type-money .fmtd-money {
	max-width: none;
}
