/* Estilos Globais e Cores Infratrack */
body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  background-color: #ffffff;
  overflow: auto;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vh-100 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.text-danger {
  color: #dc3545 !important; /* Vermelho Infratrack */
}

.header-infratrack {
  background-color: #ffffff;
  color: white;
  align-items: normal;
  position: relative;
  width: 100%;
  z-index: 1030;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.1);
}

.nav-item .nav-link {
  font-family: 'Poppins', sans-serif;;
  font-weight: 550;
}

/* Conteúdo Principal */
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.container-fluid {
  flex: 1;
  display: flex;
  flex-direction: column;
}

nav .container-fluid {
  display: flex;
  flex-direction: row;
}

.text-section h2 {
  color: #343a40; /* Cinza escuro para títulos */
}

.text-section .lead {
  font-size: 1.15rem;
}

.roi-highlights p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.roi-highlights i {
  margin-right: 8px;
}

/* Seção do Formulário */
.form-section .calculator-box {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  animation: fadeInScale 0.8s ease-out;
}

.form-section h3 {
  color: #dc3545; /* Vermelho Infratrack */
}

.main-cta {
  background-color: #dc3545; /* Vermelho Infratrack */
  border-color: #dc3545;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-cta:hover {
  background-color: #c82333; /* Vermelho mais escuro no hover */
  border-color: #c82333;
  transform: translateY(-2px);
}

/* Rodapé */
.footer-infratrack {
  background-color: #343a40;
  color: #adb5bd;
  width: 100%;
  margin-top: auto;
}

.footer-infratrack a {
  color: #f8f9fa; /* Branco para links no rodapé */
  transition: color 0.3s ease;
}

.footer-infratrack a:hover {
  color: #28a745; /* Verde Infratrack no hover */
}

/* Modal */
.modal-header-infratrack {
  background-color: #343a40;
  color: white;
}

.modal-title {
  font-weight: bold;
}

.stat-card {
  border: 1px solid #eee;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.modal-footer .btn-success {
  background-color: #28a745;
  border-color: #28a745;
}

.modal-footer .btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.modal-footer .btn-outline-success {
  color: #28a745;
  border-color: #28a745;
}

.modal-footer .btn-outline-success:hover {
  background-color: #28a745;
  color: white;
}

/* Animações */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.text-section h2,
.text-section .lead,
.text-section p,
.roi-highlights p {
  animation: slideInFromLeft 0.7s ease-out forwards;
  opacity: 0;
}

.text-section h2 { animation-delay: 0.2s; }
.text-section .lead { animation-delay: 0.4s; }
.text-section p:nth-of-type(2) { animation-delay: 0.6s; } /* Segundo parágrafo */
.roi-highlights p:nth-child(1) { animation-delay: 0.8s; }
.roi-highlights p:nth-child(2) { animation-delay: 0.9s; }
.roi-highlights p:nth-child(3) { animation-delay: 1.0s; }
.roi-highlights p:nth-child(4) { animation-delay: 1.1s; }

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Ajustes para manter o layout em uma única tela sem scroll vertical excessivo */
@media (max-height: 700px) {
  .text-section .lead, .text-section p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  .roi-highlights p {
    font-size: 0.85rem;
  }
  .form-section .calculator-box {
    padding: 1.5rem !important;
  }
  .main-cta {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  main {
    padding-top: 60px;
    padding-bottom: 50px;
  }
}

/* Responsividade adicional se necessário */
@media (max-width: 991.98px) { /* Abaixo de LG, quando o layout empilha */
  body {
    overflow-y: auto; /* Permite scroll em telas menores onde o conteúdo pode exceder */
  }
  main {
    padding-top: 20px; /* Reduzido para não compensar mais o header fixo */
    padding-bottom: 20px; /* Reduzido para não compensar mais o footer fixo */
    align-items: flex-start; /* Alinha ao topo para melhor visualização do scroll */
  }
  .text-section {
    margin-bottom: 2rem;
    text-align: center;
  }
  .roi-highlights {
    display: inline-block; /* Centraliza os highlights */
    text-align: left;
  }
}

/* Estilos do Modal de Solicitação */
#requestModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

#requestModal .modal-header-infratrack {
  border-radius: 15px 15px 0 0;
  padding: 1.5rem;
  background-color: #343a40;
}

#requestModal .modal-title {
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

#requestModal .modal-body {
  padding: 2rem;
}

#requestModal .form-control {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

#requestModal .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

#requestModal .form-label {
  color: #495057;
  margin-bottom: 0.5rem;
}

#requestModal .btn-primary {
  background-color: #dc3545;
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#requestModal .btn-primary:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

