/* ===== Sparo — ajustes do formulário de contato ===== */

/* 1. Autofill: manter o tema escuro (remove a barra branca horrível do navegador) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px #16181d inset !important;
  box-shadow: 0 0 0 1000px #16181d inset !important;
  /* trava o fundo escuro por tempo "infinito" para o navegador não repintar de branco */
  transition: background-color 9999s ease-in-out 0s !important;
  border-radius: inherit;
}

/* 2. Canvas dos confetes (acima de tudo, sem capturar cliques) */
.sparo-confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483000;
}

/* 3. Pop-up com blur no restante da tela */
.sparo-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 10, 0.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.sparo-overlay.is-open {
  opacity: 1;
}

.sparo-modal {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.96), rgba(14, 12, 16, 0.98));
  border: 1px solid rgba(255, 84, 0, 0.35);
  border-radius: 24px;
  padding: 40px 32px 32px;
  text-align: center;
  color: #fff;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px rgba(255, 84, 0, 0.18);
  font-family: "Satoshi", "Inter", system-ui, -apple-system, sans-serif;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1.15);
}
.sparo-overlay.is-open .sparo-modal {
  transform: none;
}

.sparo-modal__check {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #ff7a33, #ff5400);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(255, 84, 0, 0.5);
}
.sparo-modal h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sparo-modal p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.sparo-modal strong {
  color: #ff8a4d;
}
.sparo-modal__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  padding: 13px 30px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #ff7a33 0%, #ff5400 100%);
  box-shadow: 0 6px 20px rgba(255, 84, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sparo-modal__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 84, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.sparo-modal__btn:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sparo-overlay,
  .sparo-modal,
  .sparo-modal__btn {
    transition: opacity 0.2s ease;
  }
}
