/* ASSBAN Câmbio — formulários do site (usa as variáveis do tema quando existem). */
.af-cx { --af-marinho: var(--marinho-logo, #011940); --af-azul: var(--azul-vivo, #2563EB); --af-borda: #C9D3E5; --af-suave: var(--suave, #4A5568); --af-fundo: var(--fundo, #F3F5F9); --af-erro: #B91C1C; scroll-margin-top: 110px; }
.af-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.af { display: grid; gap: 22px; }
.af-legenda { margin: 0; font-size: .88rem; color: var(--af-suave); }
.af-obrig { color: var(--af-erro); font-weight: 700; }
.af-pote { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.af-secao { margin: 0; padding: 0; border: 0; min-width: 0; }
.af-secao[hidden] { display: none; }
.af-secao > legend { padding: 0; margin: 0 0 14px; font: 600 1.05rem/1.3 var(--fonte-d, inherit); color: var(--af-marinho); display: flex; align-items: center; gap: 10px; width: 100%; }
.af-secao > legend::after { content: ""; flex: 1 1 auto; height: 1px; background: #E2E8F2; }
.af-secao__cond { font: 500 .8rem/1 var(--fonte, inherit); color: var(--af-suave); }
.js .af-secao__cond { display: none; }
.af-secao__nota { margin: -4px 0 14px; padding: 10px 14px; border-radius: 12px; background: #EAF2FF; color: #1E3A6E; font-size: .88rem; }
.af-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.af-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-campo[hidden] { display: none; }
.af-campo--inteira { grid-column: 1 / -1; }
.af-campo > label, .af-captcha__campo > label, .af-opcoes > legend { font-weight: 600; font-size: .93rem; color: var(--af-marinho); }
.af input[type="text"], .af input[type="email"], .af input[type="tel"], .af select, .af textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--af-borda); border-radius: 12px; background: #fff;
	font: 500 1rem/1.4 var(--fonte, inherit); color: #1F2937; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
.af select { padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B5488' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; }
.af textarea { min-height: 140px; resize: vertical; }
.af input::placeholder, .af textarea::placeholder { color: #6B7A99; }
.af input:hover, .af select:hover, .af textarea:hover { border-color: #93A5C7; }
.af input:focus, .af select:focus, .af textarea:focus { outline: none; border-color: var(--af-azul); box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.af-ajuda { margin: 0; font-size: .82rem; color: var(--af-suave); line-height: 1.5; }
.af-erro { margin: 0; display: flex; gap: 6px; align-items: flex-start; font-size: .84rem; font-weight: 600; color: var(--af-erro); line-height: 1.45; }
.af-erro:empty { display: none; }
.af-erro svg { flex: 0 0 auto; margin-top: 1px; }
.is-erro input[type="text"], .is-erro input[type="email"], .is-erro input[type="tel"], .is-erro select, .is-erro textarea { border-color: var(--af-erro); background-color: #FFFBFB; }
.af-opcoes { margin: 0; padding: 0; border: 0; min-width: 0; }
.af-opcoes > legend { padding: 0; margin-bottom: 8px; }
.af-opcoes__grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.af-opcao { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1.5px solid #E2E8F2; border-radius: 12px; background: #fff; cursor: pointer; font-size: .93rem; line-height: 1.45; color: #1F2937; transition: border-color .15s, background-color .15s; }
.af-opcao:hover { border-color: #93A5C7; }
.af-opcao input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--af-marinho); }
.af-opcao:has(input:checked) { border-color: var(--af-azul); background: #F1F6FF; }
.af-opcao:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.af-opcao--unica { border-style: dashed; background: var(--af-fundo); }
.is-erro .af-opcao { border-color: #F3B4B4; }
.af-opcao a { color: var(--azul-link, #1D4ED8); }
.af-captcha { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: start; padding: 18px; border-radius: 16px; background: var(--af-fundo); border: 1px solid #E2E8F2; }
.af-captcha.is-erro { border-color: #F3B4B4; background: #FFF8F8; }
.af-captcha__img { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.af-captcha__img img { width: 224px; height: 70px; border-radius: 10px; border: 1px solid var(--af-borda); background: #fff; }
.af-captcha__trocar { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; min-height: 40px; border-radius: 999px; border: 1.5px solid var(--af-borda); background: #fff; color: var(--af-marinho); font: 600 .85rem/1 var(--fonte, inherit); cursor: pointer; }
.af-captcha__trocar:hover { border-color: var(--af-azul); }
.af-captcha__trocar.is-girando svg { animation: af-gira .7s linear infinite; }
.af-captcha__campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.af-captcha__campo input { max-width: 260px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700 !important; }
.af-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.af-enviar { min-width: 220px; position: relative; }
.af-enviar[disabled] { opacity: .75; cursor: progress; }
.af-giro { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: af-gira .7s linear infinite; }
.af-enviar.is-enviando .af-giro { display: inline-block; }
@keyframes af-gira { to { transform: rotate(360deg); } }
.af-nota { flex: 1 1 280px; margin: 0; font-size: .82rem; color: var(--af-suave); }
.af-resumo, .af-alerta { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid #F7D9A0; border-left: 4px solid #D97706; background: #FFF8EB; color: #5C3A00; font-size: .93rem; }
.af-resumo ul { margin: 6px 0 0; padding-left: 1.2em; }
.af-resumo a { color: #7A3E00; font-weight: 600; }
.af-alerta--falha { border-color: #F3B4B4; border-left-color: #DC2626; background: #FEF2F2; color: #7F1D1D; }
.af-sucesso { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 18px; padding: 22px; border-radius: 16px; border: 1px solid #A7E3D0; border-left: 4px solid #059669; background: #ECFDF5; color: #064E3B; outline: none; }
.af-sucesso__ico { color: #047857; }
.af-sucesso p { margin: 0 0 6px; }
.af-sucesso__tit { font: 600 1.15rem/1.3 var(--fonte-d, inherit); color: #065F46; }
.af-sucesso__proto { font-size: 1.05rem; }
.af-sucesso__proto strong { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; color: #064E3B; background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid #A7E3D0; }
.af-sucesso__extra { font-size: .9rem; }
.af-sucesso a { color: #065F46; font-weight: 600; }

/* Toasts (canto inferior direito) — mesmo padrão da plataforma */
.af-toasts { position: fixed; right: 16px; bottom: 92px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.af-toast { pointer-events: auto; position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 40px 12px 14px; border-radius: 12px; border: 1px solid; border-left-width: 4px; box-shadow: 0 12px 30px -10px rgba(1,25,64,.35); font: 500 .9rem/1.5 var(--fonte, system-ui, sans-serif); color: #1F2937; animation: af-entra .25s ease; }
.af-toast svg.af-toast__ico { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.af-toast__tit { display: block; font-weight: 700; line-height: 1.35; }
.af-toast__txt { display: block; color: rgba(31,41,55,.88); }
.af-toast__fechar { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: currentColor; opacity: .7; cursor: pointer; }
.af-toast__fechar:hover { opacity: 1; background: rgba(0,0,0,.05); }
.af-toast__fechar:focus-visible { outline: 2px solid currentColor; }
.af-toast--sucesso { background: #EEFAF5; border-color: #A7E3CB; border-left-color: #059669; }
.af-toast--sucesso .af-toast__tit { color: #065F46; } .af-toast--sucesso .af-toast__ico { color: #047857; }
.af-toast--aviso { background: #FEF8EC; border-color: #F5D99A; border-left-color: #F59E0B; }
.af-toast--aviso .af-toast__tit { color: #92400E; } .af-toast--aviso .af-toast__ico { color: #B45309; }
.af-toast--falha { background: #FEF1F1; border-color: #F5B5B5; border-left-color: #DC2626; }
.af-toast--falha .af-toast__tit { color: #991B1B; } .af-toast--falha .af-toast__ico { color: #B91C1C; }
.af-toast--info { background: #EEF7FD; border-color: #A8D8F2; border-left-color: #0284C7; }
.af-toast--info .af-toast__tit { color: #075985; } .af-toast--info .af-toast__ico { color: #0369A1; }
.af-toast.is-saindo { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes af-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
	.af-grade { grid-template-columns: 1fr; }
	.af-captcha { grid-template-columns: 1fr; padding: 14px; }
	.af-captcha__campo input { max-width: none; }
	.af-enviar { width: 100%; }
	.af-toasts { right: 12px; left: 12px; bottom: 72px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.af-toast, .af-giro, .af-captcha__trocar.is-girando svg { animation: none !important; }
}
