/**
 * Cadastro pessoal — boot screen e estados de carregamento do formulário
 */

#cadastro.cadastro-pessoal {
  position: relative;
}

body.cadastro-pessoal-pending #cadastro.cadastro-pessoal {
  min-height: min(72vh, 720px);
}

body.cadastro-pessoal-pending #cadastro.cadastro-pessoal > .padding {
  opacity: 0;
  visibility: hidden;
}

body.cadastro-pessoal-ready #cadastro.cadastro-pessoal > .padding {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease;
}

body.page-cadastro-pessoal wc-menu,
body.page-cadastro-pessoal wc-cta,
body.page-cadastro-pessoal wc-footer {
  position: relative;
  z-index: 30;
}

#cadastro.cadastro-pessoal #cadastro-pessoal-boot {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-red1);
  text-align: center;
  padding: 1.5rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  color: #ffffff;
}

#cadastro.cadastro-pessoal #cadastro-pessoal-boot .cadastro-pessoal-boot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 24rem;
  color: #ffffff;
}

#cadastro.cadastro-pessoal #cadastro-pessoal-boot .cadastro-pessoal-boot__spinner {
  width: 48px;
  height: 48px;
  box-sizing: border-box;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: cadastro-pessoal-boot-spin 0.75s linear infinite;
}

@keyframes cadastro-pessoal-boot-spin {
  to {
    transform: rotate(360deg);
  }
}

#cadastro.cadastro-pessoal #cadastro-pessoal-boot .cadastro-pessoal-boot__text {
  margin: 0;
  font-family: "ColgateReady", Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  font-style: italic;
  line-height: 1.3;
  color: #ffffff;
}

body.cadastro-pessoal-ready #cadastro.cadastro-pessoal #cadastro-pessoal-boot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
