/* ==========================================
   1. VARIÁVEIS E RESETS
   ========================================== */
:root {
  --navy: #1B3A5C;
  --navy-dark: #122840;
  --navy-light: #2A5080;
  --red: #EC0000;
  --red-dark: #C20000;
  --red-light: #FF1A1A;
  --gray: #8C8C8C;
  --gray-light: #B8B8B8;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --surface: #FFFFFF;
  --surface2: #F1F4F7;
  --border: #E0E6ED;
  --text: #1A1A2E;
  --text-muted: #6B7A8D;
  --green: #00A859;
  --shadow: 0 4px 24px rgba(27, 58, 92, 0.10);
  --shadow-lg: 0 12px 48px rgba(27, 58, 92, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}



/* ==========================================
   2. COMPONENTES GLOBAIS (BOTÕES)
   ========================================== */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
}

/* ==========================================
   3. NAVEGAÇÃO
   ========================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27, 58, 92, 0.06);
}

.nav-logo img {
  height: 44px;
  object-fit: contain;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #0c2340 0%, #1B3A5C 55%, #0e2a48 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  position: relative;
}

/* Estilo para o botão de remover arquivo */
.remove-file-btn {
    display: none; /* Escondido por padrão */
    margin-top: 10px;
    background: #fdf2f2;
    color: #e60000;
    border: 1px solid #e60000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}

.remove-file-btn:hover {
    background: #e60000;
    color: #fff;
}

/* Quando o upload-card está selecionado, centralizamos o conteúdo */
.upload-card.selected {
    border-color: #28a745;
    background-color: #f8fff9;
}

.hero-top-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 15px 30px;
}

.hero-ak-logo {
  height: 50px;
  width: auto;
}

.hero-top-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.sant-logo-img {
  height: 30px;
}

.sant-parceiro-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236, 0, 0, 0.15);
  border: 1px solid rgba(236, 0, 0, 0.3);
  color: #ff8888;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 25px;
}

.hbadge-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse { 
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  max-width: 900px;
}

.hero-title span {
  color: var(--red);
}

.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  margin: 20px 0 40px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.hstat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 900;
  color: white;
}

.hstat-num.red {
  color: var(--red);
}

.hstat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  font-weight: 700;
}

.hstat-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ==========================================
   5. SEÇÃO PROCESSO SELETIVO
   ========================================== */
.section {
  padding: 100px 5%;
  background: var(--navy);
}

.section-label {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--red);
}

.section-sub {
  color: rgba(255,255,255,0.6);
  font-size: 18px;
  margin-bottom: 50px;
}

.processo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.processo-step {
  padding: 50px 30px;
  border-right: 1px solid #f0f0f0;
}

.processo-step:last-child {
  border-right: none;
}

.processo-num {
  font-size: 60px;
  font-weight: 900;
  color: #f1f4f7;
  line-height: 1;
  margin-bottom: 15px;
}

.processo-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.processo-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   6. SEÇÃO VAGAS E FILTROS
   ========================================== */
.vagas-bg {
  background: var(--off-white);
  padding: 80px 5%;
}

.vagas-container {
  max-width: 1200px;
  margin: 0 auto;
}

.filter-section {
  margin-bottom: 25px;
}

.filter-label { 
  font-size: 11px;
  font-weight: 900;
  color: var(--navy); 
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 15px; 
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  background: white;
  border: 1px solid #E0E6ED;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.filter-btn .count {
  background: #f1f4f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.filter-btn.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.filter-btn.active .count {
  background: rgba(255,255,255,0.2);
  color: white;
}

.search-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px;
  padding-top: 30px;
  border-top: 1px solid #eef1f5;
  gap: 20px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  padding-right: 45px;
  border: 1px solid #dce2e9;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}

.icon-search {
  position: absolute;
  right: 15px;
  top: 14px;
  opacity: 0.4;
}

.results-text {
  font-size: 14px;
  color: var(--text-muted);
}

