
/* =========================================================
   FASTESCOVA ALFENAS
   Identidade visual: preto, dourado e branco
   ========================================================= */

/* ---------- 1. Variáveis e configuração geral ---------- */

:root {
  color-scheme: dark;

  --preto: #050505;
  --preto-profundo: #000000;
  --preto-card: #0b0b0b;
  --preto-input: #171719;

  --dourado: #ffd600;
  --dourado-claro: #ffe84a;
  --dourado-escuro: #b89600;

  --branco: #ffffff;
  --texto: #f5f5f5;
  --texto-secundario: #b5b5b9;
  --borda: rgba(255, 214, 0, 0.25);

  --raio-card: 24px;
  --raio-campo: 12px;

  --largura-maxima: 760px;

  --transicao: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--preto-profundo);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  background: var(--preto-profundo);
  color: var(--texto);

  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  font-size: 16px;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input {
  font-family:
    Inter,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

button,
input {
  font-size: inherit;
}

button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 4px;
}

::selection {
  color: var(--preto-profundo);
  background: var(--dourado);
}


/* ---------- 2. Estrutura da página ---------- */

.pagina {
  position: relative;
  isolation: isolate;

  min-height: 100vh;
  padding: 32px 24px 24px;

  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 15%,
      rgba(255, 214, 0, 0.055),
      transparent 38%
    ),
    linear-gradient(
      180deg,
      #050505 0%,
      #000000 55%,
      #050505 100%
    );
}

.conteudo {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: var(--largura-maxima);

  margin: 0 auto;
}


/* ---------- 3. Decoração dourada do fundo ---------- */

.decoracao {
  position: absolute;
  z-index: -1;

  width: 480px;
  height: 480px;

  pointer-events: none;
  opacity: 0.55;
  filter: blur(1px);
}

.decoracao-superior {
  top: -350px;
  left: -270px;

  border: 1px solid rgba(255, 214, 0, 0.6);
  border-radius: 50%;

  box-shadow:
    0 0 35px rgba(255, 214, 0, 0.08),
    inset 0 0 30px rgba(255, 214, 0, 0.04);

  transform: rotate(-25deg);
}

.decoracao-inferior {
  right: -360px;
  bottom: -360px;

  border: 1px solid rgba(255, 214, 0, 0.45);
  border-radius: 50%;

  box-shadow:
    0 0 45px rgba(255, 214, 0, 0.07),
    inset 0 0 30px rgba(255, 214, 0, 0.04);
}


/* ---------- 4. Logo ---------- */

.cabecalho {
  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0 auto 22px;
}

.logo {
  display: block;

  width: min(100%, 245px);
  height: auto;
  max-height: 245px;

  object-fit: contain;

  filter: drop-shadow(0 8px 28px rgba(255, 214, 0, 0.055));

  animation: entrada-logo 800ms ease both;
}


/* ---------- 5. Apresentação ---------- */

.apresentacao {
  margin: 0 auto 30px;
  text-align: center;
}

.etiqueta {
  display: inline-block;

  margin-bottom: 15px;
  padding: 6px 13px;

  border: 1px solid rgba(255, 214, 0, 0.28);
  border-radius: 999px;

  background: rgba(255, 214, 0, 0.055);
  color: var(--dourado);

  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
}

.apresentacao h1 {
  max-width: 720px;

  margin: 0 auto 17px;

  color: var(--branco);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5.2vw, 49px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;

  text-wrap: balance;
}

.destaque {
  color: var(--dourado);
}

.descricao {
  max-width: 520px;

  margin: 0 auto;

  color: var(--texto-secundario);
  font-size: 16px;
  line-height: 1.75;

  text-wrap: pretty;
}


/* ---------- 6. Etapas de participação ---------- */

.etapas {
  display: flex;
  align-items: stretch;
  justify-content: center;

  width: 100%;
  margin: 32px auto 34px;
}

.etapa {
  display: flex;
  flex: 1;

  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-width: 0;
  padding: 0 10px;

  text-align: center;
}

.etapa-icone {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  margin-bottom: 10px;

  border: 1px solid rgba(255, 214, 0, 0.58);
  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(255, 214, 0, 0.12),
      rgba(255, 214, 0, 0.025)
    );

  color: var(--dourado);

  box-shadow:
    0 0 20px rgba(255, 214, 0, 0.035),
    inset 0 0 14px rgba(255, 214, 0, 0.04);

  transition:
    transform var(--transicao),
    border-color var(--transicao),
    box-shadow var(--transicao);
}

