/* Estilos Gerais */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

html {
  height: 100%;
  min-height: 100vh;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0a192f, #172a45);
  background-attachment: fixed;
  color: #DDDDDD; /* Cinza Neutro Cool Grey 1 C */
  overflow-y: auto;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}
body.menu-open{overflow:hidden}

/* Corrigir faixa branca no mobile: remover background-attachment fixed */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
  /* Garantir que sections e container não tenham background branco */
  section {
    background: transparent;
  }
  .container {
    background: transparent;
  }
}

/* Layout Principal */
.main-container {
  width: 100%;
  height: 100vh; /* Revertido para a altura fixa original */
  background: rgba(15, 39, 71, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 1rem 4rem;
}

/* Garante que o container na página de ajuda cresça com o conteúdo */
.help-page .main-container {
  min-height: 100vh;
  height: auto; /* Remove a altura fixa para permitir o crescimento */
}

.header {
  position: relative; /* Novo: para o contexto de posicionamento absoluto */
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Mantém o logo à esquerda */
  padding: 1rem 0;
}

.header-logo {
  height: 60px;
}

.header a {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.header a:hover {
  opacity: 0.8;
}

.header-title {
  position: absolute; /* Novo */
  left: 50%; /* Novo */
  transform: translateX(-50%); /* Novo: para centralizar perfeitamente */
  font-size: 1.5rem;
  color: #AAAAAA;
  font-weight: normal;
  letter-spacing: 1px;
}

.content {
  flex-grow: 1;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  padding: 1rem 0;
  overflow: hidden;
}

.footer {
  text-align: center;
  padding: 0.5rem 0;
  color: #AAAAAA; /* Cinza Neutro Cool Grey 5 C */
  font-size: 0.85rem;
  opacity: 0.9;
}

.footer strong {
  color: #0077CC; /* Azul Primário Reply */
  font-weight: 600;
}

/* Colunas */
.form-container {
  flex: 0 0 60%;
  overflow-y: auto;
  padding-right: 1rem;
}

.download-area {
  flex: 0 0 calc(40% - 3rem);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  border: 1px solid #0077CC; /* Azul Primário Reply */
  box-shadow: 0 0 20px rgba(0, 119, 204, 0.1); /* Brilho Azul Primário Reply */
  transition: all 0.3s ease;
}

.download-area h3 {
  text-align: center;
  margin-bottom: 15px;
  color: #0077CC; /* Azul Primário Reply */
}

/* Formulário */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #88CCEE; /* Azul Claro Comsysto */
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

input,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #0077CC; /* Azul Primário Reply */
  border-radius: 8px;
  background-color: #0a192f;
  color: #DDDDDD; /* Cinza Neutro Cool Grey 1 C */
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

input:focus,
select:focus {
  outline: none;
  border-color: #0077CC; /* Azul Primário Reply */
  box-shadow: 0 0 10px rgba(0, 119, 204, 0.3); /* Brilho Azul Primário Reply */
}

input::placeholder {
  color: #AAAAAA; /* Cinza Neutro Cool Grey 5 C */
}

button:not(.voucher-section button):not(.btn):not(.voucher-section .btn):not(.menu-toggle),
.download-button {
  width: 100%;
  padding: 12px;
  background-color: #0077CC; /* Azul Primário Reply */
  color: #FFFFFF; /* Texto branco no botão primário */
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s, transform 0.2s;
  margin-top: 1rem;
}

button:not(.menu-toggle):hover,
.download-button:hover {
  background-color: #88CCEE; /* Azul Claro Secundário */
  transform: translateY(-2px);
}

.download-button.secondary {
  background-color: #AAAAAA; /* Cinza Neutro Cool Grey 5 C */
  color: #0a192f; /* Cor de texto para o botão secundário */
  margin-top: 0.5rem; /* Espaçamento entre os botões */
}

.download-button.secondary:hover {
  background-color: #DDDDDD; /* Cinza Neutro Cool Grey 1 C */
  transform: translateY(-2px);
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Mensagens de Status */
.status {
  width: 100%;
  margin: 1.5rem 0 0;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.status.success {
  background-color: rgba(0, 153, 102, 0.1); /* Verde Secundário */
  border: 1px solid #009966; /* Verde Secundário */
  color: #009966; /* Verde Secundário */
  animation: fadeIn 0.5s ease-in-out;
}

.status.error {
  background-color: rgba(204, 51, 68, 0.1); /* Vermelho Secundário */
  border: 1px solid #CC3344; /* Vermelho Secundário */
  color: #CC3344; /* Vermelho Secundário */
  animation: shake 0.4s ease-in-out;
}

.status.loading {
  background-color: rgba(170, 170, 170, 0.1); /* Cinza Neutro Cool Grey 5 C */
  border: 1px solid #AAAAAA; /* Cinza Neutro Cool Grey 5 C */
  color: #DDDDDD; /* Cinza Neutro Cool Grey 1 C */
  position: relative;
}

.status.loading::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid #DDDDDD; /* Cinza Neutro Cool Grey 1 C */
  border-radius: 50%;
  border-top-color: transparent;
  margin-left: 10px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

/* Animações */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  50% {
    transform: translateX(5px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Responsivo */
@media (max-width: 1024px) {
  .main-container {
    padding: 1rem 2rem;
    height: auto;
    min-height: 100vh;
  }

  .content {
    flex-direction: column;
    overflow: visible;
  }

  .form-container,
  .download-area {
    flex-basis: auto;
    width: 100%;
  }

  body {
    overflow: auto;
  }
}

/* Correção para landscape mobile - documentacao.html */
@media (max-width: 1024px) and (orientation: landscape) {
  .main-container {
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
  }

  .content {
    overflow: visible !important;
    overflow-y: visible !important;
    flex: 1 1 auto;
  }

  .form-container {
    overflow-y: visible !important;
    overflow: visible !important;
  }

  body {
    overflow-y: auto !important;
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh;
  }
}

/* Correção adicional para landscape mobile com altura muito pequena */
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
  .main-container {
    height: auto !important;
    min-height: auto !important;
    padding: 0.5rem 1rem;
  }

  .content {
    overflow: visible !important;
    padding: 0.5rem 0;
  }

  body {
    overflow-y: auto !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

  /* Header em coluna e título centralizado APENAS na página de ajuda */
  body.help-page .header {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
  }

  body.help-page .header-title {
    position: static;
    transform: none;
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
  }
}

/* Ajustes específicos da página de documentação em mobile */
@media (max-width: 768px) {
  body.doc-page .header {
    flex-wrap: wrap;           /* permite quebrar para a linha de baixo */
  }

  body.doc-page .header-title {
    position: static;          /* remove posição absoluta */
    transform: none;
    width: 100%;               /* ocupa a linha inteira abaixo do logo */
    margin-top: 0.75rem;
    text-align: center;        /* centraliza o texto na linha */
  }
}

/* Estilos da Página de Ajuda e Links */
.help-link {
  text-align: right;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.help-link a {
  color: #AAAAAA;
  text-decoration: none;
}

.help-link a:hover {
  color: #DDDDDD;
  text-decoration: underline;
}

.instructions {
  list-style-position: inside;
  padding-left: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.instructions li {
  margin-bottom: 1rem;
}

.instructions a {
  color: #88CCEE;
  text-decoration: none;
}

.instructions a:hover {
  text-decoration: underline;
}

.instructions code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
}

.instructions .important {
  background-color: rgba(255, 221, 0, 0.1);
  border-left: 4px solid #FFDD00;
  padding: 0.8rem;
  border-radius: 4px;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #DDDDDD;
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

body.help-page {
  overflow: auto;
}

/* Estilos Específicos para a Página de Ajuda */
.help-page .content {
  flex-direction: column; /* Empilha os itens verticalmente */
  justify-content: flex-start; /* Alinha ao topo */
  align-items: center; /* Centraliza o container do formulário */
  overflow: visible; /* Permite que o conteúdo ultrapasse o container e seja rolado pela página */
}

.help-page .form-container {
  flex: 0 1 auto; /* Permite que o container cresça/encolha mas sem base fixa */
  overflow-y: visible; /* Remove a barra de rolagem */
  padding-right: 0;
  max-width: 800px; /* Define uma largura máxima para boa legibilidade */
  width: 100%;
}

/* Estilos para index.html (landing page) */
:root{--bg:#0A192F;--card:#0f1724;--muted:#94a3b8;--accent:#60a5fa;--white:#f8fafc;--glass:rgba(255,255,255,0.04);--radius:12px;}
*{box-sizing:border-box}
.container{max-width:1100px;margin:0 auto;min-height:100vh;height:auto;display:flex;flex-direction:column;background:transparent;box-sizing:border-box;width:100%}
.container > main{padding:12px;flex:1}
.site-header{display:flex;flex-direction:column;gap:8px;padding:28px;box-sizing:border-box;min-height:88px}
.pacotes-container .site-header{padding:0}
.header-top{display:flex;align-items:center;justify-content:space-between;width:100%}
.brand{display:flex;align-items:center}
.brand img{flex-shrink:0;max-height:52px;object-fit:contain}
.header-subtitle{width:100%;text-align:center;font-size:15px;font-weight:600;color:var(--muted);line-height:1.4;margin-top:4px}
.logo{width:52px;height:52px;border-radius:10px;background:linear-gradient(135deg,#6366f1,#06b6d4);display:flex;align-items:center;justify-content:center;font-weight:800;color:#04263a;box-shadow:0 8px 26px rgba(8,10,19,0.6)}
nav a{color:var(--muted);text-decoration:none;margin-left:18px;font-size:14px}
nav a:hover{color:var(--white)}
/* ===== DESKTOP (padrão) ===== */
.main-nav{position:static;display:flex;align-items:center;gap:18px;height:auto;width:auto;background:transparent;backdrop-filter:none;transform:none;overflow:visible}
/* Menu retrátil mobile */
.menu-toggle{display:none!important;background:transparent;border:none;cursor:pointer;flex-direction:column;gap:5px;padding:8px;z-index:2100!important;position:relative;transition:transform 0.3s ease;animation:pulse 2s ease-in-out infinite;width:auto!important;margin-top:0!important}
.menu-toggle:hover{background:transparent!important;transform:scale(1.1)}
.menu-toggle:active{transform:scale(0.95)}
.menu-toggle:focus{outline:none}
.menu-toggle span{width:24px;height:2px;background:var(--white);transition:all 0.3s ease;display:block}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:rotate(45deg) translate(7px,7px)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:rotate(-45deg) translate(7px,-7px)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.7}}
@media(max-width:768px){
  nav:not(.main-nav){display:none!important}
  .container{width:100%;box-sizing:border-box;max-width:100%;height:auto}
  .container > main{padding:8px}
  .site-header{padding:18px;gap:10px}
  .header-top{position:relative;width:100%;box-sizing:border-box}
  .brand{flex:0 0 auto;max-width:100%;box-sizing:border-box}
  .main-nav{position:fixed;top:0;right:0;width:280px;max-width:85vw;height:100dvh;background:rgba(10,25,47,0.9);backdrop-filter:blur(12px);display:flex;flex-direction:column;gap:12px;padding:64px 20px 20px;overflow-y:auto;overflow-x:hidden;transform:translateX(100%);transition:transform 0.3s ease;z-index:2000;will-change:transform}
  .main-nav.active{transform:translateX(0)}
  .menu-toggle{display:flex!important;position:absolute!important;right:0!important;left:auto!important;top:0!important;bottom:auto!important;z-index:2100!important;flex-shrink:0;margin:0!important;margin-left:0!important;margin-right:0!important;width:auto!important;height:auto!important}
  body.menu-open .menu-toggle{position:fixed;top:16px;right:16px}
  .main-nav a{width:100%;color:var(--white);margin:0;padding:18px 16px;border-radius:8px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.05);font-size:15px;text-align:center;transition:all 0.2s ease;display:block}
  .main-nav a:hover{color:var(--accent);background:rgba(255,255,255,0.06);border-color:rgba(255,255,255,0.1)}
  .header-subtitle{font-size:13px;font-weight:600;padding:0 6px;margin-top:6px}
  /* Responsividade dos textos */
  h1{font-size:24px;line-height:1.3;text-align:center}
  .lead{font-size:14px;line-height:1.6}
  /* Responsividade do hero e card */
  .hero{grid-template-columns:1fr;gap:16px;max-width:100%;box-sizing:border-box;overflow-x:hidden}
  .hero > *{max-width:100%;box-sizing:border-box}
  .card{padding:16px;box-sizing:border-box;max-width:100%}
  /* Prevenir overflow horizontal em elementos filhos */
  .container > *{max-width:100%;box-sizing:border-box}
  /* Prevenir overflow nos botões */
  .buttons-main{flex-wrap:wrap;max-width:100%;box-sizing:border-box}
  .buttons-main .btn{min-width:0;flex:1 1 auto;max-width:100%;white-space:normal;box-sizing:border-box}
  /* Prevenir overflow nos features */
  .features{max-width:100%;box-sizing:border-box}
  .feature-item{max-width:100%;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box}
  /* Prevenir overflow no exemplo de repositório */
  .example{max-width:100%;word-wrap:break-word;overflow-wrap:break-word;overflow-x:hidden;box-sizing:border-box}
}

/* Correção para landscape mobile - index.html */
@media (max-width: 768px) and (orientation: landscape) {
  body {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
  }

  .container {
    height: auto !important;
    min-height: 100vh;
  }

  .container > main {
    overflow: visible !important;
  }
}

/* Correção adicional para landscape mobile com altura muito pequena - index.html */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  body {
    overflow-y: auto !important;
    height: auto !important;
  }

  .container {
    height: auto !important;
    min-height: auto !important;
  }
}
.hero{display:grid;grid-template-columns:1fr;gap:28px;align-items:center;margin-top:8px;max-width:100%;box-sizing:border-box;width:100%;overflow-x:hidden;min-width:0}
.hero-title{grid-column:1/-1;width:100%;text-align:center;box-sizing:border-box}
.hero-content{grid-column:1/-1;width:100%;box-sizing:border-box}
@media(min-width:880px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(280px,420px);grid-template-areas:"title title" "content aside";gap:clamp(16px,2vw,28px);min-width:0;width:100%;max-width:100%}
  .hero-title{grid-area:title;width:100%;text-align:center}
  .hero-content{grid-area:content;width:100%;box-sizing:border-box}
  .hero > aside{grid-area:aside;min-width:0;max-width:420px;width:100%;box-sizing:border-box;overflow-x:hidden}
  .hero-content .buttons{display:flex;flex-direction:column;align-items:stretch;width:100%;max-width:100%;box-sizing:border-box}
  .hero-content .buttons-main{justify-content:center;width:100%;max-width:100%;box-sizing:border-box}
  .hero-content .features{width:100%;max-width:100%;box-sizing:border-box}
}
h1{font-size:30px;margin:0}
.hero-title h1{display:block;width:100%;margin:0 auto;text-align:center}
.hero-title .lead{text-align:justify}
.lead{color:var(--muted);margin-top:10px}
.buttons{display:flex;flex-direction:column;gap:12px;margin-top:18px;align-items:stretch}
/* Wrapper interno para botões principais - nunca quebram */
.buttons-main{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:center;max-width:100%;box-sizing:border-box;width:100%}
.buttons-main .btn{width:auto;flex-shrink:1;white-space:normal;min-width:0;box-sizing:border-box;max-width:100%}
/* Desktop: botões SEMPRE lado a lado */
@media (min-width:769px){
  .buttons-main{flex-wrap:nowrap;align-items:stretch;width:100%}
  .buttons-main .btn{white-space:nowrap;flex:1 1 0;min-width:0}
  .buttons-main .btn-primary{flex:1 1 0;text-overflow:ellipsis;overflow:hidden}
}
/* Status pode quebrar para linha de baixo se necessário */
#status{
  margin-top: 0;
  text-align: center;
}
/* Estilos para seção de voucher */
.voucher-section{
  width:100%;
  box-sizing:border-box;
  align-self:stretch
}
.voucher-section > div{
  display:flex;
  gap:12px;
  align-items:stretch;
  width:100%;
  box-sizing:border-box
}
.voucher-section #voucher-input{
  flex:1 1 0%;
  min-width:200px;
  box-sizing:border-box
}
.voucher-section #btn-validate-voucher{
  flex:0 0 auto;
  width:auto;
  min-width:120px;
  white-space:nowrap;
  box-sizing:border-box;
  padding:12px 24px
}
.voucher-section input:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 10px rgba(96,165,250,0.3)
}
.voucher-section input::placeholder{
  color:var(--muted)
}
@media(max-width:768px){
  .voucher-section > div{
    flex-direction:column
  }
  .voucher-section #btn-validate-voucher{
    width:100%
  }
}
.btn{cursor:pointer;border:0;padding:12px 18px;border-radius:10px;font-weight:700}
.btn-primary{background:#fff;color:var(--bg)}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--white)}
.voucher-section .btn{width:auto !important;display:inline-block !important;margin-top:0 !important;min-width:120px !important;padding:12px 24px !important}
.card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); padding:18px;border-radius:var(--radius);box-shadow:0 6px 24px rgba(2,6,23,0.6);box-sizing:border-box;max-width:100%;min-width:0}
.features{display:grid;grid-template-columns:repeat(1,1fr);gap:12px;margin-top:18px;max-width:100%;box-sizing:border-box}
@media(min-width:640px){.features{grid-template-columns:repeat(2,1fr)}}
.feature-item{background:var(--glass);padding:12px;border-radius:10px;color:var(--muted);font-size:14px;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box;max-width:100%;text-align:left}
.example{background:#021124;border-radius:10px;padding:12px;color:#e6eef8;font-size:14px;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;box-sizing:border-box}
section{margin-top:28px;background:transparent}
.pricing-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:760px){.pricing-grid{grid-template-columns:1fr 1fr}}
.price.card{display:flex;flex-direction:column;min-height:0}
.price.card > div:last-child{margin-top:auto;width:100%}
.price.card .btn{width:100%;text-align:center}
footer{margin-top:36px;color:var(--muted);font-size:13px;padding:18px 0;border-top:1px solid rgba(255,255,255,0.03)}
.hidden{display:none}
.loader{display:inline-block;border:3px solid rgba(255,255,255,0.06);border-top-color:var(--white);border-radius:50%;width:18px;height:18px;animation:spin 1s linear infinite;vertical-align:middle}
@keyframes spin{to{transform:rotate(360deg)}}
.notice{background:rgba(255,255,255,0.03);padding:10px;border-radius:8px;color:var(--muted);font-size:14px}
.download-link{display:inline-block;padding:10px 12px;border-radius:8px;background:linear-gradient(90deg,#06b6d4,#60a5fa);color:#04263a;font-weight:700;text-decoration:none}
.small{font-size:13px;color:var(--muted)}

/* Estilos para pacotes.html - Seleção de Pacotes */
.package-options {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .package-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.package-option {
  cursor: pointer;
}

.package-option input[type="radio"] {
  display: none;
}

.package-card {
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--glass);
}

.package-option input[type="radio"]:checked + .package-card {
  border-color: var(--accent);
  background: rgba(96, 165, 250, 0.1);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.package-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.package-card h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.package-card .price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin: 8px 0;
}

.package-card .savings {
  font-size: 12px;
  color: #009966;
  margin: 8px 0 0 0;
  font-weight: 600;
}

/* Estilos para formulário em pacotes.html */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 14px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #0077CC;
  border-radius: 8px;
  background-color: #0a192f;
  color: #DDDDDD;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.form-group input[type="email"]:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #0077CC;
  box-shadow: 0 0 10px rgba(0, 119, 204, 0.3);
}

.form-group input::placeholder {
  color: var(--muted);
}

/* Estilos específicos para pacotes.html - Layout Full Height */
.pacotes-container {
  height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 28px;
  max-width: 1100px;
  width: 100%;
}

.pacotes-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  width: 100%;
  min-height: 0; /* Permite que o flex funcione corretamente */
}

