@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

main {
  width: 100%;
  background-color: #fff;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

header{
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
}
.navbar{
  width: 100%;
}
#logo{
  width: 200px;
  height: 80px;
  display: flex;
  margin-right: 50px;
  justify-content: start;
  align-items: center;
}
#logo img{
  width: 70%;
  height: 70%;
  margin-left: 70px;
  cursor: pointer;
} 
.navegation{
  width: 70%;
  margin: auto;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.navegation a{
  color: #003334;
}
.login{
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  width: 80px;
  height: 40px;
  background-color: #00BFFF;
  text-align: center;
  margin-left: 100px  ;
}
.login a{
  color: white;
}
.conteudo {
  max-width: 100%px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 20px;
}
.secao-carro {
  grid-column: 1;
  text-align: center;
  margin-bottom: 20px;
}
.imagem-carro {
  width: 100%;
  max-width: 220px;
  margin-bottom: 10px;
}
.tipo-carro {
  font-size: 16px;
  color: #666;
  margin-bottom: 4px;
}
.nome-carro {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}
/* Card de aluguel */
.cartao-aluguel {
  grid-column: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.secao {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}
/* Títulos de seções com cor azul */
.titulo-retirada, .titulo-devolucao, .titulo-diaria, .titulo-protecao {
  color: #00b0f0;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}
.titulo-autorizacao {
  color: #00b0f0;
  font-size: 14px;
  margin-bottom: 8px;
}
.dados-secao {
  font-size: 14px;
  margin-bottom: 2px;
}
.linha {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 14px;
}
.coluna {
  flex: 1;
}
.coluna-direita {
  flex: 1;
  text-align: right;
}
.secao-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background-color: #00b0f0;
  color: white;
}
.rotulo-total {
  font-size: 14px;
  font-weight: 400;
}
.valor-total {
  font-size: 20px;
  font-weight: 600;
}

/*Formulario de pagamento*/

.modal {
  position: fixed;
  padding: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.25s ease-in-out, transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.modal-content {
  background-color: #fff;
  border-radius: 10px;
  width: 900px;
  height: 97%;
  overflow-y: auto;
  padding-bottom: 60px; /* Adiciona espaço para o botão */
}

.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1.0);
}

.modal h3 {
  width: 100%;
  height: 40px;
  font-size: 25px;
  text-align: center;
  background-color: #0088cc;
  color: #f5f5f5;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  margin: 0;
  padding: 10px 0;
  box-sizing: border-box;
}

.modal .dados-pessoais h2 {
  font-size: 23px;
  margin-bottom: 20px;
}

.dados-pessoais {
  width: 90%;
  margin: 30px auto 0;
  padding: 0;
}

input, select, button {
  border-radius: 5px;
}

/* Layout do formulário em duas colunas */
form {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.campo {
  margin-bottom: 1.5em;
  width: 48%;
}

.campo label {
  margin-bottom: 0.2em;
  display: block;
  font-size: 19px;
  width: 100%;
}

.campo input {
  padding: 0.5em;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.campo input:focus, .campo select:focus, .campo textarea:focus {
  background-color: #E0E0E0;
}

.botao {
  font-size: 1.2em;
  border: 0;
  padding: 0.5em 1.5em;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0088cc;
  color: white;
  cursor: pointer;
}

.check {
  display: inline-block;
  display: flex;
  width: 100%;
  flex-direction: column;
}

.check input {
  margin: 5px;
  flex-direction: column;
}
.check h2 {
  margin-bottom: 20px;
}

#hora {
  display: flex;
  margin-bottom: 10px;
  font-size: 20px;
  margin-top: 30px;
}

#opcoes {
  display: flex;
  margin-top: 15px;
  font-size: 20px;
}

.pagamento img {
  margin: 0px 0px 0px 10px;
}

.check label {
  border-radius: 5px;
}

.campo select:focus {
  background-color: #f0f0f0;
}

#voo {
  height: 30px;
}

.numero{
  display: flex;
  flex-direction: column;
  margin-top: 30px;
  font-size: 19px; 
}

.numero label {
  margin-bottom: 0.2em;
  display: block;
  font-size: 20px;
  width: 100%;
}

