/* Willian — formulário próprio. Todo seletor é prefixado por .wf-root para não vazar no site. */
.wf-root {
  --wf-ink: #1f2933;
  --wf-muted: #52606d;
  --wf-brand: #3e4931;
  --wf-brand-ink: #ffffff;
  --wf-line: #cfd6cc;
  --wf-soft: #f4f6f1;
  --wf-error: #b42318;
  --wf-focus: #1d6fd8;
  --wf-yes: #146c35;
  --wf-yes-line: #35b86a;
  --wf-yes-soft: #effbf3;
  --wf-yes-fill: #15803d;
  --wf-no: #a11a1a;
  --wf-no-line: #ec5b5b;
  --wf-no-soft: #fff2f2;
  --wf-no-fill: #dc2626;
  --wf-arrow: #73808d;
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 18px;
  background: #ffffff;
  color: var(--wf-ink);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  font: 16px/1.5 Arial, Helvetica, sans-serif;
  text-align: left;
}
.wf-root *, .wf-root *::before, .wf-root *::after { box-sizing: inherit; }
.wf-root .wf-form { margin: 0; }
.wf-root .wf-field + .wf-field { margin-top: 18px; }
.wf-root .wf-label { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--wf-ink); outline: none; overflow-wrap: anywhere; }
.wf-root .wf-label b, .wf-root .wf-label strong { font-weight: 700; }
.wf-root .wf-field-text .wf-label { margin-bottom: 8px; font-size: 16px; }
.wf-root .wf-instruction { margin: -4px 0 12px; font-size: 15px; color: var(--wf-muted); overflow-wrap: anywhere; }

