
/* =========================================================
   FREDELIN TURISMO
   passagem.css
   Página: Passagens Aéreas
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fb;
  color: #1f2937;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.painel-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding: 15px 4%;

  background: rgba(255, 255, 255, 0.97);

  border-bottom: 1px solid #e5e7eb;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);

  backdrop-filter: blur(12px);
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 280px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.circulo-logo {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 50%;

  background: #ffffff;

  border: 2px solid #e5e7eb;

  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.10);
}

.circulo-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.marca-texto h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #0f3d91;
}

.marca-texto p {
  margin-top: 2px;

  font-size: 0.72rem;
  font-weight: 500;

  color: #6b7280;
}


/* =========================================================
   NAVEGAÇÃO
   ========================================================= */

.painel-header nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;

  flex-wrap: wrap;
}

.painel-header nav > a {
  position: relative;

  padding: 9px 11px;

  border-radius: 8px;

  font-size: 0.84rem;
  font-weight: 600;

  color: #374151;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.painel-header nav > a:hover {
  color: #0f3d91;
  background: #eef4ff;
  transform: translateY(-1px);
}

.painel-header nav > a.ativo {
  color: #0f3d91;
  background: #eaf1ff;
}


/* =========================================================
   SELETOR DE IDIOMA
   ========================================================= */

.seletor-idioma {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-left: 6px;
}

.seletor-idioma label {
  font-size: 1rem;
}

.seletor-idioma select {
  min-width: 125px;

  padding: 8px 10px;

  border: 1px solid #d1d5db;
  border-radius: 8px;

  background: #ffffff;

  color: #374151;

  font-size: 0.78rem;
  font-weight: 500;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.seletor-idioma select:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 390px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #0b2e6f,
      #1556b0
    );
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(255, 255, 255, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(255, 255, 255, 0.10),
      transparent 30%
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(4, 25, 62, 0.65),
      rgba(10, 65, 140, 0.25)
    );
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(900px, 90%);

  text-align: center;

  color: #ffffff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;

  margin-bottom: 18px;

  padding: 8px 16px;

  border: 1px solid rgba(255, 255, 255, 0.28);

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(8px);

  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.hero-content h2 {
  margin-bottom: 15px;

  font-size: clamp(2rem, 5vw, 3.5rem);

  line-height: 1.15;

  font-weight: 800;
}

.hero-content p {
  max-width: 700px;

  margin: 0 auto;

  font-size: 1rem;

  color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   SEÇÕES
   ========================================================= */

.dados-passageiro,
.pesquisa,
.voos,
.informacoes {
  padding: 80px 0;
}

.pesquisa {
  background: #ffffff;
}

.voos {
  background: #f5f7fb;
}

.informacoes {
  background: #ffffff;
}


/* =========================================================
   TÍTULO DAS SEÇÕES
   ========================================================= */

.section-title {
  margin-bottom: 35px;

  text-align: center;
}

.section-title > span {
  display: inline-block;

  margin-bottom: 8px;

  color: #2563eb;

  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 1.5px;
}

.section-title h2 {
  margin-bottom: 10px;

  color: #111827;

  font-size: clamp(1.6rem, 3vw, 2.2rem);

  line-height: 1.25;

  font-weight: 800;
}

.section-title p {
  max-width: 720px;

  margin: 0 auto;

  color: #6b7280;

  font-size: 0.92rem;
}


/* =========================================================
   PASSAGEIRO
   ========================================================= */

.passageiro {
  margin-bottom: 25px;

  overflow: hidden;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.passageiro-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 24px;

  background: #f8fafc;

  border-bottom: 1px solid #e5e7eb;
}

.passageiro-header h3 {
  color: #0f3d91;

  font-size: 1rem;
  font-weight: 700;
}


/* =========================================================
   GRID PASSAGEIRO
   ========================================================= */

.grid-passageiro {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  padding: 25px;
}

.campo-total {
  grid-column: 1 / -1;
}


/* =========================================================
   CAMPOS
   ========================================================= */

.campo {
  display: flex;
  flex-direction: column;

  gap: 7px;
}

.campo label {
  color: #374151;

  font-size: 0.82rem;

  font-weight: 600;
}

.campo input,
.campo select {
  width: 100%;

  min-height: 48px;

  padding: 11px 14px;

  border: 1px solid #d1d5db;

  border-radius: 10px;

  background: #ffffff;

  color: #111827;

  font-size: 0.88rem;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.campo input::placeholder {
  color: #9ca3af;
}

.campo input:hover,
.campo select:hover {
  border-color: #9ca3af;
}

.campo input:focus,
.campo select:focus {
  border-color: #2563eb;

  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.12);
}

.campo small {
  color: #6b7280;

  font-size: 0.7rem;
}


/* =========================================================
   CAMPO OUTRA NACIONALIDADE
   ========================================================= */

.campo-outra-nacionalidade {
  grid-column: 1 / -1;

  padding: 15px;

  border: 1px dashed #93c5fd;

  border-radius: 10px;

  background: #eff6ff;
}

.campo-outra-nacionalidade[hidden] {
  display: none;
}


/* =========================================================
   BOTÃO ADICIONAR PASSAGEIRO
   ========================================================= */

.btn-adicionar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 5px;

  min-height: 48px;

  padding: 11px 20px;

  border: 1px solid #2563eb;

  border-radius: 10px;

  background: #ffffff;

  color: #2563eb;

  font-size: 0.86rem;

  font-weight: 700;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-adicionar:hover {
  background: #2563eb;

  color: #ffffff;

  transform: translateY(-2px);

  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.20);
}