.numero input {
  padding: 0.5em;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.dados {
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  font-size: 20px;
  margin-bottom: 20px;
}

.cartao{
  display: flex;
  flex-direction: column;
  margin-top: 15px;
  font-size: 19px;
}

.cartao label {
  margin-bottom: 0.2em;
  display: block;
  font-size: 19px;
  width: 100%;
}

.cartao input {
  padding: 0.5em;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.credito {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 600px;
}

.cartao {
  border: 1px solid #000;
  padding: 15px;
  border-radius: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 90%;
}

.cartao input {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.termos {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: 15px;
}

.reserva {
  background-color: #00b0f0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.reserva:hover {
  background-color: #fff;
  color: #00b0f0;
}

.voltar {
  background-color: #0088cc;
  color: #ffffff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.voltar:hover {
  background-color: #fff;
  color: #0088cc;
}

.botao-formulario .reserva {
  margin-right: 590px;
}

.termos a {
  color: #000;
  font-size: 12px;
  text-decoration: none;
}

.termos label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.termos input {
  margin-right: 5px;
}

.botao-confirmar {
  background-color: #0088cc;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.botao-confirmar:hover{
  background-color: #fff;
  color: #0088cc;
}

.botao-voltar{
  background-color: #f5f5f5;
  color: #0088cc;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.botao-voltar:hover{
  background-color: #0088cc;
  color: #f5f5f5;
}

.secao-autorizacao {
  padding: 12px 16px;
  font-size: 12px;
  color: #666;
}
.secao-protecoes {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.secao-protecoes h2 {
  font-size: 20px;
  margin-bottom: 8px;
  margin-left: 25px;
}
.secao-protecoes p {
  font-size: 17px;
  color: #666;
  margin-bottom: 20px;
  margin-left: 25px;
}
.cartoes-protecao {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.cartao-protecao {
  flex: 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 16px;
  margin-left: 30px;
}
.cabecalho-protecao {
  margin-bottom: 15px;
}
.cabecalho-protecao h3 {
  font-size: 18px;
  color: #00b0f0;
  margin-bottom: 4px;
}
.preco-protecao {
  font-size: 14px;
  color: #666;
}
.recursos-protecao {
  margin-bottom: 20px;
}

.recurso-protecao {
  font-size: 17px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}
.recurso-protecao:before {
  position: absolute;
  left: 0;
  color: #00b0f0;
}
/* Botões específicos */
.botao-selecionar {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: 500;
  cursor: pointer;
}
.botao-selecionar {
  background-color: #00b0f0;
}

.secao-cores {
  width: 800px;
}
.secao-cores h2 {
  font-size: 20px;
  margin-bottom: 15px;
}
.opcoes-cores {
  display: flex;
  gap: 25px;
}
.opcao-cor{
  width: 420px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.opcao-cor {
  border: 2px solid transparent;
}
.imagem-cor {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer */

footer {
  background-color: #1E1E1E;
  color: white;
  width: 100%;
  height: 300px;
}

.banner {
  text-align: center;
  padding: 40px;
  color: white;
  font-size: 25px;
}

.footer-grupo {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding: 20px;
}

.footer-texto a {
  color: white;
  text-decoration: none;
  display: block;
  margin-bottom: 10px;
}

#central:hover{
  color: #0088cc;
}

#perguntas:hover {
  color: #0088cc;
}

.logo {
  position: absolute;
  margin-top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
}

.logo img {
  width: 130px;
  height: 80px;
  margin-right: 10px;
}

.social {
  position: absolute;
  top: 1060px;
  right: 70px;
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  * {
    font-size: 14px;
  }

  header {
    height: 300px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  #logo {
    width: 100px;
    height: auto;
    margin: 0;
  }

  #logo img {
    width: 80%;
    height: auto;
  }

  .navegation {
    width: 100%;
    flex-direction: column;
    height: auto;
    margin-top: 10px;
  }

  .navegation a {
    font-size: 14px;
    margin: 5px 0;
  }

  .conteudo {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .banner {
    margin-top: 100px;
  }

  .secao-carro,
  .cartao-aluguel {
    grid-column: auto;
    width: 100%;
  }

  .imagem-carro {
    max-width: 250px;
  }

  .modal-content {
    width: 90%;
    height: 90%;
    padding-bottom: 50px;
  }

  .campo {
    width: 100%;
  }

  .cartao {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 10px;
  }

  .credito {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .termos {
    align-items: flex-start;
  }

  .botao {
    font-size: 1em;
    padding: 10px;
    width: 90%;
    bottom: 10px;
  }

  .secao-cores {
    width: 100%;
  }

  .opcoes-cores {
    flex-direction: row;
    gap: 15px;
    align-items: center;
  }

  .opcao-cor {
    width: 30%;
  }

  footer {
    height: auto;
    padding: 20px 0;
    text-align: center;
  }

  .footer-grupo {
    flex-direction: column;
    gap: 20px;
  }

  .footer-texto a {
    font-size: 14px;
  }

  .social {
    top: 2100px;
  }
}
