:root {
  --bg: #eef3f9;
  --bg-soft: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;

  --primary: #071431;
  --primary-2: #173b9d;
  --primary-3: #2450d1;

  --success: #16a34a;
  --danger: #dc2626;
  --warning: #b45309;
  --whatsapp: #25d366;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-top: 0 18px 50px rgba(7, 20, 49, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(36, 80, 209, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #c3bdb2 100%);
  color: var(--text);
}

/* =========================
   LAYOUT GLOBAL
========================= */

.app-shell,
.app {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
}

.page,
.container {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.page-consulta {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-consulta {
    max-width: 820px;
  }
}

/* =========================
   TOPO / HEADER
========================= */

.topbar,
.topo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgb(49 42 7 / 98%) 0%, rgb(115 123 18 / 96%) 55%, rgb(161 157 24 / 96%) 100%);
  color: #fff;
  box-shadow: var(--shadow-top);
  width:80%;
  margin:auto;
}

.topbar::before,
.topo::before {
  content: "";
  position: absolute;
  inset: -80px -120px auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.topbar > *,
.topo > * {
  position: relative;
  z-index: 1;
}

.topbar h1,
.topo h1 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.topbar p,
.topo p {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}

/* =========================
   MENU / LINKS
========================= */

.link-admin,
.btn-link-topo,
.topo a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  backdrop-filter: blur(10px);
  transition: 0.18s ease;
}

.link-admin:hover,
.btn-link-topo:hover,
.topo a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Suporte para menu hamburguer */
.app-menu {
  position: relative;
  z-index: 10;
}

.menu-toggle {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
  transition: 0.2s ease;
}

.menu-toggle {
  flex-direction: column;
  gap: 5px;
}

.nav-menu {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;

  display: none;
  flex-direction: column;
  gap: 10px;

  padding: 16px;

  background: rgba(7, 20, 49, 0.98);
  backdrop-filter: blur(10px);

  border-radius: 0 0 24px 24px;

  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  white-space: nowrap;
}

/* =========================
   CARDS
========================= */

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 228, 240, 0.95);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  margin: 0 0 10px;
}

.hero-card {
  padding: 26px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.muted,
.subtexto {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================
   FORMULÁRIOS
========================= */

.stack-lg,
.formulario {
  display: grid;
  gap: 16px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.actions-form {
  grid-column: 1 / -1;
}

.field,
.campo {
  display: grid;
  gap: 7px;
}

.field span,
.campo label {
  font-size: 0.93rem;
  font-weight: 800;
  color: #14213d;
}

.field input,
.field select,
.field textarea,
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fbff;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field input,
.field select,
.campo input,
.campo select {
  height: 52px;
  padding: 0 15px;
}

.field textarea,
.campo textarea {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: var(--primary-3);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(36, 80, 209, 0.12);
}

#tipoLocacao,
#dataInicioLocacao,
#dataFimLocacao {
  max-width: 100%;
}

/* =========================
   BOTÕES
========================= */

.btn {
  border: 0;
  border-radius: var(--radius-md);
  min-height: 50px;
  padding: 13px 18px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #00c122 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(7, 20, 49, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(7, 20, 49, 0.24);
}

.btn-secondary {
  background: #e8eef7;
  color: var(--text);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-inline {
  width: auto;
  min-height: 44px;
  padding: 10px 16px;
}

.btn-whatsapp {
  display: flex;
  width: 100%;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1fb956, var(--whatsapp));
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.24);
  transition: 0.18s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-1px);
}

/* =========================
   STATUS / MENSAGENS
========================= */

.status,
.mensagem {
  min-height: 22px;
  margin-top: 12px;
  font-weight: 800;
  font-size: 0.95rem;
}

.status.success,
.status.sucesso,
.mensagem.sucesso {
  color: var(--success);
}

.status.error,
.status.erro,
.mensagem.erro {
  color: var(--danger);
}

.status.info,
.mensagem.info {
  color: var(--warning);
}

.hidden {
  display: none !important;
}

/* =========================
   RESULTADOS / LISTAS
========================= */

.result-area,
.item-card,
.item-veiculo {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.empty-state,
.vazio {
  color: var(--muted);
  text-align: center;
  font-size: 0.98rem;
}

.result-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--primary-3);
}

.result-row,
.item-card p,
.item-veiculo p {
  margin: 0 0 8px;
  line-height: 1.35;
}

.item-card p:last-child,
.item-veiculo p:last-child {
  margin-bottom: 0;
}

.list-cards,
.lista-veiculos {
  display: grid;
  gap: 14px;
}

.item-actions,
.item-veiculo .acoes,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.item-veiculo .acoes .btn {
  flex: 1;
}

.panel-header,
.topo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* =========================
   LOGO
========================= */

.logo {
  padding-top: 18px;
  margin: auto;
  text-align: center;
  width: min(320px, 62%);
}

.imgLogo, .imgLogo2 {
  width: 60%;
  height: auto;
  display: block;
}
.imgLogo {  
  margin:auto;
}
/* =========================
   MODAL
========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.66);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
  backdrop-filter: blur(6px);
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.modal-box h2 {
  margin: 0 0 8px;
  color: var(--text);
}

.modal-box p {
  color: #334155;
  line-height: 1.45;
}

.resumo-envio {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin: 16px 0;
}

.resumo-envio p {
  margin: 0 0 7px;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

/* =========================
   FAQ
========================= */