/* =========================================================
   PESQUISA
   ========================================================= */

.grid-pesquisa {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 20px;

  padding: 30px;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  background: #f8fafc;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05);
}


/* =========================================================
   INPUT IATA
   ========================================================= */

#origem,
#destino {
  text-transform: uppercase;

  font-weight: 700;

  letter-spacing: 1px;
}


/* =========================================================
   AVISO
   ========================================================= */

.aviso-pesquisa {
  display: flex;
  align-items: flex-start;

  gap: 12px;

  margin-top: 20px;

  padding: 15px 18px;

  border: 1px solid #bfdbfe;

  border-radius: 10px;

  background: #eff6ff;

  color: #1e40af;
}

.aviso-pesquisa span {
  flex-shrink: 0;

  font-size: 1.1rem;
}

.aviso-pesquisa p {
  font-size: 0.78rem;

  line-height: 1.6;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.acoes-pesquisa {
  display: flex;
  justify-content: center;

  margin-top: 28px;
}

.btn-pesquisar {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;
  min-height: 52px;

  padding: 12px 25px;

  border: 0;

  border-radius: 12px;

  background: #0f3d91;

  color: #ffffff;

  font-size: 0.9rem;

  font-weight: 700;

  box-shadow:
    0 8px 20px rgba(15, 61, 145, 0.22);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-pesquisar:hover {
  background: #0b2e6f;

  transform: translateY(-2px);

  box-shadow:
    0 12px 25px rgba(15, 61, 145, 0.28);
}

.btn-pesquisar:active {
  transform: translateY(0);
}

.btn-pesquisar:disabled {
  cursor: not-allowed;

  opacity: 0.65;

  transform: none;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

.cards {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;
}


/* =========================================================
   CARD DE VOO
   ========================================================= */

.card-voo {
  position: relative;

  overflow: hidden;

  padding: 24px;

  border: 1px solid #e5e7eb;

  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.06);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-voo:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 35px rgba(15, 23, 42, 0.10);
}


/* =========================================================
   CABEÇALHO CARD
   ========================================================= */

.card-voo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 20px;

  padding-bottom: 15px;

  border-bottom: 1px solid #eef0f3;
}

.companhia {
  color: #0f3d91;

  font-size: 0.88rem;

  font-weight: 700;
}

.numero-voo {
  color: #6b7280;

  font-size: 0.72rem;
}


/* =========================================================
   HORÁRIOS
   ========================================================= */

.horarios-voo {
  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 15px;

  margin-bottom: 20px;
}

.aeroporto {
  display: flex;
  flex-direction: column;
}

.aeroporto:last-child {
  text-align: right;
}

.codigo-aeroporto {
  color: #111827;

  font-size: 1.55rem;

  font-weight: 800;
}

.horario {
  color: #374151;

  font-size: 0.9rem;

  font-weight: 600;
}

.cidade-aeroporto {
  color: #6b7280;

  font-size: 0.7rem;
}

.linha-voo {
  position: relative;

  min-width: 80px;

  height: 2px;

  background: #dbeafe;
}

.linha-voo::after {
  content: "✈";

  position: absolute;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  padding: 5px;

  background: #ffffff;

  color: #2563eb;

  font-size: 1rem;
}


/* =========================================================
   DETALHES DO VOO
   ========================================================= */

.detalhes-voo {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 20px;
}

.detalhe-voo {
  padding: 6px 10px;

  border-radius: 7px;

  background: #f3f4f6;

  color: #4b5563;

  font-size: 0.68rem;

  font-weight: 600;
}


/* =========================================================
   PREÇO
   ========================================================= */

.preco-voo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 15px;

  padding-top: 15px;

  border-top: 1px solid #eef0f3;
}