.results-text span {
  font-weight: 800;
  color: var(--navy);
}

.vagas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.vaga-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: 0.3s;
}

.vaga-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--red);
}

.vaga-nome {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--navy);
}

.vaga-count-badge {
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
}

/* ==========================================
   7. MODAL E FORMULÁRIO (RESULTADO)
   ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.9);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  width: 100%;
  max-width: 600px;
  max-height: 90vh; /* Define que o modal nunca terá mais que 90% da altura da tela */
  border-radius: 20px;
  position: relative;
  display: flex; /* Transforma o modal em um container flexível */
  flex-direction: column; /* Organiza os itens (header, body, footer) em coluna */
  overflow: hidden; /* Garante que o scroll só aconteça no body */
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.4s ease-out;
}

@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  background: var(--navy);
  padding: 30px;
  color: white;
  flex-shrink: 0; /* Impede o cabeçalho de achatar */
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.modal-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
}

.progress-bar {
  height: 4px;
  flex: 1;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.progress-bar.active {
  background: var(--red);
}

.modal-title {
  font-family: 'Montserrat';
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 5px;
}

.modal-step-text {
  font-size: 12px;
  opacity: 0.8;
}

.modal-body {
  padding: 30px;
  flex: 1; /* Faz o corpo ocupar todo o espaço restante */
  overflow-y: auto; /* Habilita a rolagem APENAS no corpo do modal */
  background: #fff;
  /* Remova o padding-bottom: 100px; se ele ainda estiver lá */
}
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Seleção de Cargos Lado a Lado */
.step-instruction {
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 20px;
}

.cargo-selection-row {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
}

.cargo-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.cargo-icon {
  font-size: 20px;
}

.cargo-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
}

.cargo-opt.selected .cargo-label {
  color: var(--red);
}

/* Localização (UF Livre) */
.location-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 15px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: 0.2s;
}

.field input:focus {
  border-color: var(--navy);
}

/* Choice Cards e Slider */
.choice-card {
  border: 2px solid var(--border);
  padding: 18px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 12px;
  font-weight: 700;
  transition: 0.2s;
  color: var(--navy);
}

.choice-card.selected {
  border-color: var(--red);
  background: #FFF9F9;
  color: var(--red);
}

.slider-container {
  margin: 40px 0;
}

.slider-track {
  width: 100%;
  height: 8px;
  background: #DDE2E7; 
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}

.slider-fill {
  height: 100%;
  background: #EC0000;
  border-radius: 10px 0 0 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.slider-thumb {
  width: 22px;
  height: 22px;
  background: white;
  border: 4px solid #EC0000; /* Borda grossa vermelha */
  border-radius: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(236, 0, 0, 0.3); /* Brilho leve ao redor */
  z-index: 2;
  transition: left 0.1s ease;
}

/* Rodapé do Modal */
.modal-nav-footer {
  position: relative; /* Mudamos de absolute para relative */
  padding: 20px 30px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0; /* Impede o rodapé de achatar */
  z-index: 10;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.05); /* Sombreado leve para destacar o rodapé */
}

.btn-footer-gray {
  background: #f0f0f0;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  color: #333;
}

.btn-footer-red {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  text-align: center;
}

.slider-feedback {
  text-align: center;
  font-size: 14px;
  color: #1B3A5C;
  font-weight: 600;
  margin-top: 10px;
}

.slider-feedback strong {
  color: #EC0000;
  font-weight: 800;
}

.s-label {
  flex: 1;
}

