/* --- ESTILO GERAL DA PÁGINA ENTREGAS --- */

body {
  background-color: #f9f9f9;
  font-family: 'Open Sans', sans-serif;
  color: #333;
  line-height: 1.6;
}

/* Cabeçalho (Padrão das outras páginas) */
header {
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.logo1 {
  height: 50px;
  width: auto;
}

/* Botão Voltar */
.button {
  background-color: #F58220;
  color: white;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.3s ease;
}

.button:hover {
  background-color: #e07010;
}

/* --- CONTEÚDO PRINCIPAL --- */
main.entregas {
  width: 90%;
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

#devolucao-info h2, #processo-entrega h2 {
  color: #F58220;
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
  font-weight: 800;
  padding-top: 30px;
}

#devolucao-info h2:first-of-type {
  margin-top: 0;
}

#devolucao-info p {
  font-size: 16px;
  color: #555;
  text-align: justify;
}

/* --- TIMELINE (LINHA DO TEMPO) - DESKTOP --- */

#processo-entrega {
  margin-top: 60px;
  padding-bottom: 20px;
}

.timeline-container-horizontal {
  display: flex; /* Coloca tudo lado a lado */
  justify-content: space-between;
  align-items: center; /* Alinha verticalmente pelo centro */
  position: relative;
  width: 100%;
  margin-top: 40px;
}

/* Passos (Bolinha + Texto) */
.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 120px; /* Largura fixa para o texto não espalhar */
  position: relative;
  z-index: 2; /* Fica acima da linha */
  
  /* Estado inicial da animação (invisível) */
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.timeline-step.animate {
  opacity: 1;
  transform: translateY(0);
}

/* O Círculo do Ícone */
.icon-circle {
  width: 60px;
  height: 60px;
  background-color: white;
  border: 3px solid #F58220;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  color: #F58220;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Quando anima, o círculo fica laranja cheio */
.timeline-step.animate .icon-circle {
  background-color: #F58220;
  color: white;
  transform: scale(1.1);
}

.timeline-step p {
  font-size: 14px;
  font-weight: bold;
  color: #555;
  margin: 0;
  line-height: 1.2;
}

/* Linhas Conectoras (Desktop: Horizontais) */
.timeline-line {
  flex-grow: 1; /* Ocupa o espaço que sobrar entre os passos */
  height: 4px;
  background-color: #eee;
  margin: 0 -15px; /* Puxa um pouco para entrar debaixo da bolinha */
  margin-bottom: 25px; /* Alinha com o centro das bolinhas */
  z-index: 1; /* Animação da linha */
  transform: scaleX(0); /* Começa com largura zero */
  transform-origin: left;
  transition: transform 1s ease-in-out;
}

.timeline-line.animate {
  transform: scaleX(1); /* Cresce até preencher */
  background-color: #F58220; /* Fica laranja */
}


/* --- RESPONSIVIDADE E TIMELINE VERTICAL (MOBILE) --- */
@media (max-width: 768px) {
  
  main.entregas {
    width: 95%;
    padding: 30px 20px;
    margin: 20px auto;
  }

  /* Transforma a linha horizontal em COLUNA vertical */
  .timeline-container-horizontal {
    flex-direction: column;
    align-items: flex-start; /* Alinha tudo à esquerda */
    padding-left: 10px;
    margin-left: 50px;
  }

  /* Ajuste dos Passos para ficarem lado a lado (Ícone + Texto) */
  .timeline-step {
    flex-direction: row; /* Ícone na esquerda, Texto na direita */
    width: 100%;
    align-items: center;
    margin-bottom: 0; /* A linha vai dar o espaçamento */
    text-align: left;
  }

  .icon-circle {
    width: 50px;
    height: 50px;
    font-size: 20px;
    margin-bottom: 0;
    margin-right: 15px; /* Espaço entre ícone e texto */
    flex-shrink: 0; /* Impede o ícone de amassar */
  }

  .timeline-step p {
    font-size: 16px;
  }

  /* Ajuste das Linhas para virarem VERTICAIS */
  .timeline-line {
    width: 4px !important;      /* Vira uma linha fina vertical */
    height: 40px !important;    /* Altura fixa entre os passos */
    flex-grow: 0 !important;
    margin: 0 !important;       /* Remove margens negativas antigas */
    margin-left: 23px !important; /* Centraliza a linha com o ícone (50px/2 = 25px - 2px borda) */
    /* Ajuste da animação para vertical */
    transform: scaleY(0); 
    transform-origin: top;
    transition: transform 1s ease-in-out;
  }

  .timeline-line.animate {
    transform: scaleY(1);
  }
  
  .logo1 {
    height: 40px;
  }
}

@media (min-width: 769px) {

    /* Destrava a largura da barra apenas no computador */
    .navbar {
        width: 100% !important;
        /* Ocupa toda a tela */
        max-width: 100% !important;
        /* Remove o limite de 1200px/800px */
    }
}