/* ===== Reset ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* ===== Estrutura base ===== */
body {
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center; /* centraliza no desktop */
  padding: 20px;
}

/* ===== Container do formulário ===== */
.container-simulador {
  max-width: 500px;
  width: 100%;
  background: linear-gradient(135deg, #fff, #f9f9f9);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
}

/* ===== Header ===== */
/* ===== Header alinhado ===== */
.topo-empresa {
  display: flex;
  justify-content: center;     /* centraliza horizontalmente */
  align-items: center;         /* centraliza verticalmente */
  gap: 30px;                   /* espaço entre logo e linha */
  background-color: black;
  padding: 16px;
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  flex-wrap: wrap;             /* evita quebra feia no mobile */
}

.logo-empresa {
  max-height: 130px;           /* tamanho uniforme */
  height: auto;
  width: auto;
  object-fit: contain;
}

.linha-divisoria {
  width: 2px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
}

/* Ajustes para telas menores */
@media (max-width: 480px) {
  .topo-empresa {
    gap: 16px;
  }
  .logo-empresa {
    max-height: 130px;
  }
  .linha-divisoria {
    height: 40px;
  }
}


/* ===== Textos ===== */
h1 {
  color: #b30000;
  margin-bottom: 10px;
  text-transform: uppercase;
}
p {
  color: #555;
  font-size: 15px;
  margin-bottom: 20px;
}

/* ===== Formulário ===== */
label {
  display: block;
  text-align: left;
  font-weight: bold;
  margin-top: 10px;
  color: #b30000;
}
input, select {
  width: 100%;
  height: 48px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #999;
  border-radius: 10px;
  margin: 8px 0 16px;
}
input:focus, select:focus {
  border-color: #ff0000;
  box-shadow: 0 0 8px rgba(179,0,0,0.5);
  outline: none;
}

/* ===== Botão animado ===== */
#simularBtn {
  position: relative;
  background-color: #007bff;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

#simularBtn:hover {
  transform: scale(1.03);
}

/* Reflexo */
#simularBtn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transform: rotate(25deg);
  animation: brilho 2.5s infinite;
  pointer-events: none;
}

@keyframes brilho {
  0% {
    transform: translateX(-100%) rotate(25deg);
  }
  100% {
    transform: translateX(100%) rotate(25deg);
  }
}


/* ===== Footer ===== */
.footer-simulador {
  margin-top: 20px;
  font-size: 14px;
  color: #777;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  main {
    align-items: flex-start;
  }
  .container-simulador {
    margin-top: 20px;
    padding: 20px;
    border-radius: 16px;
  }
}
@media (max-width: 480px) {
  .logo-empresa {
    max-height: 80px;
  }
  h1 { font-size: 20px; }
  p, label, input, select, #simularBtn {
    font-size: 14px;
  }
}