.preco-label {
  color: #6b7280;

  font-size: 0.68rem;
}

.preco-valor {
  color: #0f3d91;

  font-size: 1.35rem;

  font-weight: 800;
}

.btn-selecionar-voo {
  min-height: 42px;

  padding: 9px 15px;

  border: 0;

  border-radius: 9px;

  background: #2563eb;

  color: #ffffff;

  font-size: 0.76rem;

  font-weight: 700;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-selecionar-voo:hover {
  background: #1d4ed8;

  transform: translateY(-1px);
}


/* =========================================================
   LOADING
   ========================================================= */

.loading-voos {
  display: flex;

  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 15px;

  min-height: 220px;

  padding: 30px;

  color: #6b7280;

  text-align: center;
}

.spinner {
  width: 45px;
  height: 45px;

  border: 4px solid #dbeafe;

  border-top-color: #2563eb;

  border-radius: 50%;

  animation:
    girar 0.8s linear infinite;
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

.loading-voos p {
  font-size: 0.85rem;

  font-weight: 600;
}


/* =========================================================
   SEM RESULTADOS
   ========================================================= */

.sem-resultados {
  margin-top: 25px;

  padding: 45px 25px;

  border: 1px dashed #d1d5db;

  border-radius: 15px;

  background: #ffffff;

  text-align: center;
}

.sem-resultados h3 {
  margin-bottom: 8px;

  color: #374151;

  font-size: 1rem;
}

.sem-resultados p {
  color: #6b7280;

  font-size: 0.82rem;
}


/* =========================================================
   INFORMAÇÕES
   ========================================================= */

.info-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.info-card {
  padding: 30px 25px;

  border: 1px solid #e5e7eb;

  border-radius: 16px;

  background: #ffffff;

  text-align: center;

  box-shadow:
    0 8px 25px rgba(15, 23, 42, 0.05);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.info-card:hover {
  transform: translateY(-4px);

  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.09);
}

.info-icone {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 55px;
  height: 55px;

  margin: 0 auto 15px;

  border-radius: 50%;

  background: #eff6ff;

  font-size: 1.35rem;
}

.info-card h3 {
  margin-bottom: 8px;

  color: #111827;

  font-size: 0.95rem;

  font-weight: 700;
}

.info-card p {
  color: #6b7280;

  font-size: 0.76rem;

  line-height: 1.7;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  padding: 45px 0;

  background: #0b1730;

  color: #ffffff;
}

.footer-container {
  display: grid;

  grid-template-columns:
    1fr 1fr 1fr;

  gap: 35px;

  align-items: start;
}

.footer h3 {
  margin-bottom: 10px;

  font-size: 1rem;

  font-weight: 800;
}

.footer p {
  margin-bottom: 7px;

  color: rgba(255, 255, 255, 0.68);

  font-size: 0.72rem;
}

.links-footer {
  display: flex;

  flex-direction: column;

  gap: 7px;
}

.links-footer a {
  color: rgba(255, 255, 255, 0.72);

  font-size: 0.72rem;

  transition:
    color 0.25s ease;
}

.links-footer a:hover {
  color: #ffffff;
}


/* =========================================================
   WHATSAPP
   ========================================================= */

.whatsapp-flutuante {
  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 2000;

  width: 58px;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #25d366;

  color: #ffffff;

  font-size: 1.55rem;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.20);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.whatsapp-flutuante:hover {
  transform: scale(1.08);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   VALIDAÇÃO
   ========================================================= */

.campo input:invalid:not(:placeholder-shown),
.campo select:invalid {
  border-color: #d1d5db;
}

.campo input:focus:invalid {
  border-color: #f59e0b;

  box-shadow:
    0 0 0 3px rgba(245, 158, 11, 0.12);
}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 1100px) {

  .painel-header {
    flex-direction: column;

    align-items: stretch;

    gap: 15px;
  }

  .logo-area {
    justify-content: center;
  }

  .painel-header nav {
    justify-content: center;
  }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

  .grid-passageiro,
  .grid-pesquisa {
    grid-template-columns: 1fr;
  }

  .campo-total,
  .campo-outra-nacionalidade {
    grid-column: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;

    text-align: center;
  }

  .links-footer {
    align-items: center;
  }

  .hero {
    min-height: 340px;
  }

}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 600px) {

  .painel-header {
    position: relative;

    padding: 12px 4%;
  }

  .logo-area {
    min-width: 0;

    flex-direction: column;

    text-align: center;
  }

  .marca-texto h1 {
    font-size: 1rem;
  }

  .marca-texto p {
    font-size: 0.65rem;
  }

  .painel-header nav {
    flex-direction: column;

    width: 100%;
  }

  .painel-header nav > a {
    width: 100%;

    text-align: center;
  }

  .seletor-idioma {
    width: 100%;

    justify-content: center;

    margin: 5px 0 0;
  }

  .seletor-idioma select {
    width: 180px;
  }

  .hero {
    min-height: 300px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.82rem;
  }

  .dados-passageiro,
  .pesquisa,
  .voos,
  .informacoes {
    padding: 55px 0;
  }

  .grid-passageiro,
  .grid-pesquisa {
    padding: 20px;

    gap: 16px;
  }

  .passageiro-header {
    padding: 15px 18px;
  }

  .campo input,
  .campo select {
    min-height: 46px;
  }

  .btn-adicionar,
  .btn-pesquisar {
    width: 100%;
  }

  .acoes-pesquisa {
    width: 100%;
  }

  .horarios-voo {
    gap: 8px;
  }

  .codigo-aeroporto {
    font-size: 1.25rem;
  }

  .linha-voo {
    min-width: 50px;
  }

  .preco-voo {
    flex-direction: column;

    align-items: stretch;
  }

  .btn-selecionar-voo {
    width: 100%;
  }

  .whatsapp-flutuante {
    right: 15px;
    bottom: 15px;

    width: 52px;
    height: 52px;
  }

}


/* =========================================================
   CELULARES PEQUENOS
   ========================================================= */

@media (max-width: 380px) {

  .hero-content h2 {
    font-size: 1.7rem;
  }

  .section-title h2 {
    font-size: 1.45rem;
  }

  .grid-passageiro,
  .grid-pesquisa {
    padding: 15px;
  }

  .card-voo {
    padding: 18px;
  }

}


/* =========================================================
   ACESSIBILIDADE
   ========================================================= */

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);

  outline-offset: 3px;
}


/* =========================================================
   REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

/* Corrige o carregamento infinito na pesquisa de voos */
.loading-voos[hidden] {
    display: none !important;
}
