:root {
  --creme: #fdf7f2;
  --rosa: #fbe9e7;
  --bordo: #85133f;
  --bordo-escuro: #67102f;
  --dourado: #c6a36b;
  --texto: #49313b;
  --texto-suave: #5e4550;
  --branco: #ffffff;
  --linha: rgba(198, 163, 107, 0.45);
  --sombra: 0 18px 50px rgba(103, 16, 47, 0.07);
  --raio: 22px;
  --fonte-titulo: "Playfair Display", Georgia, "Times New Roman", serif;
  --fonte-texto: Lato, "Segoe UI", sans-serif;
  --fonte-script: "Great Vibes", cursive;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--texto);
  background-color: var(--creme);
  background-image:
    radial-gradient(1200px 520px at 50% -10%, rgba(251, 233, 231, 0.95), transparent 62%),
    radial-gradient(700px 380px at 100% 100%, rgba(198, 163, 107, 0.14), transparent 55%),
    radial-gradient(520px 320px at 0% 80%, rgba(133, 19, 63, 0.04), transparent 50%);
  font-family: var(--fonte-texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bordo-escuro), var(--bordo) 42%, var(--dourado));
  z-index: 20;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button {
  cursor: pointer;
}

::selection {
  background: rgba(133, 19, 63, 0.16);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

.somente-leitor {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pular {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 30;
  background: var(--bordo);
  color: var(--branco);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
}

.pular:focus {
  top: 12px;
}

.pagina {
  width: min(600px, calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  margin: 0 auto;
  padding: 28px 0 calc(36px + env(safe-area-inset-bottom));
}

.cabecalho {
  text-align: center;
  margin-bottom: 22px;
}

.logo {
  width: min(240px, 78%);
  height: auto;
  margin: 0 auto 2px;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 0;
  color: var(--texto-suave);
  font-size: 0.95rem;
  font-style: italic;
}

.tagline::before,
.tagline::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--dourado);
  flex: 0 0 auto;
}

.cartao {
  background: var(--branco);
  border: 1px solid rgba(133, 19, 63, 0.06);
  border-radius: 28px;
  box-shadow: var(--sombra);
  padding: 28px 16px 22px;
}

.intro {
  text-align: center;
}

.ilustracao {
  width: 112px;
  height: auto;
  margin: 0 auto 8px;
}

h1,
#titulo-obrigado,
.titulo-bloco {
  font-family: var(--fonte-titulo);
  font-weight: 500;
  color: var(--bordo);
  letter-spacing: -0.01em;
}

h1,
#titulo-obrigado {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 6.4vw, 2.15rem);
  font-style: italic;
  line-height: 1.22;
  text-wrap: balance;
}

.intro p {
  margin: 0;
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.7;
}

.formulario,
form {
  margin-top: 8px;
}

.bloco {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: 26px 0 0;
  border: 0;
  min-width: 0;
}

.bloco + .bloco,
.nota-privacidade {
  border-top: 1px solid var(--linha);
  margin-top: 26px;
}

.bloco + fieldset.bloco {
  border-top: 0;
}

fieldset.bloco::before {
  content: "";
  display: block;
  height: 1px;
  margin: 0 0 22px;
  background: var(--linha);
}

legend.titulo-bloco {
  float: none;
  width: auto;
  padding: 0;
}

.titulo-bloco {
  display: block;
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.35;
  text-wrap: balance;
}

.apoio {
  margin: 0 0 14px;
  color: var(--texto-suave);
  font-size: 0.98rem;
  line-height: 1.55;
}

.estrelas {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 4px 0 2px;
}

.estrela {
  position: relative;
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 12px;
}

.estrela input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.estrela svg {
  width: 34px;
  height: 34px;
  fill: transparent;
  stroke: var(--dourado);
  stroke-width: 1.15;
  stroke-linejoin: round;
  transition: fill 0.2s ease, transform 0.2s ease;
}

.estrelas:has(input[value="1"]:checked) .estrela:nth-child(-n + 1) svg,
.estrelas:has(input[value="2"]:checked) .estrela:nth-child(-n + 2) svg,
.estrelas:has(input[value="3"]:checked) .estrela:nth-child(-n + 3) svg,
.estrelas:has(input[value="4"]:checked) .estrela:nth-child(-n + 4) svg,
.estrelas:has(input[value="5"]:checked) .estrela:nth-child(-n + 5) svg {
  fill: var(--dourado);
  stroke: var(--dourado);
}

.estrela:has(input:checked) svg {
  transform: scale(1.06);
}

.estrela:focus-within {
  outline: 2px solid var(--dourado);
  outline-offset: 2px;
}

.rotulo-estrelas {
  min-height: 1.5em;
  margin: 6px 0 0;
  text-align: center;
  color: var(--bordo);
  font-weight: 700;
}

.rotulo-estrelas.vazio {
  color: var(--texto-suave);
  font-weight: 400;
}

textarea,
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  border: 1.5px solid #eadfd8;
  background: #fffdfb;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.5;
  min-height: 52px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 160px;
  resize: vertical;
  max-height: 320px;
}

textarea::placeholder,
input::placeholder {
  color: #a08b92;
}

textarea:focus-visible,
input:focus-visible {
  outline: none;
  border-color: var(--bordo);
  box-shadow: 0 0 0 4px rgba(198, 163, 107, 0.28);
}

