:root {
  --accent-color: #ab2834;
  --bg-color: #040404;
  --bg-gradient: linear-gradient(135deg, #1d1d20 0%, #040404 100%);
  --text-color: #ffffff;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-gradient);
  color: var(--text-color);
  line-height: 1.6;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
}

.highlight {
  color: var(--accent-color);
}

header {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

header .header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: block;
  width: 73px;
  height: 64px;
  margin-right: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  main {
    padding: 0 20px;
  }
  header {
    padding: 10px 0;
  }
  header .header-wrapper {
    justify-content: center;
  }
  header .logo {
    margin: 0;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 40px;
  margin: 60px 0;
  padding: 0;
  color: var(--text-color);
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero > div:first-child {
    order: 2;
  }
  .hero > div:last-child {
    order: 1;
    padding: 0;
  }
}
.hero > div:last-child {
  overflow: hidden;
}
.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: left;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  text-align: left;
}
.hero > div {
  padding: 0 20px;
}
.hero-video {
  width: auto;
  height: 600px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 0;
}

@media (min-width: 769px) {
  .hero-video {
    width: auto;
    max-height: 640px;
    max-width: 100%;
  }
}
.cta-button {
  display: block;
  background: #28a745;
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  margin: 20px auto 0;
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  transition: background 0.3s;
  text-transform: uppercase;
}
.cta-button:hover {
  background: #218838;
}
.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.task-list li {
  background: rgba(171, 40, 52, 0.2);
  border: 1px solid rgba(171, 40, 52, 0.4);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
}
.section {
  margin: 60px 0;
  padding: 0;
  color: var(--text-color);
}
.section:nth-child(even) {
  background: #121212;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-color);
}
.section p {
  text-align: center;
}
.section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.columns > div {
  padding: 0 20px;
  text-align: center;
}
.columns > .image-column {
  padding: 0;
}
.image-column {
  overflow: hidden;
}
.image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.problems .columns {
  align-items: center;
}

.intro-price {
  font-size: 1.2rem;
  margin: 10px 0;
}

.price-value {
  font-size: 2.2rem;
  color: var(--accent-color);
  font-weight: 700;
}

.price-highlight {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.payment-terms {
  background: rgba(171, 40, 52, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 10px 15px;
  margin: 20px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
}

.payment-terms .installment-price,
.payment-terms .full-price {
  color: var(--accent-color);
  font-weight: 700;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.benefits-list li {
  background: rgba(171, 40, 52, 0.1);
  border-left: 4px solid var(--accent-color);
  padding: 10px 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  text-align: left;
}

.guarantee {
  margin-top: 20px;
  font-weight: 600;
}
.guarantee-icon {
  display: block;
  margin: 10px auto;
  max-width: 150px;
}
.faq-item {
  border-bottom: 1px solid #333;
  padding: 15px 0;
}
.faq-item h4 {
  margin: 0;
  cursor: pointer;
  color: var(--accent-color);
  font-size: 1.3rem;
}
.faq-item p {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.faq-item.active p {
  margin-top: 10px;
  opacity: 1;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.benefit-card {
  background: rgba(171, 40, 52, 0.2);
  border: 1px solid rgba(171, 40, 52, 0.4);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-color);
  margin: 20px 30px;
}
.benefit-card h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}
.benefit-card p {
  font-size: 0.9rem;
}
.benefit-card .icon-placeholder {
  height: 40px;
  margin-bottom: 10px;
}

/* Timeline for the "Estrutura das 3 fases" section */
.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 40px;
}

@media (min-width: 769px) {
  .timeline {
    max-width: 650px;
  }
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 15px;
  width: 4px;
  background: var(--accent-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-title {
  position: relative;
  left: -25px;
  background: var(--accent-color);
  color: #fff;
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 8px;
  border-radius: 0 8px 8px 0;
  font-weight: 700;
  white-space: nowrap;
}

.timeline-item p {
  margin-bottom: 0;
  margin-left: 0;
}
footer {
  color: var(--text-color);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

@media (max-width: 768px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .section img {
    height: auto;
  }
}

/* Results carousel */
.results-carousel {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 20px auto 0;
}

.results-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.results-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 10px;
  cursor: pointer;
}

.results-carousel-prev {
  left: 10px;
}

.results-carousel-next {
  right: 10px;
}

.results-carousel-indicators {
  text-align: center;
  margin-top: 10px;
}

.results-carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.results-carousel-indicators button.active {
  background: var(--accent-color);
}

/* Decision paths section */
.decision-intro {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
}

.decision-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.decision {
  flex: 1 1 250px;
  background: rgba(171, 40, 52, 0.2);
  border: 1px solid rgba(171, 40, 52, 0.4);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.highlight-decision {
  background: var(--accent-color);
  color: #fff;
}

.highlight-decision p {
  font-size: 1.25rem;
  font-weight: 700;
}

.highlight-decision .cta-button {
  background: #28a745;
  color: #fff;
}

.cta-decision {
  display: block;
  margin: 20px auto 0;
  text-transform: uppercase;
}

/* Final call to action spacing */
.final-cta {
  padding: 40px 20px;
}

@media (min-width: 769px) {
  .highlight-decision {
    flex-basis: 100%;
  }
}
.lead-form-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.lead-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.lead-form label {
  display: block;
  margin-bottom: 5px;
  text-align: left;
}

.lead-form input {
  padding: 10px 15px;
  border: 1px solid rgba(171, 40, 52, 0.4);
  background: rgba(171, 40, 52, 0.2);
  border-radius: 8px;
  color: var(--text-color);
}

.lead-form .lead-submit-button {
  width: 100%;
  border: none;
}

.lead-form .lead-submit-button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.lead-form .lead-submit-button.loading {
  position: relative;
  color: transparent;
}

.lead-form .lead-submit-button.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #ff7272;
}

.error-message.active {
  display: block;
}
