/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores principais - tema claro (padrão) */
  --primary-color: #8b0000; /* Vermelho escuro/bordô */
  --primary-light: #a52a2a; /* Vermelho mais claro */
  --primary-dark: #660000; /* Vermelho mais escuro */

  --secondary-color: #2c1a0e; /* Marrom escuro/madeira */
  --secondary-light: #3d2914; /* Marrom mais claro */
  --secondary-dark: #1a0f08; /* Marrom mais escuro */

  --accent-color: #d4af37; /* Dourado */
  --accent-light: #f1c40f; /* Dourado mais claro */
  --accent-dark: #b8860b; /* Dourado mais escuro */

  --light-color: #f9f5f0; /* Bege claro */
  --dark-color: #1e1e1e; /* Quase preto */
  --gray-color: #666;
  --light-gray: #e8e2d6; /* Bege mais escuro */

  /* Cores de fundo e texto */
  --bg-primary: #f9f5f0;
  --bg-secondary: #ffffff;
  --bg-accent: #f5f5f5;
  --text-primary: #1e1e1e;
  --text-secondary: #666;
  --text-accent: #8b0000;
  --border-color: #e8e2d6;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);

  /* Transições */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Bordas */
  --border-radius-sm: 8px;
  --border-radius-md: 15px;
  --border-radius-lg: 30px;
  --border-radius-full: 50%;

  /* Fontes */
  --font-primary: "Poppins", sans-serif;
  --font-display: "Playfair Display", serif;

  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;

  /* Z-index */
  --z-back: -1;
  --z-normal: 1;
  --z-front: 10;
  --z-modal: 100;
  --z-overlay: 1000;

  /* Sidebar */
  --sidebar-width: 220px;
  --sidebar-collapsed-width: 70px;
  --sidebar-bg: rgba(44, 26, 14, 0.85);
  --sidebar-blur: 10px;
  --sidebar-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tema escuro */
.dark-theme {
  --primary-color: #ff3547; /* Vermelho mais vibrante */
  --primary-light: #ff5c6c; /* Vermelho mais claro */
  --primary-dark: #c41e3a; /* Vermelho mais escuro */

  --secondary-color: #1a0f08; /* Marrom mais escuro */
  --secondary-light: #2c1a0e; /* Marrom escuro */
  --secondary-dark: #0d0704; /* Marrom muito escuro */

  --accent-color: #ffd700; /* Dourado mais vibrante */
  --accent-light: #ffdf00; /* Dourado mais claro */
  --accent-dark: #d4af37; /* Dourado mais escuro */

  /* Cores de fundo e texto */
  --bg-primary: #121212; /* Fundo principal escuro */
  --bg-secondary: #1e1e1e; /* Fundo secundário escuro */
  --bg-accent: #2d2d2d; /* Fundo de destaque escuro */
  --text-primary: #ffffff; /* Texto principal branco para maior contraste */
  --text-secondary: #dddddd; /* Texto secundário mais claro */
  --text-accent: #ffd700; /* Texto de destaque dourado */
  --border-color: #444444; /* Bordas mais claras para melhor visibilidade */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family: var(--font-primary);
  overflow-x: hidden;
  background-image: url("https://images.unsplash.com/photo-1606914501449-5a96b6ce24ca?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-left: var(--sidebar-width);
  transition: padding-left var(--transition);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.85); /* Reduzido de 0.92 para 0.85 */
  z-index: var(--z-back);
}

body.sidebar-collapsed {
  padding-left: var(--sidebar-collapsed-width);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  z-index: var(--z-normal);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
  z-index: var(--z-back);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(139, 0, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: rgba(139, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--dark-color);
  border: none;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

section {
  padding: var(--spacing-xl) 0;
  position: relative;
  border-bottom: 1px solid var(--border-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.section-container {
  background-color: rgba(30, 30, 30, 0.95); /* Fundo mais opaco */
  border-radius: var(--border-radius-md);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3); /* Sombra mais pronunciada */
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.1); /* Borda sutil para melhorar visibilidade */
}

.section-container.animate {
  opacity: 1;
  transform: translateY(0);
}

.section-container:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-5px);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Borda mais visível no hover */
}

.section-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--primary-color);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  font-family: var(--font-display);
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-indicator {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom-left-radius: var(--border-radius-sm);
  z-index: 2;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #0a0a0a; /* Fundo mais escuro, quase preto */
  backdrop-filter: blur(var(--sidebar-blur));
  -webkit-backdrop-filter: blur(var(--sidebar-blur));
  z-index: var(--z-overlay);
  transition: all var(--sidebar-transition);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) var(--secondary-dark);
  border-right: 1px solid rgba(255, 255, 255, 0.2); /* Borda mais visível */
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--secondary-dark);
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: var(--accent-color);
  border-radius: 20px;
}

