:root {
  /* Mesmo fundo do formulário oficial (cartão e áreas de texto). */
  --fundo: #111728;
  --fundo-2: #070b1c;
  /* Fundo animado, o mesmo do login do InviteShiver. */
  --palco: #02040f;
  --texto: #f0f7ff;
  --texto-2: #a3b1c9;
  --texto-3: #6f7d97;
  --linha: rgba(255, 255, 255, 0.08);
  --marca: #29a8e0;
  --marca-forte: #46c1ee;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--palco);
  color: var(--texto);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--marca-forte); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Primeira tela: fundo animado com o formulário num cartão por cima. */
.palco {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100svh;
  min-height: 680px;
  padding: 32px 16px;
  overflow: hidden;
  background: var(--palco);
}

.palco .fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.quadro {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: 100%;
  max-height: 740px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--fundo);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(29, 63, 232, 0.18);
}

/* Celular: o formulário ocupa a tela, como no InviteShiver. */
@media (max-width: 520px) {
  .palco { padding: 0; }
  .palco .fundo { display: none; }
  .quadro {
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }
}

.quadro iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--fundo);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.quadro.pronto iframe { opacity: 1; }

.quadro .carregando {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.quadro.pronto .carregando { opacity: 0; }

.carregando span {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--marca);
  border-radius: 50%;
  animation: gira 0.8s linear infinite;
}

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

/* Texto de apoio abaixo do formulário. */
.apoio {
  border-top: 1px solid var(--linha);
  background: var(--fundo-2);
}

.miolo {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px;
}

.apoio h1 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.apoio p { margin: 0 0 14px; color: var(--texto-2); }

.apoio .risco {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--linha);
  color: var(--texto-3);
  font-size: 13px;
}

/* Rodapé */
.rodape {
  border-top: 1px solid var(--linha);
  background: var(--fundo-2);
}

.rodape .miolo {
  max-width: 1080px;
  padding-top: 40px;
  padding-bottom: 40px;
  display: grid;
  gap: 28px;
}

.rodape img { height: 34px; width: auto; display: block; }

.rodape .colunas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.rodape h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-3);
}

.rodape ul { list-style: none; margin: 0; padding: 0; }
.rodape li { margin: 0 0 6px; }
.rodape li a { color: var(--texto-2); font-size: 14px; }
.rodape li a:hover { color: var(--texto); }

.rodape .direitos { color: var(--texto-3); font-size: 13px; margin: 0; }

/* Volta de um link legal do formulário com a nova aba bloqueada. */
#documentos { border-radius: 4px; transition: box-shadow 0.3s ease, background 0.3s ease; }
#documentos.destaque {
  background: rgba(41, 168, 224, 0.08);
  box-shadow: 0 0 0 8px rgba(41, 168, 224, 0.08);
}