.contador {
  margin: 6px 2px 0;
  text-align: right;
  color: var(--texto-suave);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.contador.limite {
  color: var(--bordo);
  font-weight: 700;
}

.opcoes {
  display: grid;
  gap: 12px;
}

.opcao {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1.5px solid #eadfd8;
  border-radius: 18px;
  background: #fffdfb;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.opcao input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opcao-icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rosa);
  color: var(--bordo);
}

.opcao-icone svg {
  width: 22px;
  height: 22px;
}

.opcao-titulo {
  display: block;
  font-weight: 700;
  color: var(--bordo);
  line-height: 1.3;
}

.opcao-desc {
  display: block;
  margin-top: 3px;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.45;
}

.opcao:has(input:checked) {
  border-color: var(--bordo);
  background: #fff8f6;
  box-shadow: 0 0 0 3px rgba(133, 19, 63, 0.08);
}

.opcao:has(input:checked) .opcao-icone {
  background: var(--bordo);
  color: var(--branco);
}

.opcao:focus-within {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

.identidade {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.campo label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.dica {
  font-weight: 400;
  color: var(--texto-suave);
}

.erro {
  min-height: 0;
  margin: 6px 0 0;
  color: var(--bordo-escuro);
  font-size: 0.9rem;
  font-weight: 700;
}

.erro:empty {
  display: none;
}

.nota-privacidade {
  padding-top: 22px;
  margin-bottom: 18px;
  color: var(--texto-suave);
  font-size: 0.92rem;
  line-height: 1.55;
}

.link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--bordo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.enviar {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  background: var(--bordo);
  color: var(--branco);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  padding: 16px 18px;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.15s ease;
}

.icone-enviar {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.enviar:active {
  transform: translateY(1px);
}

.enviar:disabled {
  cursor: progress;
  opacity: 0.86;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: girar 0.7s linear infinite;
}

.enviar.enviando .spinner {
  display: inline-block;
}

.enviar.enviando .icone-enviar {
  display: none;
}

.enviar.enviando {
  letter-spacing: 0.01em;
}

.erro-geral {
  text-align: center;
}

.agradecimento {
  text-align: center;
  padding: 12px 6px 8px;
}

.agradecimento h2 {
  margin-top: 8px;
}

.agradecimento p {
  margin: 0 auto;
  max-width: 36rem;
  line-height: 1.7;
}

.aviso-email {
  margin-top: 14px !important;
  color: var(--texto-suave);
  font-size: 0.95rem;
}

.assinatura {
  margin-top: 18px !important;
  font-family: var(--fonte-script);
  font-size: 2rem;
  line-height: 1;
  color: var(--bordo);
}

.equipe {
  margin-top: 4px !important;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--texto-suave);
}

.brilho {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.brilho span {
  width: 16px;
  height: 16px;
  background: var(--dourado);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: surgir 0.7s ease both;
}

.brilho span:nth-child(2) { animation-delay: 0.08s; }
.brilho span:nth-child(3) { animation-delay: 0.16s; }
.brilho span:nth-child(4) { animation-delay: 0.24s; }
.brilho span:nth-child(5) { animation-delay: 0.32s; }

.rodape {
  margin-top: 22px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.85rem;
}

.rodape p {
  margin: 0;
}

.sem-js {
  width: min(600px, calc(100% - 24px));
  margin: 16px auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--rosa);
  color: var(--bordo-escuro);
  text-align: center;
}

dialog {
  border: 0;
  padding: 0;
  width: min(520px, calc(100% - 28px));
  max-height: min(86vh, 720px);
  border-radius: 24px;
  background: var(--branco);
  color: var(--texto);
  box-shadow: 0 24px 70px rgba(73, 49, 59, 0.22);
}

dialog::backdrop {
  background: rgba(73, 49, 59, 0.46);
}

.dialogo {
  position: relative;
  padding: 28px 22px 24px;
  max-height: min(86vh, 720px);
  overflow: auto;
}

.dialogo h2 {
  margin: 0 40px 8px 0;
  font-family: var(--fonte-titulo);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--bordo);
}

.dialogo h3 {
  margin: 18px 0 6px;
  font-family: var(--fonte-titulo);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--bordo);
}

.dialogo p {
  margin: 0;
  line-height: 1.6;
}

.dialogo-intro {
  color: var(--texto-suave);
}

.fechar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--rosa);
  color: var(--bordo);
  display: grid;
  place-items: center;
}

.fechar svg {
  width: 18px;
  height: 18px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .estrelas:has(.estrela:nth-child(1):hover) .estrela:nth-child(-n + 1) svg,
  .estrelas:has(.estrela:nth-child(2):hover) .estrela:nth-child(-n + 2) svg,
  .estrelas:has(.estrela:nth-child(3):hover) .estrela:nth-child(-n + 3) svg,
  .estrelas:has(.estrela:nth-child(4):hover) .estrela:nth-child(-n + 4) svg,
  .estrelas:has(.estrela:nth-child(5):hover) .estrela:nth-child(-n + 5) svg {
    fill: var(--dourado);
    stroke: var(--dourado);
  }

  .enviar:hover {
    background: var(--bordo-escuro);
  }

  .enviar:hover .icone-enviar {
    transform: translateX(2px);
  }

  .link:hover {
    color: var(--bordo-escuro);
  }
}

@media (min-width: 380px) {
  .estrela {
    width: 48px;
    height: 52px;
  }

  .estrela svg {
    width: 40px;
    height: 40px;
  }

  .estrelas {
    gap: 4px;
  }
}

@media (min-width: 720px) {
  .pagina {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .logo {
    width: 280px;
  }

  .cartao {
    padding: 40px 36px 32px;
    border-radius: 32px;
  }

  .ilustracao {
    width: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .spinner {
    border-color: #fff;
  }
}

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

@keyframes surgir {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
