/* ✅ CORREÇÃO: Variáveis CSS sincronizadas com landing.css */
:root {
  --primary-color: #f46f09;
  --bg-white: #ffffff;
  --font-size-sm: 15px;
  --font-family: Arial, sans-serif;
}

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

/* ✅ STICKY FOOTER: Configuração do body como flex container - SINCRONIZADO COM LANDING */
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

/* ✅ STICKY FOOTER: Container principal que cresce para empurrar footer - SINCRONIZADO COM LANDING */
body > *:not(footer) {
  flex: 0 0 auto !important;
}

/* ✅ CORREÇÃO: Footer sincronizado com landing.css para dimensões idênticas */
footer {
  background-color: #f18719 !important;
  color: var(--bg-white) !important;
  text-align: center !important;
  padding: 10px !important;
  margin-top: auto !important;
  font-size: var(--font-size-sm) !important; /* ✅ SINCRONIZADO: Mesmo font-size do landing */
  font-family: var(--font-family) !important; /* ✅ SINCRONIZADO: Mesma fonte do landing */
  /* Full width like header - SINCRONIZADO COM LANDING */
  position: relative !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: none !important;
  max-height: 70px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

footer p {
  margin: 0;
  font-weight: 400;
}

/* ✅ CORREÇÃO: Responsividade do footer sincronizada com landing.css */
@media (max-width: 768px) {
  footer {
    padding: 10px !important;
    margin-top: auto !important; /* ✅ SINCRONIZADO: Manter auto em vez de 20px */
  }
}

/* ✅ CORREÇÃO: Footer links styling sincronizado com landing.css */
.footer-links a {
  color: var(--bg-white) !important;
  text-decoration: none !important;
  margin: 0 5px !important;
  font-size: 14px !important; /* ✅ SINCRONIZADO: Reduzido de 16px para 14px como no landing */
  transition: color 0.2s !important;
  font-family: var(--font-family) !important; /* ✅ SINCRONIZADO: Mesma fonte do landing */
}
.footer-links a:hover {
  text-decoration: underline !important;
  color: var(--bg-white) !important;
}
.footer-copy {
  color: var(--bg-white) !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-family: var(--font-family) !important; /* ✅ SINCRONIZADO: Mesma fonte do landing */
}

/* Modal institutional styling - CENTRALIZAÇÃO ABSOLUTA */
.modal-bg {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
}

/* ✅ CENTRALIZAÇÃO ABSOLUTA: Método de posicionamento por coordenadas */
.modal-bg.modal-open {
  display: block !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  background: rgba(0,0,0,0.45) !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ✅ MODAL CONTENT: Centralização por coordenadas absolutas */
.modal-bg.modal-open .modal-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 999999 !important;
  margin: 0 !important;
}

.modal-content {
  background: #fff;
  padding: 32px 24px 20px 24px;
  border-radius: 10px;
  max-width: 700px; /* ✅ CORREÇÃO: Aumentar largura de 570px para 700px */
  width: 95vw;
  min-height: 320px;
  position: relative;
  text-align: justify;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modalAppear 0.25s;
  margin: 0 !important;
}

@keyframes modalAppear {
  from { transform: translate(-50%, -50%) translateY(30px) scale(0.97);}
  to { transform: translate(-50%, -50%) translateY(0) scale(1);}
}

.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 22px;
  color: #aaa;
  cursor: pointer;
  font-weight: bold;
}
.close:hover {
  color: var(--primary-color);
}

.modal-tabs {
  display: flex;
  gap: 0px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e2e2e2;
  overflow-x: auto;
  flex-wrap: nowrap; /* ✅ CORREÇÃO: Impede quebra de linha */
  justify-content: space-evenly;
}

.tab-btn {
  border: none;
  background: none;
  font-size: 1em;
  padding: 8px 16px 10px 16px; /* ✅ CORREÇÃO: Padding horizontal maior para melhor espaçamento */
  cursor: pointer;
  color: #444;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s, color 0.18s;
  outline: none;
  flex: none; /* ✅ CORREÇÃO: Remover flex:1 para permitir largura baseada no conteúdo */
  white-space: nowrap; /* ✅ CORREÇÃO: Impede quebra de texto */
  min-width: auto; /* ✅ CORREÇÃO: Largura automática baseada no conteúdo */
}
.tab-btn.active, .tab-btn:focus {
  border-bottom: 3px solid var(--primary-color);
  color: var(--primary-color);
  background: #f7f7f7;
}

.modal-tab-content {
  display: block;
  animation: fadeTab 0.15s;
}

@keyframes fadeTab {
  from {opacity: 0;}
  to {opacity: 1;}
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.30em;
  font-weight: 700;
  color: #0076bc;
}
.modal-content p {
  color: #222;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.fechar-modal-btn {
  background: #f5f5f5;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 6px 24px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  align-self: flex-end;
}
.fechar-modal-btn:hover {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Responsividade do modal e abas */
@media (max-width: 600px) {
  .modal-content {
    padding: 16px 4vw 12px 4vw;
  }
  .modal-tabs {
    font-size: 0.85em; /* ✅ CORREÇÃO: Reduzir mais a fonte em mobile */
    flex-wrap: nowrap; /* ✅ CORREÇÃO: Garantir no wrap em mobile */
  }
  .tab-btn {
    padding: 7px 5px 8px 5px; /* ✅ CORREÇÃO: Padding menor mas com largura variável */
    font-size: 1em; /* ✅ CORREÇÃO: Fonte menor em mobile */
    white-space: nowrap; /* ✅ CORREÇÃO: Garantir no wrap em mobile */
    flex: none; /* ✅ CORREÇÃO: Manter largura variável em mobile */
    min-width: auto; /* ✅ CORREÇÃO: Largura automática baseada no conteúdo */
  }
}

/* ==================== COOKIE NOTICE STYLES ==================== */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #666666;  /* Gray background from screenshot */
    color: white;
    padding: 10px 0px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    height: 70px !important;
    padding: 0px !important;
}

.cookie-notice.show {
    display: flex;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: white;
}

.cookie-content a {
    color: #f18719;  /* Orange link color matching site theme */
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #ff8533;
}

.cookie-btn {
    background: #202124;  /* Yellow button from screenshot */
    color: #f18719;  /* Black text on yellow button */
    border: none;
    padding: 5px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.cookie-btn:hover {
    background: #ffffff;  /* Slightly darker yellow on hover */
}

/* Mobile responsiveness for cookie notice */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cookie-content p {
        font-size: 13px;
    }
}
