/* ==========================================================================
   JADLOG OFICIAL THEME (https://www.jadlog.com.br/)
   Identidade Visual: Vermelho Jadlog (#DC0032), DPD Group, Preto (#1D1D1B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --jadlog-red: #DC0032;
  --jadlog-red-hover: #B30027;
  --jadlog-red-active: #8A001E;
  --jadlog-red-light: #FDF2F4;
  --jadlog-dark: #1D1D1B;
  --jadlog-gray-bg: #F5F6F8;
  --jadlog-gray-border: #E5E7EB;
  --jadlog-text-muted: #64748B;
  
  /* Sobrescrevendo variáveis antigas */
  --cor-azul-correios: #DC0032 !important;
  --cor-azul-claro: #DC0032 !important;
  --cor-amarelo-correios: #DC0032 !important;
  --navy: #1D1D1B !important;
  --warning: #DC0032 !important;
  --warning-foreground: #1D1D1B !important;
  --warning-icon: #DC0032 !important;
  --warning-surface: #FFFFFF !important;
  --bg-header: #FFFFFF !important;
  --primary: #DC0032 !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: #F5F6F8 !important;
  color: #1D1D1B !important;
}

/* ==========================================================================
   HEADER / MENU
   ========================================================================== */
#menu, header.bg-header, .jadlog-header {
  background: #FFFFFF !important;
  border-bottom: 2px solid #DC0032 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 20px !important;
  height: 68px !important;
  position: relative !important;
  z-index: 100 !important;
}

#menu .logo, .jadlog-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  height: 44px !important;
  width: 175px !important;
  background: url('../images/jadlog-logo.svg') no-repeat left center !important;
  background-size: contain !important;
  text-decoration: none !important;
}

#menu .hamburger {
  border-color: #1D1D1B !important;
}

#menu .entrar {
  background: #DC0032 !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: background 0.2s ease !important;
}

#menu .entrar:hover {
  background: #B30027 !important;
}

/* ==========================================================================
   BREADCRUMB / TRILHA
   ========================================================================== */
#trilha, nav[aria-label="breadcrumb"] {
  font-size: 0.85rem !important;
  color: #64748B !important;
  margin: 1rem 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#trilha a {
  color: #DC0032 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

#trilha a:hover {
  text-decoration: underline !important;
}

#trilha a:last-child {
  color: #1D1D1B !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   TÍTULOS & CABEÇALHOS
   ========================================================================== */
#titulo-pagina h3, .idx-titulo h3, .enc-titulo h3, .pay-titulo h3 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #1D1D1B !important;
  letter-spacing: -0.3px !important;
}

.enc-codigo, .pay-badge {
  background: #FDF2F4 !important;
  color: #DC0032 !important;
  border: 1px solid #FECDD3 !important;
  font-weight: 700 !important;
  font-family: monospace !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
}

/* ==========================================================================
   ALERTAS / CARDS DE AVISO
   ========================================================================== */
.idx-alerta, .enc-alerta, .pay-alerta, section.border-warning {
  background: #FFFFFF !important;
  border: 1px solid #FECDD3 !important;
  border-left: 5px solid #DC0032 !important;
  border-radius: 8px !important;
  padding: 1rem 1.25rem !important;
  box-shadow: 0 4px 14px rgba(220, 0, 50, 0.06) !important;
  color: #1D1D1B !important;
}

.idx-alerta strong, .enc-alerta strong, .pay-alerta strong {
  color: #DC0032 !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
}

.idx-ico, .enc-ico, .pay-ico-warn, svg.fill-warning-icon {
  color: #DC0032 !important;
  fill: #DC0032 !important;
}

/* ==========================================================================
   CARDS / JUMBOTRON
   ========================================================================== */