.pacotes-section {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 28px;
}

.pacotes-form-wrapper {
  width: 100%;
}

@media (max-width: 768px) {
  .pacotes-main {
    padding: 18px 0;
  }
  
  .pacotes-section {
    padding: 0 18px;
  }
  
  .pacotes-form-wrapper {
    padding-top: 0;
  }
}

/* Correção para smartphone em modo vertical (portrait) - apenas quando não é landscape */
@media (max-width: 768px) and (min-height: 501px) {
  .pacotes-container {
    padding: 12px 18px;
  }
  
  .site-header {
    padding: 12px 0 !important;
    margin-bottom: 40px;
  }
  
  .pacotes-main {
    padding: 0;
    overflow: visible;
    align-items: flex-start !important;
    min-height: auto !important;
    flex: 1 1 auto !important;
  }
  
  .pacotes-section {
    padding-top: 20px;
    margin-top: 0;
    overflow: visible;
  }
  
  .pacotes-form-wrapper {
    margin-top: 0;
    padding-top: 0;
  }
  
  .pacotes-form-wrapper h1 {
    margin-bottom: 8px;
    font-size: 22px;
    margin-top: 0;
    padding-top: 0;
  }
  
  .pacotes-form-wrapper .lead {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.4;
  }
  
  #emailForm {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 40px !important;
  }
  
  .package-options {
    margin-bottom: 20px !important;
  }
  
  #emailForm .form-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
  }
  
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-group:first-of-type {
    margin-top: 0;
  }
  
  #packageSelection {
    margin-top: 20px !important;
  }
  
  #couponSelection {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
  }
  
  #submitBtn {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
  }
  
  .footer {
    margin-top: auto !important;
    padding: 44px 0;
    flex-shrink: 0;
    position: static;
  }
  
  .package-options {
    gap: 12px !important;
    margin-bottom: 20px !important;
  }
}