.etapa:hover .etapa-icone {
  transform: translateY(-3px);

  border-color: var(--dourado);

  box-shadow:
    0 0 22px rgba(255, 214, 0, 0.13),
    inset 0 0 14px rgba(255, 214, 0, 0.08);
}

.etapa-icone svg {
  width: 27px;
  height: 27px;
}

.etapa p {
  display: flex;
  flex-direction: column;

  margin: 0;

  color: var(--texto-secundario);
  font-size: 13px;
  line-height: 1.5;
}

.etapa strong {
  color: var(--branco);
  font-weight: 700;
}

.etapa-divisor {
  align-self: center;

  width: 1px;
  height: 48px;

  flex: 0 0 1px;

  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
}


/* ---------- 7. Cartão do formulário ---------- */

.cartao-formulario {
  position: relative;

  width: 100%;
  padding: 30px;

  border: 1px solid rgba(255, 214, 0, 0.30);
  border-radius: var(--raio-card);

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(255, 214, 0, 0.035),
      transparent 60%
    ),
    linear-gradient(
      145deg,
      rgba(17, 17, 17, 0.98),
      rgba(5, 5, 5, 0.98)
    );

  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.48),
    0 0 35px rgba(255, 214, 0, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    border-color var(--transicao),
    box-shadow var(--transicao);
}