.jumbotron, .idx-card, .enc-card, .pay-card, section.bg-panel {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 10px !important;
  padding: 1.75rem 1.5rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

.idx-card-titulo, .enc-card-titulo, .pay-card-titulo {
  color: #1D1D1B !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #DC0032 !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  display: inline-block !important;
}

/* ==========================================================================
   BOTÕES OFICIAIS JADLOG
   ========================================================================== */
.btn-primary, .botao-principal, .idx-btn, .pay-btn, a.bg-action, button#btnConsultar, button#btnPagarTaxa, button#btnConfirmar, button#btnEntrar {
  background: #DC0032 !important;
  border: 1px solid #DC0032 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 4px 14px rgba(220, 0, 50, 0.3) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-primary:hover, .botao-principal:hover, .idx-btn:hover, .pay-btn:hover, a.bg-action:hover, button#btnConsultar:hover, button#btnPagarTaxa:hover, button#btnConfirmar:hover, button#btnEntrar:hover {
  background: #B30027 !important;
  border-color: #B30027 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(220, 0, 50, 0.4) !important;
}

.btn-primary:disabled, .botao-principal:disabled, button:disabled {
  background: #9CA3AF !important;
  border-color: #9CA3AF !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   INPUTS & FORMULÁRIOS
   ========================================================================== */
input[type="text"], input[type="email"], input[type="tel"] {
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  font-size: 1rem !important;
  color: #1D1D1B !important;
  background: #FFFFFF !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
  border-color: #DC0032 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(220, 0, 50, 0.15) !important;
}

/* ==========================================================================
   PACOTE RETIDO / ETIQUETA
   ========================================================================== */
.enc-pacote-tag {
  background: #DC0032 !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  border-radius: 4px !important;
}

/* ==========================================================================
   RODAPÉ OFICIAL JADLOG
   ========================================================================== */
#rodape, footer, footer.bg-footer-bg {
  background: #1A1A1A !important;
  color: #9CA3AF !important;
  border-top: 3px solid #DC0032 !important;
  padding: 40px 20px 24px !important;
  margin-top: 50px !important;
}

#rodape h2, footer h2, footer .text-footer-heading {
  color: #FFFFFF !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-bottom: 14px !important;
}

#rodape a, footer a, footer .text-footer-link {
  color: #D1D5DB !important;
  font-size: 0.85rem !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

#rodape a:hover, footer a:hover {
  color: #DC0032 !important;
}

#rodape .copyright, footer .copyright {
  border-top: 1px solid #2E2E2E !important;
  margin-top: 24px !important;
  padding-top: 18px !important;
  text-align: center !important;
  color: #71717A !important;
  font-size: 0.8rem !important;
}

/* Remove gov tag antiga dos Correios */
.marca-gov {
  display: none !important;
}

/* ==========================================================================
   SEGURANÇA & BADGES
   ========================================================================== */
.idx-seguro, .text-subtle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #64748B !important;
  font-size: 0.85rem !important;
  margin-top: 14px !important;
}

.idx-seguro svg, .text-subtle svg {
  color: #10B981 !important;
}


/* ==========================================================================
   ENCOMENDA JADLOG & ETIQUETA DINÂMICA
   ========================================================================== */
.enc-pacote-frame {
  position: relative !important;
  background: #ECEFF2 !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 8px !important;
  display: block !important;
  overflow: hidden !important;
  container-type: inline-size !important;
}

.enc-pacote-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.enc-etq-nome, .enc-etq-cpf {
  position: absolute !important;
  z-index: 10 !important;
  white-space: nowrap !important;
  font-family: 'Caveat', cursive, -apple-system, sans-serif !important;
  color: #1e3a5f !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  pointer-events: none !important;
  opacity: 0.94 !important;
  mix-blend-mode: multiply !important;
  transform-origin: left bottom !important;
}

.enc-etq-nome {
  left: 41.8% !important;
  top: auto !important;
  bottom: 52.3% !important;
  width: 38% !important;
  font-size: 2.75cqw !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  transform: rotate(0.4deg) scale(var(--etq-scale, 1)) !important;
}

.enc-etq-cpf {
  left: 30.8% !important;
  top: auto !important;
  bottom: 38.7% !important;
  width: 50% !important;
  font-size: 2.45cqw !important;
  letter-spacing: 0.8px !important;
  transform: rotate(0.3deg) !important;
}