/* Correção para smartphone em modo horizontal (landscape) - COM scroll */
@media (max-width: 768px) and (max-height: 500px) {
  /* Garantir scroll no body para todas as páginas em landscape */
  body {
    overflow-y: auto !important;
    overflow: auto !important;
    height: auto !important;
  }
  
  .pacotes-container {
    padding: 4px 8px;
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow: visible !important;
    justify-content: flex-start;
  }
  
  .pacotes-main {
    padding: 2px 0;
    flex: 1 1 auto;
    min-height: auto;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  
  .pacotes-section {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .pacotes-form-wrapper {
    margin: 0;
    width: 100%;
  }
  
  .pacotes-form-wrapper h1 {
    margin-bottom: 2px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center !important;
  }
  
  .pacotes-form-wrapper .lead {
    margin-bottom: 4px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center !important;
    text-align-last: center !important;
  }
  
  #emailForm {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding-bottom: 4px !important;
  }
  
  .footer {
    margin-top: 0 !important;
    padding: 2px 0;
    flex-shrink: 0;
    font-size: 9px;
    line-height: 1.2;
  }
  
  .form-group {
    margin-bottom: 4px;
  }
  
  #submitBtn {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding: 6px !important;
    font-size: 12px;
  }
  
  .site-header {
    padding: 4px 0 !important;
    flex-shrink: 0;
    min-height: 40px !important;
  }
  
  .site-header .brand img {
    height: 32px !important;
  }
  
  .package-options {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }
  
  .package-card {
    padding: 6px !important;
  }
  
  .package-card h3 {
    font-size: 12px !important;
    margin-bottom: 2px !important;
  }
  
  .package-card .price {
    font-size: 14px !important;
  }
  
  .package-card .savings {
    font-size: 9px !important;
    margin-top: 1px !important;
  }
}