.sidebar-header {
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.logo {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  transition: var(--transition);
}

.logo-text-primary {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.6rem;
  font-family: var(--font-display);
  transition: var(--transition);
}

.logo-text-secondary {
  color: white;
  font-weight: 700;
  font-size: 1.6rem;
  font-family: var(--font-display);
  transition: var(--transition);
}

.sidebar-toggle {
  position: absolute;
  top: 20px;
  right: -15px;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 2;
}

.sidebar-toggle:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.sidebar-toggle i {
  transition: var(--transition);
}

.sidebar-nav {
  padding: var(--spacing-md) 0;
  flex-grow: 1;
}

.sidebar-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav li {
  position: relative;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 10px var(--spacing-sm);
  color: rgba(255, 255, 255, 0.9); /* Aumentado de 0.7 para 0.9 */
  transition: all var(--transition);
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--border-radius-sm);
  margin: 0 var(--spacing-xs);
  overflow: hidden;
}

.sidebar-nav a i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
  font-size: 1rem;
  transition: var(--transition);
}

.sidebar-nav a .nav-text {
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav a:hover::after {
  transform: scaleX(1);
}

.sidebar-nav a:hover {
  color: white;
  transform: translateX(5px);
  background-color: rgba(255, 255, 255, 0.15); /* Aumentado de 0.1 para 0.15 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-nav a::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--accent-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 3px 3px 0;
}

.sidebar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.sidebar-nav a:hover::before {
  transform: scaleY(1);
}

.sidebar-nav li.active a {
  color: white;
  background-color: rgba(255, 255, 255, 0.2); /* Aumentado de 0.15 para 0.2 */
  font-weight: 600;
}

.sidebar-nav li.active a::before {
  transform: scaleY(1);
}

.sidebar-nav li.active i {
  color: var(--accent-color);
}

.sidebar-footer {
  padding: var(--spacing-md) var(--spacing-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: var(--spacing-sm);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
  color: white;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.sidebar-contact {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.sidebar-contact p {
  margin-bottom: 5px;
}

.sidebar-contact i {
  color: var(--accent-color);
  margin-right: 5px;
}

.sidebar.sidebar-collapsed {
  width: var(--sidebar-collapsed-width);
}

.sidebar-collapsed .nav-text,
.sidebar-collapsed .sidebar-contact,
.sidebar-collapsed .logo-text-secondary {
  display: none;
}

.sidebar-collapsed .sidebar-toggle i {
  transform: rotate(180deg);
}

.sidebar-collapsed .social-links {
  flex-direction: column;
  align-items: center;
}

.sidebar-collapsed .logo-text-primary {
  font-size: 1.4rem;
}

/* Progress indicator */
.progress-container {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  height: 5px;
  background: transparent;
  z-index: var(--z-overlay);
  transition: var(--transition);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  width: 0%;
  transition: width 0.2s ease;
}

body.sidebar-collapsed .progress-container {
  left: var(--sidebar-collapsed-width);
  width: calc(100% - var(--sidebar-collapsed-width));
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1529193591184-b1d58069ecdd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  border-bottom: none;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-normal);
  animation: fadeInUp 1s ease;
  padding: 0 var(--spacing-md);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: var(--z-normal);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Wizard Styles */
.wizard-container {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  padding: 20px;
  background-color: var(--bg-accent);
  border-bottom: 1px solid var(--border-color);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  right: -50%;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.wizard-step.active:not(:last-child)::after {
  background-color: var(--primary-color);
}

.wizard-step.completed:not(:last-child)::after {
  background-color: var(--primary-color);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.wizard-step.active .step-number {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.wizard-step.completed .step-number {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.wizard-step.active .step-label {
  color: var(--primary-color);
  font-weight: 600;
}

.wizard-content {
  padding: 30px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.wizard-panel-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-display);
}

.wizard-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

.confirmation-summary {
  background-color: var(--bg-accent);
  padding: 20px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

.confirmation-summary h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: var(--z-modal);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  max-width: 500px;
  width: 100%;
  padding: var(--spacing-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border-top: 5px solid var(--primary-color);
  color: var(--text-primary);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--bg-accent);
  color: var(--primary-color);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
  text-align: center;
  font-weight: 600;
  font-family: var(--font-display);
}

/* Countdown Styles */
.countdown-container {
  margin: 20px 0;
  text-align: center;
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: var(--bg-accent);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar-countdown {
  height: 100%;
  background-color: var(--primary-color);
  width: 100%;
  transition: width 5s linear;
}

/* Responsive Styles */
@media (max-width: 992px) {
  body {
    padding-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    z-index: var(--z-overlay);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    right: -45px;
  }

  .sidebar.active .sidebar-toggle {
    right: 10px;
  }

  .progress-container {
    left: 0;
    width: 100%;
  }

  .wizard-progress {
    flex-wrap: wrap;
    gap: 10px;
  }

  .wizard-step {
    flex: 0 0 30%;
    margin-bottom: 10px;
  }

  .wizard-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1.5rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .wizard-step {
    flex: 0 0 45%;
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-lg: 1.5rem;
    --spacing-md: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .wizard-step {
    flex: 0 0 100%;
  }

  .wizard-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .wizard-buttons button {
    width: 100%;
  }
}