/* Respostas: Sim (verde) e Não (vermelho) lado a lado; outras escolhas empilhadas. */
.wf-root .wf-choices { display: grid; gap: 10px; }
.wf-root .wf-choices.wf-yesno { grid-template-columns: 1fr 1fr; gap: 12px; }
.wf-root .wf-choice {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; margin: 0; padding: 12px 14px;
  border: 2px solid var(--wf-line); border-radius: 14px;
  background: #ffffff; color: var(--wf-ink);
  font-size: 16px; font-weight: 400; line-height: 1.3; cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.wf-root .wf-choice:hover { border-color: var(--wf-brand); }
.wf-root .wf-choice:active { transform: scale(.98); }
.wf-root .wf-choice.is-checked { border-color: var(--wf-brand); background: var(--wf-soft); font-weight: 700; }
.wf-root .wf-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.wf-root .wf-choice:has(.wf-radio:focus-visible) { outline: 3px solid var(--wf-focus); outline-offset: 2px; }
@supports not selector(:has(*)) {
  .wf-root .wf-choice:focus-within { outline: 3px solid var(--wf-focus); outline-offset: 2px; }
}
.wf-root .wf-choice-text { flex: 0 1 auto; overflow-wrap: anywhere; }
.wf-root .wf-choice-mark { flex: 0 0 auto; font-size: 1.15em; line-height: 1; }
.wf-root .wf-yesno .wf-choice { justify-content: center; min-height: 64px; padding: 12px 10px; font-size: 19px; font-weight: 700; }
.wf-root .wf-choice.wf-yes { border-color: var(--wf-yes-line); background: var(--wf-yes-soft); color: var(--wf-yes); }
.wf-root .wf-choice.wf-yes:hover { background: #def6e6; }
.wf-root .wf-choice.wf-yes.is-checked { border-color: var(--wf-yes-fill); background: var(--wf-yes-fill); color: #ffffff; }
.wf-root .wf-choice.wf-no { border-color: var(--wf-no-line); background: var(--wf-no-soft); color: var(--wf-no); }
.wf-root .wf-choice.wf-no:hover { background: #ffe3e3; }
.wf-root .wf-choice.wf-no.is-checked { border-color: var(--wf-no-fill); background: var(--wf-no-fill); color: #ffffff; }

.wf-root .wf-input {
  display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 14px;
  border: 2px solid var(--wf-line); border-radius: 12px;
  background: #ffffff; color: var(--wf-ink);
  font: inherit; font-size: 16px; /* >=16px evita zoom automático no iOS */
}
.wf-root .wf-input:focus { border-color: var(--wf-brand); outline: 3px solid var(--wf-focus); outline-offset: 1px; }
.wf-root .wf-input[aria-invalid="true"], .wf-root .wf-choices[aria-invalid="true"] .wf-choice { border-color: var(--wf-error); }
.wf-root .wf-error { margin: 8px 0 0; color: var(--wf-error); font-size: 15px; font-weight: 700; }
.wf-root .wf-error[hidden] { display: none; }

/* Navegação: setas discretas; no último passo, Voltar à esquerda e o botão de envio à direita. */
.wf-root .wf-nav { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.wf-root .wf-arrow {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 48px; height: 48px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--wf-arrow);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wf-root .wf-arrow svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wf-root .wf-arrow:hover { color: var(--wf-ink); background: rgba(0, 0, 0, 0.04); }
.wf-root .wf-arrow:focus-visible, .wf-root .wf-cta:focus-visible { outline: 3px solid var(--wf-focus); outline-offset: 2px; }
.wf-root .wf-arrow[hidden], .wf-root .wf-cta[hidden] { display: none; }
.wf-root .wf-next, .wf-root .wf-cta { margin-left: auto; }
.wf-root .wf-arrow:disabled { opacity: .4; cursor: progress; }
.wf-root .wf-cta {
  position: relative; overflow: hidden; flex: 1 1 auto; min-width: 0;
  min-height: 56px; margin: 0; padding: 12px 16px;
  border: 0; border-radius: 14px;
  background: linear-gradient(180deg, #2bd46c 0%, #1fbe5c 45%, #128c4a 100%);
  color: #ffffff; font: inherit; font-size: 17px; font-weight: 800; line-height: 1.15;
  letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: wf-cta-glow 2s ease-in-out infinite;
}
.wf-root .wf-cta::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 45%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg); pointer-events: none;
  animation: wf-cta-shine 2.8s ease-in-out infinite;
}
.wf-root .wf-cta:hover { filter: brightness(1.05); }
.wf-root .wf-cta:active { transform: scale(.98); }
.wf-root .wf-cta:disabled { opacity: .7; cursor: progress; animation: none; }
.wf-root .wf-cta:disabled::after { animation: none; display: none; }
@keyframes wf-cta-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes wf-cta-glow {
  0%, 100% { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  50% { box-shadow: 0 6px 22px rgba(37, 211, 102, 0.6), 0 0 0 8px rgba(37, 211, 102, 0); }
}

/* Botões dos estados de recuperação (resultado/recibo). */
.wf-root .wf-btn {
  min-height: 52px; margin: 0; padding: 12px 18px;
  border: 2px solid var(--wf-brand); border-radius: 10px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-transform: none;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.wf-root .wf-btn[hidden] { display: none; }
.wf-root .wf-btn-primary { background: var(--wf-brand); color: var(--wf-brand-ink); }
.wf-root .wf-btn-secondary { background: #ffffff; color: var(--wf-brand); }
.wf-root .wf-btn:focus-visible { outline: 3px solid var(--wf-focus); outline-offset: 2px; }
.wf-root .wf-btn:disabled { opacity: 0.6; cursor: progress; }

.wf-root .wf-status { min-height: 1.5em; margin: 10px 0 0; font-size: 15px; color: var(--wf-muted); }
.wf-root .wf-status:empty { min-height: 0; margin: 0; }
.wf-root .wf-result { outline: none; overflow-wrap: anywhere; }
.wf-root .wf-result a { color: var(--wf-brand); text-decoration: underline; word-break: break-all; }
.wf-root .wf-result p { margin: 0 0 8px; }
.wf-root .wf-splash { margin: 0; font-size: 17px; font-weight: 700; }
.wf-root .wf-form[hidden] { display: none; }
@media (max-width: 420px) {
  .wf-root { padding: 16px 14px; border-radius: 12px; }
  .wf-root .wf-label { font-size: 17px; }
  .wf-root .wf-field-text .wf-label { font-size: 16px; }
  .wf-root .wf-cta { font-size: 16px; letter-spacing: 0; padding: 12px 12px; }
}
@media (max-width: 340px) {
  .wf-root .wf-yesno .wf-choice { font-size: 17px; min-height: 58px; }
  .wf-root .wf-cta { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-root *, .wf-root *::after { transition: none !important; animation: none !important; }
}
