/* General reset */
* { font-family: 'Trebuchet MS', sans-serif; margin: 0; padding: 0; box-sizing: border-box; }

/* Body */
body {
  background-color: #FFFFFF;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  background: #F5F3F0;
  padding: 10px 20px;
  z-index: 1000;
  border-bottom: 2px solid #FFD400;
}
.logo { height: 30px; }

/* Ajuste do conteúdo para ficar abaixo do header (remove padding fixo) */
.content-wrapper { padding-top: 92px; width: 100%; }

/* Heading */
h1 {
  font-size: 24px;
  margin: 12px 16px;
  color: #00416B;
  text-align: left;
}

/* Container principal */
.container {
  background: #E9ECEF;
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.06);
  margin: 12px;
  max-width: 980px;
  width: calc(100% - 24px);
}

/* Inputs */
#codeInput {
  padding: 10px;
  width: 100%;
  border: 1px solid #807569;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
  transition: border-color 0.3s ease, box-shadow 0.2s ease;
}
#codeInput:focus { border-color: #0071AD; outline: none; box-shadow: 0 2px 6px rgba(0,113,173,0.12); }

/* Buttons principais */
button, .carousel-btn {
  padding: 10px 20px;
  background-color: #0071AD;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms ease, background-color 180ms ease;
}
button:hover, .carousel-btn:hover { transform: translateY(-2px); background-color: #0069D9; box-shadow: 0 6px 18px rgba(0,0,0,0.08); }
button:focus, .carousel-btn:focus { outline: 3px solid rgba(0,113,173,0.12); }

/* Botão "Entender intermediação" centralizado e animado */
.button2 {
  display: inline-block;
  background: linear-gradient(135deg, #0071AD, #0095DA);
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 14px 34px;
  margin: 28px auto;
  border-radius: 32px; /* bordas bem arredondadas */
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 113, 173, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: pulseButton 2.5s infinite ease-in-out;
}

.button2:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(0, 113, 173, 0.35);
}

.button2:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(0, 113, 173, 0.3);
}

/* Centraliza o botão dentro do container */
.container .button2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

/* Animação de pulsar suave */
@keyframes pulseButton {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 113, 173, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 113, 173, 0);
  }
}

/* Message feedback */
#message { margin-top: 14px; font-size: 16px; font-weight: bold; min-height: 22px; }
#message.correct { color: #1a7f37; }
#message.error { color: #c23b3b; }

/* Footer */
footer { width: 100%; text-align: center; padding: 18px 12px; background: #FFE600; color: #003157; margin-top: auto; }
.custom-footer { display: flex; flex-wrap: wrap; justify-content: space-between; padding: 18px; }

/* Footer sections */
.custom-footer .footer-section { width: 250px; margin: 8px; text-align: left; }
.custom-footer h2 { margin-bottom: 12px; color: #003157; font-weight: 700; font-size: 18px; }
.custom-footer ul { list-style: none; padding: 0; }
.custom-footer li { font-size: 14px; margin-bottom: 8px; display:flex; align-items:center; }

/* Footer icons */
.footer-icon { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }

/* Carousel ajustado para mostrar imagem completa */
.carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  margin: 18px auto;
  position: relative;
}

/* Container com altura automática e margens equilibradas */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 90%;
  overflow: hidden;
  background: #f8f8f8;
  border-radius: 8px;
  padding: 8px; /* margem interna leve ao redor das imagens */
  box-sizing: border-box;
}

/* Cada slide ocupa a mesma área, sem cortar imagem */
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  max-height: 80vh; /* impede imagem de passar da altura da tela */
  object-fit: contain; /* exibe a imagem inteira, sem corte */
  object-position: center;
  margin: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 450ms ease, transform 450ms ease;
  transform: scale(0.995);
  border-radius: 6px;
  background-color: #fff; /* fundo neutro ao redor da imagem */
}

.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Botões de navegação com setas sutis */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.65);
  color: #00416B;
  font-size: 32px;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 250ms ease, transform 150ms ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

/* Remove os botões antigos */
.carousel-controls {
  display: none;
}


/* Responsive */
@media (max-width: 800px) {
  .custom-footer .footer-section { width: 100%; max-width: 100%; }
  .carousel-container { max-width: 100%; }
}

/* Popup */
.popup { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.popup-content { background: white; padding: 20px; border-radius: 6px; width: 90%; max-width: 420px; text-align: left; position: relative; }
.popup .close { position: absolute; top: 8px; right: 10px; font-size: 22px; background: none; border: none; cursor: pointer; }

/* Timeline base styles */
.timeline { position: relative; padding-left: 35px; margin-top: 20px; border-left: 4px solid #ffd105; }
.event { position: relative; margin-bottom: 20px; padding-left: 20px; }
.event::before { content: ""; position: absolute; left: -58px; top: -8px; width: 40px; height: 40px; background-color: #fff; border: 2px solid #dbdbdb; border-radius: 50%; }
.status { font-weight: bold; font-size: 16px; color: #00416B; }
.timestamp { color: #555; font-size: 14px; }

/* small accessibility improvement for focus outlines */
:focus { outline: none; }

