.hero-section {
  position: relative;
  background-color: var(--color-hero-bg);
  padding: 0 var(--space-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/lp/sc/porto_belo/v1/img/imovel/hero/modern/hero_8.16ecd49d1af8.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-section > * {
  position: relative;
  z-index: 1;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--card-gap);
  max-width: 1200px;
  width: 100%;
  margin: var(--header-height) 0;
}

.hero-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  justify-content: center;
  padding: var(--section-padding);
  /* border: 1px solid #000; */
}

.hero-content h1 {
  font-size: var(--font-size-hero-title-m);
  font-weight: bold;
  line-height: 1.3;
  color: var(--color-hero-title);
}

.hero-content p {
  font-size: var(--font-size-h2);
  color: var(--color-hero-subtitle);
  line-height: 1.6;
}

.hero-form {
  flex: 1 1 40%;
}

.cta-internal-link {
  display: flex;
  align-items: center;
  justify-content: center;
}


@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    align-items: center;
  }

  .hero-form {
    padding-top: var(--header-height);
  }

  .hero-content,
  .hero-form {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .cta-internal-link {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .hero-container {
    margin: 0;
  }
  /* .hero-form {
    padding-top: 0;
  } */
  .hero-section {
    padding: var(--space-sm) var(--space-sm);
    max-height: auto;
  }

  .hero-content {
    padding: var(--section-padding-mobile) !important;
  }

  .hero-content h1 {
    font-size: var(--font-size-hero-title-m);
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .phone-fields {
    flex-direction: column;
  }

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

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

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

  .cta-internal-link {
    background-color: var(--color-btn-cta-internal-link-bg-mobile);
  }
}