* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Arial, sans-serif;
  background: #eef3fb;
  color: #0a2366;
}

.app {
  width: min(420px, 100%);
  min-height: 680px;
  padding: 22px;
  border-radius: 28px;
  background: #f7f8fa;
  box-shadow: 0 20px 55px rgba(7, 31, 91, 0.18);
}

.cabecalho {
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dce2ec;
}

.cabecalho h1 {
  margin: 0;
  font-size: 22px;
}

.cabecalho span {
  font-size: 13px;
  color: #687386;
}

.mensagem,
.painel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 18px rgba(21, 46, 96, 0.07);
}

.mensagem p {
  margin: 5px 0;
}

.painel h2 {
  margin-top: 0;
  font-size: 17px;
  margin-right: 60px;
}

.botao,
.opcao-onibus {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  cursor: pointer;
}

.principal {
  border: 0;
  background: #0b48d1;
  color: white;
  font-size: 16px;
}

.secundario {
  background: white;
  color: #17233a;
}

.opcao-onibus {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  background: white;
  color: #17233a;
}

.opcao-onibus:hover {
  border-color: #0b48d1;
  background: #f1f6ff;
}

.opcao-onibus span {
  color: #687386;
  font-size: 13px;
}

.oculto {
  display: none;
}

#resultado {
  font-weight: bold;
  text-align: center;
  color: #0b48d1;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  font-size: 15px;
}

.lista-cidades {
  display: flex;
  flex-direction: column;
}

.lista-cidades button {
  padding: 13px;
  border: 1px solid #e1e6ef;
  border-bottom: 0;
  background: white;
  text-align: left;
  cursor: pointer;
}

.lista-cidades button:first-child {
  border-radius: 10px 10px 0 0;
}

.lista-cidades button:last-child {
  border-bottom: 1px solid #e1e6ef;
  border-radius: 0 0 10px 10px;
}

.lista-cidades button:hover {
  background: #eaf2ff;
  color: #0b48d1;
}

.opcao-passagem {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: white;
  color: #17233a;
  text-align: left;
  cursor: pointer;
}

.opcao-passagem:hover {
  border-color: #0b48d1;
  background: #f1f6ff;
}

.opcao-passagem span {
  color: #687386;
  font-size: 13px;
}

.campo-data {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  background: white;
  color: #17233a;
  font-size: 16px;
}

.resumo-rota {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #f1f6ff;
  color: #0a2366;
}

.resumo-rota span {
  font-size: 13px;
  color: #687386;
}

.opcao-horario {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  background: white;
  color: #17233a;
  cursor: pointer;
}

.opcao-horario:hover {
  border-color: #0b48d1;
  background: #f1f6ff;
}

.opcao-horario strong {
  color: #0b48d1;
}

.controle-quantidade {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 28px 0 16px;
}

.controle-quantidade strong {
  min-width: 36px;
  text-align: center;
  font-size: 38px;
  color: #0b48d1;
}

.botao-quantidade {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #eaf2ff;
  color: #0b48d1;
  font-size: 28px;
  cursor: pointer;
}

.botao-quantidade:hover {
  background: #dce9ff;
}

.limite-passageiros {
  margin-bottom: 24px;
  text-align: center;
  color: #687386;
  font-size: 14px;
}

.resumo-dados {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resumo-dados p {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f5;
}

.resumo-dados p span {
  text-align: right;
  color: #253653;
}

.resumo-dados hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #d8dfeb;
}

.valor-total {
  padding-top: 8px;
  font-size: 18px;
  color: #0b48d1;
}

.opcao-pagamento {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: white;
  color: #17233a;
  text-align: left;
  cursor: pointer;
}

.opcao-pagamento:hover {
  border-color: #0b48d1;
  background: #f1f6ff;
}

.opcao-pagamento span {
  color: #687386;
  font-size: 13px;
}

.metodo-pagamento label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  color: #253653;
  font-size: 14px;
  font-weight: bold;
}

.metodo-pagamento select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 10px;
  background: white;
  font-size: 15px;
}

.campos-lado-a-lado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qr-simulado {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 20px auto;
  border: 8px solid #17233a;
  background:
    repeating-linear-gradient(
      45deg,
      #17233a 0,
      #17233a 8px,
      white 8px,
      white 16px
    );
  color: white;
  font-weight: bold;
  text-align: center;
}

.status-voucher {
  display: flex;
  justify-content: center;
  margin: 14px 0;
}

.status-voucher span {
  padding: 7px 18px;
  border-radius: 999px;
  background: #e3f7e9;
  color: #17783a;
  font-size: 14px;
  font-weight: bold;
}

.voucher-qr {
  width: 170px;
  height: 170px;
}

.voucher-dados {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.voucher-dados p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f5;
}

.voucher-dados span {
  text-align: right;
}

.aviso-voucher {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #fff8e5;
  color: #705516;
  font-size: 13px;
}

.aviso-voucher p {
  margin: 5px 0;
}

.resultado-validacao {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #f1f6ff;
}

.resultado-validacao p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0;
}

.status-embarque {
  display: flex;
  justify-content: center;
  margin: 14px 0 20px;
}

.status-embarque span {
  padding: 8px 20px;
  border-radius: 999px;
  background: #e3f7e9;
  color: #17783a;
  font-weight: bold;
}

.embarque-dados {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.embarque-dados p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf0f5;
}

.embarque-dados span {
  text-align: right;
}

.aviso-sucesso {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: #eaf8ee;
  color: #176f36;
  font-size: 13px;
}

.aviso-sucesso p {
  margin: 5px 0;
}

.linha-viagem,
.cartao-viagem,
.estado-vazio {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: #f8faff;
}

.linha-viagem strong,
.cartao-viagem strong {
  color: #0b48d1;
}

.linha-viagem span,
.cartao-viagem span {
  color: #4d5d77;
  font-size: 14px;
}

.opcao-tipo-viagem {
  width: 100%;
  padding: 14px;
  border: 1px solid #d8dfeb;
  border-radius: 11px;
  background: white;
  color: #17233a;
  cursor: pointer;
}

.opcao-tipo-viagem + .opcao-tipo-viagem {
  margin-top: 14px;
}