/* =========================================
   1. VARIÁVEIS DE COR (PADRÃO LIGHT / BRANCO)
   ========================================= */
:root {
  /* Padrão agora é CLARO (Credibilidade Jurídica) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --card-bg: #ffffff;
  --card-hover: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.12);

  /* Cores de destaque mantidas */
  --accent-primary: #3b82f6;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-error: #ef4444;

  /* Sombras Light */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   2. MODO ESCURO (ATIVADO APENAS SE TIVER O ATRIBUTO)
   ========================================= */
html[data-theme="dark"] {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1420;
  --card-bg: #151923;
  --card-hover: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(148, 163, 184, 0.1);
  --border-hover: rgba(148, 163, 184, 0.2);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

/* =========================================
   3. ESTILOS GERAIS
   ========================================= */
.btn-theme,
.nav-actions,
.nav-links,
.navbar-content {
  display: flex;
  align-items: center
}

.btn-secondary,
.label,
.nav-link:hover,
body {
  color: var(--text-primary)
}

.btn-theme,
.nav-link,
.section-subtitle {
  color: var(--text-secondary)
}

.hero::after,
.hero::before {
  content: '';
  pointer-events: none;
  position: absolute
}

.hero h1,
.logo {
  font-weight: 800;
  -webkit-text-fill-color: transparent
}

.btn,
.btn-theme,
.nav-link {
  transition: .2s
}

.logo,
.section-title {
  letter-spacing: -.02em
}

.btn,
.footer-link,
.nav-link {
  text-decoration: none
}

.card,
.hero {
  overflow: hidden
}

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

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

/* NAVBAR AGORA É BRANCA/CLARA POR PADRÃO */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  /* Padrão Claro */
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border)
}

/* NAVBAR ESCURA APENAS SE TEMA FOR DARK */
html[data-theme="dark"] .navbar {
  background: rgba(10, 14, 26, .8);
}

.card,
.hero,
.hero-content {
  position: relative
}

.navbar-content {
  justify-content: space-between;
  gap: 32px
}

.logo {
  font-size: 24px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text
}

.btn-theme,
.mobile-menu-btn {
  width: 40px;
  height: 40px;
  background: 0 0;
  cursor: pointer
}

.card-footer,
.nav-links {
  gap: 8px
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent
}

.btn,
.hero-badge,
.label {
  font-weight: 600
}

.btn-secondary:hover,
.nav-link:hover {
  background: var(--card-hover);
  border-color: var(--border-hover)
}

.nav-actions {
  gap: 12px
}

.btn-theme {
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px
}

.btn-theme:hover {
  background: var(--card-hover);
  color: var(--text-primary)
}

.mobile-menu-btn {
  display: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 20px
}

.hero::before {
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, .15), transparent 70%)
}

.hero::after {
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, .1), transparent 70%)
}

.hero-content {
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .2);
  border-radius: 100px;
  color: var(--accent-primary)
}

.hero h1 {
  line-height: 1.1;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text
}

.card-description,
.hero-subtitle {
  color: var(--text-secondary);
  line-height: 1.6
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

.btn {
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  white-space: nowrap
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, .3)
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, .4)
}

.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--border)
}

.label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  margin-top: 20px
}

.label:first-of-type {
  margin-top: 0
}

.input,
input[type=email],
input[type=tel],
input[type=text],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: .2s;
  outline: 0
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1);
  background: var(--card-bg)
}

.card:hover,
.input:hover,
input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-hover)
}

.input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted)
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px
}

textarea {
  resize: vertical;
  min-height: 100px
}

input[type=checkbox] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent-primary)
}

.small {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5
}

[id^=err_] {
  color: #fca5a5 !important
}

.trust-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted)
}

.trust-badge::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-success);
  font-weight: 700
}

.section-title {
  font-weight: 800
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: .3s cubic-bezier(.4, 0, .2, 1)
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0;
  transition: opacity .3s
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl)
}

.card:hover::before {
  opacity: 1
}

