/* ========================================================= */
/* css/global.css - Estilos globais e Variáveis de Tema      */
/* ========================================================= */

:root {
  --bg-color: #f4f7f9;
  --btn-color: #3465a4;
  --btn-hover: #0f3a55;
  --text-dark: #0f3a55;
  --text-light: #7b8a98;
  --turquesa: #20b8bd;
  --vermelho: #e74c3c;
  --azul-050: #f4f9fc;
  --linha: rgba(52, 101, 164, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fundo-institucional {
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(
      145deg,
      rgba(220, 238, 250, 0.78),
      rgba(244, 249, 252, 0.94) 34%,
      rgba(221, 247, 248, 0.58)
    ),
    var(--azul-050);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===== ANIMAÇÕES DE TRANSIÇÃO ===== */
.fade-in-page {
  animation: pageEnter 0.5s ease-out;
}
.fade-out-page {
  animation: pageLeave 0.4s ease-in forwards;
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pageLeave {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* ===== TOPBAR (Logo Centralizada) ===== */
.ghost-topbar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.logo-pill {
  padding: 15px 8px;
}
.logo-img {
  height: 85px;
  width: auto;
  display: block;
}

/* ===== CONTAINER CENTRAL E GLASS CARD ===== */
.wizard-container {
  width: 95%;
  max-width: 700px;
  margin-top: 40px;
}

.glass-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.1);
  padding: 50px 40px;
}

.card-header-centered {
  text-align: center;
  margin-bottom: 35px;
}
.card-title {
  color: var(--btn-hover);
  font-size: 26px;
  margin-bottom: 8px;
}
.card-subtitle {
  color: var(--text-light);
  font-size: 15px;
}

/* ===== BOTÕES PADRÕES ===== */
.btn-submit {
  width: 100%;
  height: 50px;
  border-radius: 15px;
  border: none;
  background-color: var(--btn-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 20px rgba(52, 101, 164, 0.3);
}
.btn-submit:hover {
  background-color: var(--btn-hover);
  transform: translateY(-2px);
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(0);
  box-shadow: none;
}

/* ===== RODAPÉ DO CARD (Voltar) ===== */
.action-footer {
  margin-top: 35px;
  text-align: center;
  width: 100%;
}
.btn-voltar {
  color: var(--text-light);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  transition: all 0.2s ease;
  display: inline-block;
}
.btn-voltar:hover {
  color: var(--btn-hover);
  background: rgba(52, 101, 164, 0.08);
}

/* Responsividade Global Básica */
@media (max-width: 600px) {
  .ghost-topbar {
    margin-top: 16px;
  }
  .glass-card {
    padding: 30px 20px;
  }
}
/* ===== STEPPER GLOBAL (Barra de Progresso) ===== */
.stepper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 35px;
  width: 100%;
}

.stepper-container[hidden] {
  display: none;
}
.stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 450px;
  margin-bottom: 12px;
}
.step {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--linha);
  transition: all 0.3s ease;
}
.step.done {
  background: var(--btn-color);
}
.step.active {
  background: var(--turquesa);
}
.step-labels {
  text-align: center;
  width: 100%;
  font-size: 13px;
  font-weight: bold;
  color: var(--turquesa);
  letter-spacing: 0.5px;
}

/* ===== INPUTS PADRONIZADOS ===== */
.input-group {
  text-align: left;
  margin-bottom: 24px;
}
.input-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-light);
  margin-left: 12px;
  margin-bottom: 8px;
  display: block;
}
.input-modal {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  padding: 0 20px;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: #fff;
  color: var(--text-dark);
  transition: all 0.3s ease;
  text-align: center;
  letter-spacing: 1px;
}
.input-modal:focus {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(32, 184, 189, 0.15);
}

.select-modal {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  padding: 0 20px;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  outline: none;
  background: #fff;
  color: var(--text-dark);
  transition: all 0.3s ease;
  appearance: none; /* Remove a setinha padrão do navegador */
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233465a4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 16px;
  cursor: pointer;
}

.select-modal:focus {
  border-color: var(--turquesa);
  box-shadow: 0 0 0 3px rgba(32, 184, 189, 0.15);
}

.oculto {
  display: none !important;
}

/* ===== CABEÇALHO DA ETAPA DO ACORDEÃO ===== */
.step-header {
  gap: 12px;
}

.step-header > span:first-child {
  min-width: 0;
}

.step-header > span:last-child {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  line-height: 1;
}

/* ===== SINALIZAÇÃO DE TROCA DE ARQUIVO ===== */
.etapa-trocar {
  font-size: 11px;
  font-weight: bold;
  color: var(--btn-color);
  text-decoration: underline;
  margin-right: 8px;
}

/* ===== MOVIMENTO REDUZIDO ===== */
@media (prefers-reduced-motion: reduce) {
  .fade-in-page,
  .fade-out-page,
  .modal-content,
  .success-icon-container {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
