 :root {
  --corPrincipal: #357ABD;
  --corSecundaria: #4a90e2;
  --corPrimariaProgressBar: #aaa9a9;
  --corPrimariaBody: #e1e6ef;
  --corSecundariaBody: #f9fbfe;
  --bg-gradient: linear-gradient( 90deg, var(--corSecundaria) 0%, var(--corPrincipal) 100%
  );
 }

 /* Animação de entrada */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animação de saída */
@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

.fade-in-left {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.fade-out-right {
  animation: fadeOutRight 0.6s ease-in forwards;
}

 
 /* ===== Body & Fonte ===== */
.sp-body {
  background: linear-gradient(135deg, var(--corPrimariaBody), var(--corSecundariaBody));
  font-family: 'Poppins', sans-serif;
  padding: 40px 0;
}

/* Logo Header */
.sp-logo {
  width: 20%;
  height: auto;
}

/* Container do Header */
.sp-hdr-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* Barra com gradient no Header */
.sp-progress-bar {
  width: 100%;
  background: linear-gradient(90deg, var(--corPrimariaProgressBar) 0%, var(--corPrincipal) 100%);
}

/* ===== Indicador de Step ===== */
.sp-stepwizard {
  display: flex;
  justify-content: space-between;
}

.sp-stepwizard-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.sp-stepwizard-step p {
  margin-top: 8px;
  color: #777;
  font-weight: 500;
}

/* Botão de indicação de Step */
.sp-btn-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  padding: 8px 0;
}

.sp-btn-circle.active {
  background: var(--corPrincipal);
  color: #fff;
  box-shadow: 0 0 10px rgba(12, 12, 12, 0.6);
  border: none;
}

.sp-btn-circle.inactive {
  background: #ddd;
  color: #888;
  border: none;
}

/* ===== Container 3D ===== */
/* container da imagem + formulario*/
.sp-wizard-card {
  display: flex;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  min-height: 550px;
}

/* ===== Form ===== */
.sp-wizard-form {
  flex: 1.3;
  padding: 30px 25px;
}

/* Imagem lateral do form */
.sp-img-card-lateral {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* container do titulo dentro do form */
.sp-panel-heading {
  background: var(--bg-gradient);
  color: #fff !important;
  font-weight: 600;
  padding: 5px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 20px;
}

/* inputs do formulario */
.form-control {
  border: 1px solid #cbd5e0;
  border-radius: 12px;
  padding: 5px 15px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
}

.form-control:focus {
  border-color: #3182ce; /* azul suave */
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.3); /* foco 3D */
  transform: translateY(-1px); /* leve elevação no foco */
}


/* Botao Próximo e Cadastrar*/
.btn-primary {
  display: inline-block;
  background: var(--bg-gradient);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-top: 3%;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #357ABD 0%, #2A659F 100%);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Botao Anterior */
.btn-default {
  background: transparent;
  border-color: #3369B1;
  color: #3369B1;
  margin-top: 3%;
  padding: 0.5rem 1.5rem;
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-default:hover {
  background: linear-gradient(90deg, #357ABD 0%, #2A659F 100%);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  color: #fff;
}

/* Alinhamento de espaço dos ultimos botoes dentro do Step 3 */
.sp-btn-espacamento {
  margin-top: 98px;
  display: flex;
  gap: 10px;
  justify-content: end;
}

.sp-button {
  text-align: right;
}

/* Esconde todos os steps até serem ativados */
.sp-setup-content { 
  display: none;
}

.sp-setup-content.ativo {
    display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 550px;
}

@media (max-width: 768px) {
  .sp-logo {
    width: 30%;
  }

  .sp-hdr-title {
    font-size: 1.2rem !important;
  }

  .sp-img-card-lateral {
    display: none;
  }
}