.cartao-formulario:hover {
  border-color: rgba(255, 214, 0, 0.42);

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(255, 214, 0, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.formulario-cabecalho {
  margin-bottom: 24px;
}

.formulario-etiqueta {
  display: inline-block;

  margin-bottom: 6px;

  color: var(--dourado);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.formulario-cabecalho h2 {
  margin: 0 0 5px;

  color: var(--branco);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.5px;
}

.formulario-cabecalho p {
  margin: 0;

  color: var(--texto-secundario);
  font-size: 14px;
}


/* ---------- 8. Formulário e campos ---------- */

#formulario {
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.campo label {
  color: var(--texto);
  font-size: 14px;
  font-weight: 700;
}

.obrigatorio {
  color: var(--dourado);
}

.campo-input {
  display: flex;
  align-items: center;
  gap: 12px;

  min-height: 58px;
  padding: 0 16px;

  border: 1px solid #414145;
  border-radius: var(--raio-campo);

  background:
    linear-gradient(
      145deg,
      #1b1b1e,
      #151517
    );

  transition:
    border-color var(--transicao),
    box-shadow var(--transicao),
    background var(--transicao);
}

.campo-input:hover {
  border-color: #68686d;
}

.campo-input:focus-within {
  border-color: var(--dourado);

  background: #191919;

  box-shadow:
    0 0 0 3px rgba(255, 214, 0, 0.09),
    0 0 20px rgba(255, 214, 0, 0.035);
}

.campo-input > svg {
  width: 23px;
  height: 23px;

  flex: 0 0 23px;

  color: #a5a5ab;
  transition: color var(--transicao);
}

.campo-input:focus-within > svg {
  color: var(--dourado);
}

.campo-input input {
  width: 100%;
  min-width: 0;
  min-height: 54px;

  padding: 12px 0;

  border: 0;
  outline: none;

  background: transparent;
  color: var(--branco);

  font-size: 15px;
  font-weight: 400;

  box-shadow: none;
}

.campo-input input::placeholder {
  color: #929298;
  opacity: 1;
}

.campo-input input:focus-visible {
  outline: none;
}

.ajuda-campo {
  margin-top: -3px;

  color: #8e8e94;
  font-size: 11px;
}


/* ---------- 9. Consentimento ---------- */

.consentimento {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin: 0;

  color: #bdbdc2;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;

  cursor: pointer;
}

.consentimento input {
  appearance: none;
  -webkit-appearance: none;

  display: grid;
  place-content: center;

  width: 20px;
  height: 20px;
  min-width: 20px;

  margin: 2px 0 0;

  border: 1px solid #68686d;
  border-radius: 5px;

  background: #111113;

  cursor: pointer;

  transition:
    background var(--transicao),
    border-color var(--transicao),
    box-shadow var(--transicao);
}

.consentimento input::before {
  content: "";

  width: 10px;
  height: 6px;

  border: solid #000;
  border-width: 0 0 2px 2px;

  transform: rotate(-45deg) scale(0);
  transition: transform 120ms ease;
}

.consentimento input:checked {
  border-color: var(--dourado);
  background: var(--dourado);

  box-shadow: 0 0 12px rgba(255, 214, 0, 0.13);
}

.consentimento input:checked::before {
  transform: rotate(-45deg) scale(1);
}

.consentimento input:focus-visible {
  outline: 2px solid var(--dourado);
  outline-offset: 3px;
}

.consentimento span {
  flex: 1;
}


/* ---------- 10. Botão principal ---------- */

.botao-enviar {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  width: 100%;
  min-height: 62px;

  padding: 17px 22px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;

  background:
    linear-gradient(
      110deg,
      #ffe84a 0%,
      #ffd600 45%,
      #f4c400 100%
    );

  color: #080808;

  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.15px;

  cursor: pointer;

  box-shadow:
    0 8px 25px rgba(255, 214, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);

  transition:
    transform var(--transicao),
    box-shadow var(--transicao),
    filter var(--transicao);
}

.botao-enviar::before {
  content: "";

  position: absolute;
  z-index: -1;

  top: -50%;
  left: -80%;

  width: 45%;
  height: 200%;

  background: rgba(255, 255, 255, 0.32);

  transform: rotate(25deg);
  transition: left 600ms ease;
}

.botao-enviar:hover::before {
  left: 140%;
}

.botao-enviar:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 34px rgba(255, 214, 0, 0.20),
    0 0 22px rgba(255, 214, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);

  filter: brightness(1.04);
}

.botao-enviar:active {
  transform: translateY(0) scale(0.99);
}

.botao-enviar:focus-visible {
  outline: 3px solid var(--branco);
  outline-offset: 4px;
}

.botao-enviar > svg {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;

  transition: transform var(--transicao);
}

.botao-enviar:hover > svg {
  transform: translateX(4px);
}

.botao-enviar:disabled {
  transform: none;

  background: #b9a12e;
  color: #24200e;

  cursor: wait;

  box-shadow: none;
  filter: none;
}

.botao-enviar:disabled::before {
  display: none;
}


/* ---------- 11. Mensagens de estado ---------- */

.mensagem {
  min-height: 0;

  margin: 0;

  color: var(--texto-secundario);
  font-size: 13px;
  line-height: 1.6;

  text-align: center;
  overflow-wrap: anywhere;
}

.mensagem:empty {
  display: none;
}

.mensagem:not(:empty) {
  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;

  background: rgba(255, 255, 255, 0.025);
}


/* ---------- 12. Benefícios ---------- */

.beneficios {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin: 29px auto 0;
  padding: 0 3px;
}

.beneficio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 0;
  flex: 1;
}

.beneficio > svg {
  width: 29px;
  height: 29px;

  flex: 0 0 29px;

  color: var(--dourado);
}

.beneficio p {
  display: flex;
  flex-direction: column;

  margin: 0;

  color: var(--texto-secundario);
  font-size: 11px;
  line-height: 1.55;
}

.beneficio strong {
  color: var(--texto);
  font-weight: 650;
}

.beneficio-divisor {
  width: 1px;
  height: 37px;

  flex: 0 0 1px;

  background: rgba(255, 255, 255, 0.17);
}


/* ---------- 13. Rodapé ---------- */

.rodape {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 32px auto 0;
  padding-bottom: 4px;

  text-align: center;
}

.logo-rodape {
  display: block;

  width: 120px;
  max-width: 100%;
  height: auto;

  margin-bottom: 12px;
}

.rodape p {
  margin: 0;

  color: #77777d;
  font-size: 11px;
  line-height: 1.7;
}

.rodape .aviso-sorteio {
  margin-top: 5px;

  color: #99999e;
  font-size: 10px;
}


/* ---------- 14. Área de confetes ---------- */

.confetes {
  position: fixed;
  z-index: 9999;
  inset: 0;

  overflow: hidden;

  pointer-events: none;
}

.confete {
  position: absolute;
  top: -20px;

  width: 9px;
  height: 14px;

  background: var(--dourado);

  opacity: 0;

  animation: queda-confete 2.8s ease-in forwards;
}

.confete:nth-child(3n) {
  background: #ffffff;
  border-radius: 50%;
}

.confete:nth-child(3n + 1) {
  background: #ffb800;
}

.confete:nth-child(3n + 2) {
  background: #f3d96b;
}


/* ---------- 15. Animações ---------- */

@keyframes entrada-logo {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes queda-confete {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--deslocamento-x, 80px), 105vh, 0)
      rotate(var(--rotacao, 720deg));
  }
}


