.new-hero {
  /* height: 100vh; */
  height: calc(100vh - 71px);  
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  position: relative;
  margin: 0;
  padding: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.hero-content {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  justify-content: space-between;
}

.hero-text-content {
  width: 65%;
  position: relative;
  z-index: 2;
  padding-bottom: 85;
}

.hero-heading {
  margin-bottom: 24px;
  max-width: 747px;
}

.hero-heading h1 {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
}

.company-logo {
  max-height: 79px;
  width: auto;
}

.hero-subtitle {
  max-width: 62ch;
}

.hero-subtitle p {
  margin: 0;
  line-height: 120%
}

.calculator-container {
  width: 35%;
  max-width: 336px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.custom-iframe {
  border: none; 
  margin: 0; 
  display: block; 
  background-color: transparent;
  width: 100%;
}

@media (max-width: 991px) {
  .hero-content {
    flex-direction: column; /* Text above calculator */
    align-items: flex-start;
    padding-bottom: 0; /* Remove the excessive padding */
  }
  
  .hero-text-content {
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px; /* Add space between text and calculator */
  }
  
  .calculator-container {
    width: 332px; /* Specific width as requested */
    max-width: 100%;
    margin: 0 auto 16px auto; /* Center the calculator */
  }
}

@media (max-width: 767px) {
  .new-hero {
    height: 100vh; /* Set to full viewport height as requested */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Align content to bottom */
    padding-top: 60px;
    padding-bottom: 16px; /* Reduce bottom padding */
    box-sizing: border-box; /* Include padding in height calculation */
  }

  .hero-container {
    height: auto; /* Allow container to size to content */
  }

  .hero-content {
    padding-bottom: 0; /* Remove the excessive padding */
    height: auto; /* Allow content to size naturally */
  }

  .hero-text-content {
    width: 100%;
    max-width: 100%;
    padding-left: 32px;
    padding-right: 32px; /* Add space between text and calculator */
  }

  .hero-heading h1 {
    font-size: 38px !important;
  }

  .hero-subtitle p {
    font-size: 18px !important;
    font-weight: 500 !important;
  }
  
  .logo-container {
    margin-left: 8px;
  }
  
  .company-logo {
    max-height: 30px;
  }
  
  .calculator-container {
    width: 336px; /* Specific width for mobile */
  }
  
  /* .custom-iframe {
    height: 355.68px; /* Match container height */
  /* } */ 
}

@media (max-width: 400px) {

  .hero-heading h1 {
    font-size: 36px !important;
  }

  .hero-subtitle p {
    font-size: 18px !important;
    font-weight: 500 !important;
  }
  
  .logo-container {
    margin-left: 8px;
  }
  
  .company-logo {
    max-height: 30px;
  }
  
  .calculator-container {
    width: 336px; /* Specific width for mobile */
  }
  
  /* .custom-iframe {
    height: 355.68px; /* Match container height */
  /* } */ 
}

@media (max-width: 387px) {

  .hero-heading h1 {
    font-size: 28px !important;
  }
}

