:root {
  --amarelo: #ffd21c;
  --amarelo-claro: #fff5bd;
  --creme: #f7f3eb;
  --preto: #171716;
  --cinza: #65615a;
  --borda: #d8d1c5;
  --erro: #a01d28;
  --branco: #ffffff;
}

@font-face {
  font-family: "CrazyCatGang";
  src: url("../fonte/fontania/Fontania.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--preto);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

summary {
  font: inherit;
}

::selection {
  background: var(--amarelo);
  color: var(--preto);
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 12px clamp(20px, 4vw, 72px);
  border-bottom: 1px solid rgba(23, 23, 22, .1);
  background: rgba(247, 243, 235, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.header-logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  padding: 5px;
  border-radius: 50%;
  background: var(--amarelo);
}

.header-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.brand-name {
  margin-top: 10px;
  font-family: "CrazyCatGang", Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  justify-self: center;
  align-items: center;
  gap: 34px;
}

.desktop-nav a {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--preto);
  transition: right .2s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--amarelo);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.header-cta:hover {
  background: var(--preto);
  color: var(--branco);
  transform: translateY(-2px);
}

.mobile-menu {
  display: none;
}

.formulario {
  width: min(100% - 36px, 960px);
  margin-inline: auto;
  padding: 72px 0 90px;
}

.formulario__cabecalho {
  max-width: 720px;
  margin-bottom: 38px;
}

.formulario__chamada {
  margin: 0;
  color: #927000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.formulario__cabecalho h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.formulario p {
  line-height: 1.6;
}

.formulario fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bloco-formulario {
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--borda);
  border-radius: 20px;
  background: var(--branco);
}

.bloco-formulario h2 {
  margin: 0 0 20px;
  font-size: 24px;
}

.grade-dados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

label,
legend {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.pergunta {
  margin-top: 26px;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #b9b1a4;
  border-radius: 10px;
  background: var(--branco);
  color: var(--preto);
}

textarea {
  min-height: 125px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: var(--preto);
}

.opcao {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 9px;
  padding: 13px 15px;
  border: 1px solid var(--borda);
  border-radius: 10px;
  font-weight: 400;
  cursor: pointer;
}

.opcao:has(input:checked) {
  border-color: var(--preto);
  background: var(--amarelo-claro);
}

.opcao--consentimento {
  line-height: 1.55;
}

:focus-visible {
  outline: 3px solid #a87800;
  outline-offset: 3px;
}

.texto-apoio {
  margin: 8px 0;
  color: var(--cinza);
  font-size: 14px;
  white-space: pre-line;
}

.mensagem-erro {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--erro);
  font-size: 14px;
}

[aria-invalid="true"] {
  border-color: var(--erro) !important;
}

.mensagem {
  margin: 0 0 24px;
  padding: 18px 20px;
  border-radius: 10px;
  white-space: pre-line;
}

.mensagem--neutra {
  border: 1px solid #e2c64e;
  background: var(--amarelo-claro);
}

.mensagem-carregamento {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icone-carregamento {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 2px solid rgba(23, 23, 22, .22);
  border-top-color: var(--preto);
  border-radius: 50%;
  animation: girar .7s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .icone-carregamento {
    animation-duration: 1.4s;
  }
}

.mensagem--aviso {
  border-left: 4px solid var(--preto);
  background: #fff1b0;
}

.mensagem--erro {
  border-left: 4px solid var(--erro);
  background: #fff0f1;
}

.botao {
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid var(--preto);
  border-radius: 999px;
  background: var(--preto);
  color: var(--branco);
  font-weight: 700;
  cursor: pointer;
}

.botao:hover {
  background: #353532;
}

.botao:disabled {
  cursor: wait;
  opacity: .6;
}

.estado-envio {
  min-height: 26px;
  margin-top: 14px;
}

.confirmacao {
  padding: 32px;
  border: 1px solid var(--preto);
  border-radius: 20px;
  background: var(--amarelo);
}

.confirmacao h2 {
  margin-top: 0;
  font-size: 30px;
}

.campo-armadilha {
  display: none !important;
}

#captcha {
  min-height: 65px;
  margin-top: 14px;
}

@media (max-width: 1280px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    padding: 10px 14px;
    border: 1px solid var(--preto);
    border-radius: 999px;
    list-style: none;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu nav {
    position: absolute;
    top: 52px;
    right: 0;
    display: flex;
    width: min(260px, calc(100vw - 36px));
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--borda);
    border-radius: 14px;
    background: var(--branco);
    color: var(--preto);
    box-shadow: 0 20px 50px rgba(23, 23, 22, .18);
  }

  .mobile-menu nav a {
    padding: 11px 12px;
    border-bottom: 1px solid var(--borda);
    font-size: 13px;
    font-weight: 800;
  }

  .mobile-menu nav a:last-child {
    border-bottom: 0;
  }

  .mobile-menu nav a:nth-last-child(-n + 2) {
    margin-top: 7px;
    border: 0;
    border-radius: 8px;
    background: var(--amarelo);
    text-align: center;
  }

  .mobile-menu nav a[aria-current="page"] {
    background: var(--preto);
    color: var(--branco);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 68px;
    padding: 10px 18px;
  }

  .header-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-name {
    margin-top: 7px;
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .formulario {
    width: min(100% - 28px, 960px);
    padding: 48px 0 64px;
  }

  .grade-dados {
    grid-template-columns: 1fr;
  }

  .bloco-formulario {
    padding: 20px;
  }

  .botao {
    width: 100%;
  }
}
