/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* ===== ESTRUTURA GERAL ===== */
html {
  height: 100%;
}

body {
  min-height: 100%;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* ===== CABEÇALHO PRINCIPAL ===== */
header {
  background: #003366;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 1.5em;
}

/* ===== MENU SUPERIOR ===== */
nav {
  background: #0055aa;
  color: white;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

/* ===== BOTÕES DO MENU EM ABAS ===== */
nav button {
  flex: 1;
  padding: 12px;
  border: none;
  background: #0055aa;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

nav button:hover {
  background: #003366;
}

nav button.active {
  background: #002244;
  font-weight: bold;
}

/* ===== MENU ANTIGO EM LISTA ===== */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
  position: absolute;
  right: 20px;
  top: 12px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

nav ul li {
  margin: 5px 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s ease;
  display: inline-block;
}

nav ul li a:hover {
  background: #003366;
}

nav ul li a.active {
  background: #002244;
  color: #fff;
}

/* ===== CONTEÚDO DAS ABAS ===== */
.tab-content {
  padding: 20px;
  display: none;
}

.tab-content.active {
  display: block;
}

/* ===== CONTEÚDO GERAL ===== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
  overflow-x: auto;
}

/* ===== TÍTULOS ===== */
h1, h2, h3 {
  margin-bottom: 15px;
  color: #004080;
}

/* ===== PARÁGRAFOS E SEÇÕES ===== */
section p {
  margin-bottom: 15px;
}

/* ===== BOTÕES GERAIS ===== */
button {
  background: #004080;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #0059b3;
  transform: scale(1.02);
}

/* ===== INPUTS E SELECTS ===== */
input,
select {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background-color: #fdfdfd;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus {
  border-color: #0066cc;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 102, 204, 0.3);
}

/* ===== SELECT AVANÇADO ===== */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  cursor: pointer;
}

select:hover {
  border-color: #888;
}

select:focus {
  background-color: #fff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* ===== IFRAME ===== */
iframe {
  width: 100%;
  height: calc(100vh - 150px);
  border: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== RODAPÉ ===== */
footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid #ccc;
  background: #f8f9fa;
}

footer a {
  color: #004080;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin-top: 10px;
}

/* ===== AJUSTES ESPECÍFICOS ===== */
#opcoesVeiculo label {
  display: inline-block;
  margin-right: 15px;
}

#aviso {
  color: red;
  font-size: 18px;
  font-weight: bold;
  margin-top: 10px;
}

.pagina-texto{
    max-width:900px;
    margin:40px auto;
    line-height:1.6;
}


/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }

  nav button {
    flex: 100%;
  }

  nav ul {
    display: none;
    flex-direction: column;
    text-align: center;
    background: #004080;
    width: 100%;
    padding: 10px 0;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  nav ul li {
    margin: 10px 0;
  }

  iframe {
    height: calc(100vh - 190px);
  }
}