.faq-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.faq-categoria {
  border: 1px solid var(--line);
  background: #f8fbff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
}

.faq-categoria:hover {
  transform: translateY(-1px);
}

.faq-categoria.ativa {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.faq-lista {
  display: grid;
  gap: 18px;
}

.faq-grupo h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #f8fbff;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 15px;
  cursor: pointer;
  font-weight: 900;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  padding: 0 15px 15px;
  color: #334155;
  line-height: 1.5;
}

/* =========================
   DESKTOP PROFISSIONAL
========================= */

@media (min-width: 1024px) {
  .app-shell,
  .app {
    padding: 34px;
  }

  .topbar,
  .topo {
    padding: 34px;
  }

  .page,
  .container {
    margin-top: 26px;
  }

  .card {
    padding: 28px;
  }

  .page-consulta {
    max-width: 860px;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
      linear-gradient(180deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 65%);
  }
}

/* =========================
   MOBILE APP STYLE
========================= */

@media (max-width: 720px) {
  body {
    background: #eef3f9;
  }

  .app-shell,
  .app {
    padding: 12px;
    max-width: 480px;
  }

  .topbar,
  .topo {
    align-items: flex-start;
    padding: 22px 18px;
    border-radius: 26px;
    min-height: 142px;
    width:95%;
    margin:auto;
  }

  .topbar h1,
  .topo h1 {
    font-size: 1.65rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(7, 20, 49, 0.96);
    box-shadow: 0 18px 40px rgba(7, 20, 49, 0.28);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a,
  .link-admin,
  .btn-link-topo,
  .topo a {
    width: 100%;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar > .link-admin {
    width: 100%;
  }

  .grid-form {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 24px;
    padding: 18px;
  }

  .hero-card {
    padding: 20px;
  }

  .panel-header,
  .topo-card {
    flex-direction: column;
    align-items: stretch;
  }

  .item-actions,
  .item-veiculo .acoes,
  .actions,
  .modal-actions {
    flex-direction: column;
  }

  .btn-inline {
    width: 100%;
  }

  .logo {
    width: 72%;
  }
}

@media (max-width: 390px) {
  .app-shell,
  .app {
    padding: 10px;
  }

  .card {
    padding: 16px;
  }

  .topbar,
  .topo {
    padding: 20px 16px;
  }
}

@media (max-width: 720px) {
  .topbar.menu-aberto,
  .topo.menu-aberto {
    padding-bottom: 260px;
  }

  .nav-menu {
    top: 86px;
    z-index: 50;
  }
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px;

  border-radius: 14px;

  text-decoration: none;
  font-weight: 800;
  font-size: 15px;

  color: #fff;

  background: rgba(255,255,255,0.08);

  transition: 0.2s;
}

.nav-menu a:hover {
  background: rgba(255,255,255,0.18);
}

.nav-menu a.link-admin {
  border: none !important;
  background: rgba(255,255,255,0.08) !important;
  backdrop-filter: none !important;
}

.menu-toggle {
  width: 48px;
  height: 48px;

  border-radius: 14px;
  border: none;

  background: rgba(255,255,255,0.15);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

/* =========================
   MENU PREMIUM (APP STYLE)
========================= */

.menu-toggle {
  position: absolute;
  left: 16px;
  top: 16px;

  width: 48px;
  height: 48px;

  border-radius: 14px;
  border: none;

  background: rgba(255,255,255,0.18);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

/* FUNDO ESCURO */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;
  z-index: 1000;
}

.menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* MENU LATERAL */
.menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: linear-gradient(180deg, #e3d361, #c88242);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 80px 16px 20px;
  transform: translateX(-100%);
  transition: 0.3s ease;
  z-index: 1001;
}

/* ABERTO */
.menu-drawer.open {
  transform: translateX(0);
}

/* LINKS */
.menu-drawer a {
  padding: 14px;
  border-radius: 14px;

  text-decoration: none;
  color: #fff;
  font-weight: 800;

  background: rgb(136 128 0 / 63%);
  transition: 0.2s;
}

.menu-drawer a:hover {
  background: rgba(255,255,255,0.18);
}

.topbar,
.topo {
  padding-left: 76px !important;
}

.menu-toggle {
  left: 18px !important;
  top: 18px !important;
}

@media (max-width: 720px) {
  .topbar,
  .topo {
    padding-left: 76px !important;
    min-height: 126px;
  }

  .topbar h1,
  .topo h1 {
    font-size: 23px;
    line-height: 1.1;
  }

  .topbar p,
  .topo p {
    font-size: 14px;
  }
}

.lista-documentos {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.doc-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 18px;
  border-radius: 18px;

  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #d8dfec;
}

.doc-card strong {
  font-size: 16px;
}

.doc-card p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.doc-actions {
  display: flex;
  gap: 10px;
}

.btn-doc {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.btn-doc.visualizar {
  background: #e8eef7;
  color: #0f172a;
}

.btn-doc.baixar {
  background: #071431;
  color: #fff;
}