.card-icon {
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(6, 182, 212, .1));
  display: flex;
  align-items: center;
  justify-content: center
}

.card-title {
  font-weight: 700;
  color: var(--text-primary)
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.tag {
  border-radius: 6px;
  font-weight: 600;
  background: rgba(59, 130, 246, .1);
  color: var(--accent-primary);
  border: 1px solid rgba(59, 130, 246, .2)
}

.tag-success {
  background: rgba(16, 185, 129, .1);
  color: var(--accent-success);
  border-color: rgba(16, 185, 129, .2)
}

.card-footer {
  display: flex;
  gap: 12px;
  margin-top: auto
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px
}

.featured-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(6, 182, 212, .05));
  border: 1px solid rgba(59, 130, 246, .2);
  grid-column: span 2
}

.search-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  transition: .2s
}

.search-input:focus {
  outline: 0;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .1)
}

.search-input::placeholder {
  color: var(--text-muted)
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px
}

.footer-content {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px
}

.footer-link {
  color: var(--accent-primary)
}

.footer-link:hover {
  text-decoration: underline
}

@media (max-width:1024px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))
  }

  .featured-card {
    grid-column: span 1
  }
}

@media (max-width:768px) {
  .navbar-content {
    height: 64px
  }

  .nav-links {
    display: none
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center
  }

  .hero {
    padding: 48px 0 80px
  }

  .hero h1 {
    font-size: 40px
  }

  .hero-subtitle {
    font-size: 18px
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch
  }

  .btn {
    width: 100%;
    justify-content: center
  }

  .section {
    padding: 48px 0
  }

  .section-title {
    font-size: 32px
  }

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

  .trust-badges {
    flex-direction: column;
    align-items: center
  }

  .container {
    padding: 0 16px
  }
}

.card {
  padding: 20px
}

.card-icon {
  width: 40px;
  height: 40px;
  font-size: 20px;
  margin-bottom: 14px
}

.card-title {
  font-size: 17px;
  margin-bottom: 8px
}

.card-description,
.card-tags {
  margin-bottom: 14px
}

.card-description {
  font-size: 14px
}

.tag {
  padding: 3px 10px;
  font-size: 11px
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px
}

.grid {
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))
}

.section-header {
  text-align: center;
  margin-bottom: 40px
}

.section-title {
  font-size: 36px;
  margin-bottom: 12px
}

.section-subtitle {
  font-size: 16px
}

.category-section {
  margin-top: 60px !important
}

.category-section:first-child {
  margin-top: 0 !important
}

.category-title {
  font-size: 24px !important;
  margin-bottom: 20px !important
}

.featured-card {
  padding: 22px
}

.hero {
  padding: 50px 0 60px
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 16px
}

.hero-subtitle {
  font-size: 17px;
  margin-bottom: 28px
}

.hero-badge {
  padding: 6px 14px;
  font-size: 13px;
  margin-bottom: 18px
}

.hero-actions {
  gap: 12px;
  margin-bottom: 32px
}

.btn {
  padding: 12px 24px;
  font-size: 15px
}

.trust-badges {
  margin-top: 32px;
  gap: 16px
}

.trust-badge {
  font-size: 13px
}

.navbar-content {
  height: 64px
}

.search-container {
  max-width: 600px;
  margin: 0 auto 50px
}

.search-input {
  padding: 14px 18px;
  font-size: 15px
}

.section {
  padding: 60px 0
}

@media (max-width:768px) {
  .card {
    padding: 16px
  }

  .card-title {
    font-size: 16px
  }

  .card-description {
    font-size: 13px
  }

  .grid {
    gap: 12px;
    grid-template-columns: 1fr
  }

  .section-title {
    font-size: 28px
  }

  .category-title {
    font-size: 22px !important
  }

  .hero {
    padding: 35px 0 45px
  }

  .hero h1 {
    font-size: 32px;
    margin-bottom: 12px
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px
  }

  .hero-actions {
    margin-bottom: 24px
  }

  .trust-badges {
    margin-top: 24px;
    gap: 12px
  }

  .section {
    padding: 40px 0
  }

  .search-container {
    margin-bottom: 35px
  }
}