/* ---------- 16. Tablets ---------- */

@media (max-width: 700px) {
  .pagina {
    padding: 26px 20px 22px;
  }

  .logo {
    width: min(100%, 215px);
    max-height: 215px;
  }

  .apresentacao h1 {
    font-size: clamp(30px, 6vw, 42px);
  }

  .cartao-formulario {
    padding: 26px;
  }

  .beneficios {
    gap: 12px;
  }

  .beneficio {
    gap: 7px;
  }

  .beneficio > svg {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .beneficio p {
    font-size: 10px;
  }
}


/* ---------- 17. Celulares ---------- */

@media (max-width: 480px) {
  .pagina {
    padding: 21px 15px 20px;
  }

  .cabecalho {
    margin-bottom: 17px;
  }

  .logo {
    width: min(100%, 185px);
    max-height: 185px;
  }

  .apresentacao {
    margin-bottom: 26px;
  }

  .etiqueta {
    margin-bottom: 13px;
    padding: 6px 10px;

    font-size: 9px;
    letter-spacing: 1.35px;
  }

  .apresentacao h1 {
    margin-bottom: 14px;

    font-size: clamp(29px, 8.1vw, 36px);
    line-height: 1.13;
    letter-spacing: -0.8px;
  }

  .descricao {
    max-width: 350px;

    font-size: 14px;
    line-height: 1.7;
  }

  .etapas {
    margin: 26px auto 28px;
  }

  .etapa {
    padding: 0 5px;
  }

  .etapa-icone {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
  }

  .etapa-icone svg {
    width: 23px;
    height: 23px;
  }

  .etapa p {
    font-size: 11px;
    line-height: 1.45;
  }

  .etapa-divisor {
    height: 38px;
  }

  .cartao-formulario {
    padding: 23px 18px;
    border-radius: 19px;
  }

  .formulario-cabecalho {
    margin-bottom: 21px;
  }

  .formulario-cabecalho h2 {
    font-size: 22px;
  }

  .formulario-cabecalho p {
    font-size: 13px;
  }

  #formulario {
    gap: 19px;
  }

  .campo {
    gap: 8px;
  }

  .campo label {
    font-size: 13px;
  }

  .campo-input {
    min-height: 55px;
    gap: 10px;
    padding: 0 13px;
  }

  .campo-input > svg {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .campo-input input {
    min-height: 51px;
    font-size: 14px;
  }

  .consentimento {
    gap: 10px;
    font-size: 11px;
    line-height: 1.65;
  }

  .botao-enviar {
    min-height: 58px;
    gap: 9px;
    padding: 15px 12px;
    font-size: 13px;
  }

  .botao-enviar > svg {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .beneficios {
    gap: 8px;
    margin-top: 25px;
  }

  .beneficio {
    flex-direction: column;
    gap: 6px;

    text-align: center;
  }

  .beneficio > svg {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .beneficio p {
    font-size: 10px;
    line-height: 1.45;
  }

  .beneficio-divisor {
    height: 48px;
  }

  .rodape {
    margin-top: 27px;
  }

  .logo-rodape {
    width: 105px;
  }

  .rodape p {
    font-size: 10px;
  }

  .decoracao {
    opacity: 0.25;
  }
}


/* ---------- 18. Celulares muito estreitos ---------- */

@media (max-width: 350px) {
  .pagina {
    padding-right: 11px;
    padding-left: 11px;
  }

  .apresentacao h1 {
    font-size: 28px;
  }

  .cartao-formulario {
    padding: 20px 14px;
  }

  .etapa {
    padding: 0 3px;
  }

  .etapa p {
    font-size: 10px;
  }

  .beneficios {
    gap: 5px;
  }

  .beneficio > svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .beneficio p {
    font-size: 9px;
  }
}


/* ---------- 19. Acessibilidade: menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
