/* Bolsa Movimento simples (assets/js/bolsa-simples.js): o mesmo fluxo no Seu Caminho, nas páginas dos cursos e na
   /bolsa-movimento/. Tokens de jornada.css. Fora do Seu Caminho, um cartão claro próprio, legível sobre qualquer fundo */
.bs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 5vw, 28px);
  border-radius: var(--radius-card, 20px);
  background: var(--off-white, #fffcfa);
  box-shadow: 0 18px 32px -24px rgba(90, 6, 49, 0.7);
  color: var(--texto, #7b3a5c);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
  animation: bs-abre 0.45s var(--ease, ease) both;
}

.bs--solto {
  padding: 0;
  background: none;
  box-shadow: none;
  animation: none;
}

.bs-painel {
  margin-top: 14px;
}

@keyframes bs-abre {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.bs p {
  margin: 0;
}

.bs__contato,
.bs__resto {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bs__continuar {
  align-self: flex-start;
}

/* os dados já enviados, numa linha, com a volta para corrigir */
.bs__resumo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.875rem;
  color: var(--texto, #7b3a5c);
}

.bs__alterar {
  padding: 0;
  border: 0;
  background: none;
  color: var(--vinho, #97024e);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.bs__perg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* o fieldset não cresce até o conteúdo caber (min-inline-size: min-content por padrão) */
  min-width: 0;
  min-inline-size: 0;
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.bs__rotulo {
  margin-bottom: 4px;
  padding: 0;
  font-weight: 500;
  line-height: 1.4;
  color: var(--vinho-profundo, #5a0631);
}

.bs__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bs__chip {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--vinho, #97024e);
  border-radius: 999px;
  background: transparent;
  color: var(--vinho, #97024e);
  font: inherit;
  font-size: 1rem;
  white-space: normal;
  cursor: pointer;
}

.bs__chip:hover,
.bs__chip:focus,
.bs__chip[aria-pressed="true"] {
  background: var(--vinho, #97024e);
  color: #fff;
}

.bs__intro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bs__intro-titulo {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--vinho-profundo, #5a0631);
}

.bs__intro-texto {
  line-height: 1.45;
}

/* o limite da Bolsa em selos, não em frases */
.bs__selos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.bs__selos li {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--amarelo, #fcdc75);
  color: var(--vinho-profundo, #5a0631);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

/* as três respostas de apoio: cartões de toque inteiro, rótulo e nota */
.bs__opcao {
  box-sizing: border-box;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(90, 6, 49, 0.35);
  border-radius: 14px;
  background: #fff;
  color: var(--vinho-profundo, #5a0631);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bs__opcao-rotulo {
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.bs__opcao-selo {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--rosa-claro, #fff6fa);
  border: 1px solid rgba(151, 2, 78, 0.25);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--vinho, #97024e);
  white-space: nowrap;
}

.bs__opcao:hover,
.bs__opcao:focus-visible {
  border-color: var(--vinho, #97024e);
}

.bs__opcao:focus-visible {
  outline: 3px solid rgba(151, 2, 78, 0.25);
  outline-offset: 1px;
}

.bs__opcao[aria-pressed="true"] {
  border-color: var(--vinho, #97024e);
  background: var(--vinho, #97024e);
  color: #fff;
}

.bs__opcao[aria-pressed="true"] .bs__opcao-selo {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.bs__reais {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 0 14px;
  border: 1px solid rgba(90, 6, 49, 0.4);
  border-radius: 12px;
  background: #fff;
  color: var(--vinho-profundo, #5a0631);
}

.bs__reais input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.125rem;
  color: var(--vinho-profundo, #5a0631);
}

.bs__reais input:focus {
  outline: none;
}

.bs__reais:focus-within {
  outline: 3px solid var(--vinho, #97024e);
  outline-offset: 2px;
}

.bs__parcela,
.bs__nota,
.bs__aviso {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--texto, #7b3a5c);
}

.bs__aviso {
  font-weight: 500;
  color: var(--vinho-profundo, #5a0631);
}

.bs__botao {
  align-self: flex-start;
  margin-top: 4px;
}

.bs__passo:empty {
  display: none;
}

.bs__passo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid rgba(90, 6, 49, 0.12);
  animation: bs-abre 0.45s var(--ease, ease) both;
}

.bs__resposta {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--vinho-profundo, #5a0631);
}

.bs__resposta--nao {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bs__ponte {
  font-weight: 400;
  color: var(--texto, #7b3a5c);
}

.bs__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bs__campo {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--vinho-profundo, #5a0631);
}

.bs__campo input,
.bs__campo textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(90, 6, 49, 0.35);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--vinho-profundo, #5a0631);
}

.bs__campo textarea {
  min-height: 76px;
  line-height: 1.45;
  resize: vertical;
}

.bs__campo input:focus,
.bs__campo textarea:focus {
  border-color: var(--vinho, #97024e);
  outline: 3px solid rgba(151, 2, 78, 0.25);
  outline-offset: 1px;
}

.bs__campo [aria-invalid="true"] {
  border-color: #b3261e;
}

.bs__erro {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #b3261e;
}

.bs__enviar,
.bs__confirmar {
  width: 100%;
  margin-top: 4px;
  text-align: center;
}

.bs__aprovada {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 5vw, 26px);
  border-radius: var(--radius-card, 20px);
  background: var(--amarelo, #fcdc75);
  color: var(--vinho-profundo, #5a0631);
  animation: bs-abre 0.45s var(--ease, ease) both;
}

.bs__aprovada p {
  line-height: 1.5;
}

.bs__aprovada-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bs__aprovada-titulo {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.bs__aprovada:not(.bs__aprovada--recebida) .bs__aprovada-titulo {
  font-size: clamp(2rem, 9vw, 2.5rem);
  line-height: 1;
}

/* a condição: o valor em destaque, o resto pequeno */
.bs__condicao {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--off-white, #fffcfa);
}

.bs__condicao-rotulo {
  font-size: 0.8125rem;
  font-weight: 500;
}

.bs__valor {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bs__parcelado {
  font-size: 0.9375rem;
}

.bs__regular {
  margin-top: 4px;
  font-size: 0.8125rem;
  opacity: 0.8;
}

.bs__validade {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--vinho-profundo, #5a0631);
  color: var(--amarelo, #fcdc75);
  font-size: 0.875rem;
  font-weight: 500;
}

.bs__aprovada-email {
  font-size: 0.8125rem;
  text-align: center;
  opacity: 0.85;
}

.bs__aprovada--recebida {
  background: var(--rosa-claro, #fff6fa);
}

@media (prefers-reduced-motion: reduce) {
  .bs,
  .bs__passo,
  .bs__aprovada {
    animation: none;
  }
}

/* o que o módulo esconde fica escondido, mesmo com display próprio (o valor antes da modalidade, no Retiro) */
.bs [hidden] {
  display: none !important;
}

/* a análise da resposta na hora: os passos se confirmam um a um (assets/js/bolsa-simples.js, telaAnalise) */
.bs__analise {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 5vw, 26px);
  border-radius: var(--radius-card, 20px);
  background: var(--rosa-claro, #fff6fa);
  color: var(--vinho-profundo, #5a0631);
  animation: bs-abre 0.45s var(--ease, ease) both;
}

.bs__analise-titulo {
  font-size: 1.125rem;
  font-weight: 700;
}

.bs__analise-passos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs__analise-passo {
  position: relative;
  padding-left: 34px;
  line-height: 1.4;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.bs__analise-passo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
}

.bs__analise-passo.is-ativo,
.bs__analise-passo.is-feito {
  opacity: 1;
}

.bs__analise-passo.is-ativo::before {
  border-color: var(--vinho, #97024e) transparent var(--vinho, #97024e) var(--vinho, #97024e);
  animation: bs-gira 0.8s linear infinite;
}

.bs__analise-passo.is-feito::before {
  border-color: var(--vinho, #97024e);
  background: var(--vinho, #97024e);
}

.bs__analise-passo.is-feito::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

@keyframes bs-gira {
  to {
    transform: rotate(360deg);
  }
}

/* a celebração: o cartão aprovado entra em destaque, com confete */
.bs__aprovada--festa {
  position: relative;
  overflow: hidden;
  /* a rolagem até o cartão deixa o título fora de faixas e cabeçalhos fixos */
  scroll-margin-top: 88px;
  animation: bs-festa 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes bs-festa {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.bs__confete {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bs__confete i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation-name: bs-confete;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes bs-confete {
  0% {
    opacity: 1;
    translate: 0 0;
  }
  100% {
    opacity: 0;
    translate: 0 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bs__analise,
  .bs__aprovada--festa {
    animation: none;
  }
  .bs__analise-passo.is-ativo::before {
    animation: none;
  }
}