/* Correção adicional para landscape mobile - pacotes.html - garantir scroll */
@media (max-width: 768px) and (orientation: landscape) {
  /* Aplicar apenas quando pacotes-container existe (página pacotes.html) */
  .pacotes-container {
    height: auto !important;
    min-height: 100vh;
    max-height: none !important;
    overflow: visible !important;
  }
  
  .pacotes-main {
    overflow: visible !important;
    max-height: none !important;
    flex: 1 1 auto;
  }
  
  .pacotes-section {
    overflow: visible !important;
    max-height: none !important;
  }
  
  /* Garantir scroll no body quando pacotes-container existe */
  body {
    overflow-y: auto !important;
    overflow: auto !important;
    height: auto !important;
  }
}

/* ===== Correção definitiva do header da documentacao.html ===== */
body.doc-page .header {
  display: flex;
  flex-direction: column;      /* logo em cima, título embaixo */
  align-items: center;         /* centraliza o h1 */
  gap: 12px;
  position: relative;
}

/* Logo SEMPRE à esquerda */
body.doc-page .header > a {
  align-self: flex-start;      /* força à esquerda */
}

/* H1 centralizado na própria linha */
body.doc-page .header-title {
  position: static;            /* remove absolute herdado */
  transform: none;
  width: 100%;
  text-align: center;
  margin: 0;
}

/* Ajuste fino de espaçamento horizontal do hero (desktop e mobile) */
.hero-title {
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px; /* respiro lateral no mobile */
}

.hero-title h1 {
  width: 100%;
  margin-inline: auto;
}

.hero-title .header-subtitle {
  width: 100%;
  margin: 12px auto 0;
}

.hero-title .lead {
  width: 100%;
  margin: 14px auto 0;
}