#previewWrap {
  background-color: #525659 !important;
  padding: 40px 20px !important;
  border-radius: 8px;
  margin-top: 32px
}

#previewBox {
  background: #fff;
  width: 100%;
  max-width: 210mm;
  /* Largura A4 */
  min-height: 297mm;
  /* Altura A4 */
  padding: 25mm 20mm;
  /* Margens ABNT/Cartório */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  /* Sombra realista (Depth) */
  font-family: 'Times New Roman', serif;
  /* Fonte de autoridade */
  color: #1a1a1a;
  margin: 20px auto;
  position: relative;
}

/* Adicionar uma "marca d'água" sutil de "RASCUNHO" ou "PRÉVIA" via CSS background */

.guarantee-badge {
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  width: 100%
}

.guarantee-icon {
  font-size: 18px
}

/* =========================================
   CORREÇÕES MOBILE
   ========================================= */
@media (max-width: 768px) {
  #previewBox {
    padding: 20px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  #previewWrap {
    padding: 20px 12px !important;
  }

  #email-section>div {
    flex-direction: column !important;
  }

  #email-input {
    width: 100% !important;
    margin-bottom: 10px;
    height: 48px;
  }

  #email-button {
    width: 100% !important;
    height: 48px;
    justify-content: center;
  }
}

/* =========================================
   WHATSAPP & PROMO
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  fill: white;
}

.price-badge {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  font-size: 15px;
  display: inline-block;
  width: 100%;
}

.price-old {
  text-decoration: line-through;
  color: #ef4444;
  opacity: 0.8;
  font-size: 14px;
}

.price-new {
  font-weight: 800;
  font-size: 18px;
  color: #16a34a;
  margin-left: 6px;
}

.timer-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* ====== Multi-step formulário viagem ====== */
.step-indicator {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
}

.step-item {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

.step-item.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.06);
  font-weight: 600;
}

.step-item.completed {
  border-color: var(--accent-success);
  color: var(--accent-success);
  background: rgba(16, 185, 129, 0.06);
}

.form-step {
  display: none;
}

.form-navigation {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.required-star {
  color: #ef4444;
  margin-left: 4px;
}

@media (max-width: 768px) {
  .step-indicator {
    flex-direction: column;
  }

  .step-item {
    min-width: auto;
  }

  .form-navigation {
    flex-direction: column;
  }
}

/* =========================================
   LEGAL NOTE (Invertida também)
   ========================================= */
/* Padrão CLARO */
.legal-note {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #e0f2fe;
  /* Azul claro */
  border-color: #bae6fd;
  color: #0f172a;
}

/* Dark Mode APENAS se ativado */
html[data-theme="dark"] .legal-note {
  background: rgba(15, 23, 42, 0.5);
  border-color: var(--border);
  color: #e5e7eb;
}

/* Estilo dos Cards de Seleção (Radio Buttons Bonitos) */
.radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.radio-card {
  position: relative;
}

.radio-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  height: 100%;
}

.radio-label:hover {
  background: var(--card-hover);
  border-color: var(--accent-primary);
}

.radio-card input[type="radio"]:checked+.radio-label {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
}

.radio-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

@media (max-width: 480px) {
  .radio-group.full-mobile {
    grid-template-columns: 1fr;
    /* Um embaixo do outro no celular se precisar */
  }
}

/* --- AJUSTES PARA CELULAR (MOBILE) --- */
@media (max-width: 768px) {

  /* Esconde a barra de passos no celular */
  .step-indicator {
    display: none !important;
  }

  /* Diminui o tamanho do título principal para ocupar menos espaço */
  h1 {
    font-size: 22px !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
  }

  /* Diminui o texto de apoio (subtítulo) */
  .hero-text {
    font-size: 14px !important;
    margin-bottom: 15px !important;
  }

  /* Reduz o espaçamento do topo para o formulário subir mais */
  .container {
    padding-top: 15px !important;
  }
}