.s-icon {
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.s-label p {
  font-size: 10px;
  font-weight: 800;
  color: #7A8DA1; /* Cor cinza azulada do texto original */
  line-height: 1.2;
  text-transform: uppercase;
}

.slider-container-custom {
  padding: 10px 0;
  margin-bottom: 20px;
  user-select: none;
}


.step-instruction-sub {
    font-size: 14px;
    color: #7A8DA1;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Container de Upload */
.upload-container {
    padding: 10px 0;
}

.upload-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #DDE2E7;
    border-radius: 15px;
    padding: 40px 20px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fcfcfc;
}

.upload-card:hover {
    border-color: #EC0000;
    background: #FFF9F9;
}

/* Badges (Selos) */
.badge-status {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: white;
    white-space: nowrap;
}

.badge-red { background-color: #EC0000; }
.badge-grey { background-color: #8C8C8C; }

/* Ícones e Textos */
.upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.upload-text {
    font-family: 'Montserrat';
    font-weight: 800;
    color: #1B3A5C;
    font-size: 16px;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 12px;
    color: #7A8DA1;
    text-align: center;
}

/* Box de Incentivo Rosa */
.incentive-box {
    display: flex;
    gap: 15px;
    background: #FFF5F5;
    border: 1px solid #FFD6D6;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.incentive-icon {
    font-size: 24px;
}

.incentive-box strong {
    display: block;
    color: #EC0000;
    font-size: 14px;
    margin-bottom: 4px;
}

.incentive-box p {
    font-size: 12px;
    color: #1B3A5C;
    line-height: 1.4;
}

/* Estilo para quando o arquivo é selecionado */
.upload-card.selected {
    border-style: solid;
    border-color: #00A859;
    background: #F0FFF4;
}

.custom-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--navy);
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: border 0.3s;
}

.custom-select:focus {
    border-color: var(--red);
}

  .hero-ak-logo {
    height: 90px; /* Aumente ou diminua este valor conforme o seu gosto */
    width: auto;  /* Mantém a proporção da imagem */
    display: block;
  }

  /* Garante que os itens na barra do topo fiquem alinhados centralizados verticalmente */
  .hero-top-bar {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 30px; /* Espaço entre o logo e o divisor */
  }

  /* Ajuste opcional para o logo do Santander se quiser que fiquem idênticos */
  .sant-logo-img {
    height: 35px; /* Altura do logo do Santander */
    width: auto;
  }

  .hero-buttons-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Para não quebrar em telas muito pequenas */
  margin-top: 20px;
}


/* Estilo para os cards das perguntas */
.pergunta-group {
    margin-bottom: 30px;
    text-align: left;
}

.choice-card-sm {
    display: flex;
    align-items: center;
    position: relative;
    border: 1.5px solid #E0E6ED;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    background: #fff;
}

/* Efeito ao selecionar (Igual à foto) */
.choice-card-sm.selected {
    border-color: #EC0000;
    background-color: #fdf2f20a; /* Fundo levemente rosado opcional */
}

/* Ícones à esquerda */
.q-icon {
    font-size: 24px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.q-text {
    flex: 1;
}

.q-text strong {
    display: block;
    font-size: 14px;
    color: #1B3A5C;
    margin-bottom: 2px;
}

.q-text p {
    font-size: 12px;
    color: #7A8DA1;
    margin: 0;
}

/* O Círculo de Check (invisível por padrão) */
.choice-card-sm::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #E0E6ED;
    border-radius: 50%;
    margin-left: 10px;
    transition: 0.2s;
}

/* Visual do Check quando selecionado */
.choice-card-sm.selected::after {
    content: "✓";
    background: #EC0000;
    border-color: #EC0000;
    color: white;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Estilo do botão de visualizar (Outline) */
.btn-outline {
  background-color: transparent;
  color: #fff; /* Ou a cor do seu texto no hero */
  border: 2px solid #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ==========================================
   8. RESPONSIVIDADE
   ========================================== */
@media (max-width: 992px) {
  .processo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  nav {
    padding: 0 20px;
  }
  .processo-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  .hstat-sep {
    display: none;
  }
  .cargo-selection-row {
    flex-direction: column;
    gap: 15px;
  }
  .location-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px;
  }
  .modal {
    max-height: 95vh;
  }
}