.m2-hero-cta,
.m2-hero-cta *,
.m2-hero-cta *::before,
.m2-hero-cta *::after {
  box-sizing: border-box;
}

.m2-hero-cta {
  position: relative;
  min-height: 0;
  padding: 95px 0;
  overflow: hidden;
  background: #444444;
}

/* Background */
.m2-hero-cta .hero__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.m2-hero-cta .hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(90deg, rgba(68, 68, 68, 0.8) 32.083%, rgba(102, 102, 102, 0) 100%);
}

/* Shared content */
.m2-hero-cta .hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
}

.m2-hero-cta .hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 508px;
}

.m2-hero-cta .hero__heading,
.m2-hero-cta .hero__box-title,
.m2-hero-cta .hero__box-desc {
  margin: 0;
  font-family: "Barlow", sans-serif;
  font-style: normal;
  text-transform: uppercase;
}

.m2-hero-cta .hero__heading {
  font-size: 52px;
  font-weight: 900 !important;
  line-height: 1;
  color: #ffffff;
}

.m2-hero-cta .hero__green {
  color: #16a500;
}

.m2-hero-cta .hero__desc {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

/* Buttons */
.m2-hero-cta .hero__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.m2-hero-cta .hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 32px;
  border: 2px solid #16a500;
  border-radius: 0;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.m2-hero-cta .hero__btn--outline {
  background: transparent;
  color: #16a500;
}

.m2-hero-cta .hero__btn--outline:hover,
.m2-hero-cta .hero__btn--outline:focus-visible {
  background: #16a500;
  color: #ffffff;
}

.m2-hero-cta .hero__btn--solid {
  background: #16a500;
  color: #ffffff;
}

.m2-hero-cta .hero__btn--solid:hover,
.m2-hero-cta .hero__btn--solid:focus-visible {
  border-color: #128000;
  background: #128000;
}

/* Chevron */
.m2-hero-cta .hero__arrow {
  position: absolute;
  z-index: 1;
  bottom: auto;
  right: 154px;
  top: .28px;
  width: 238px;
  height: 474px;
  pointer-events: none;
  line-height: 0;
}

.m2-hero-cta .hero__arrow svg {
  display: block;
  width: 238px;
  height: 474px;
}

/* ============================================================
   Solutions — Figma node 234:6209, 1440 × 499
   ============================================================ */

.m2-hero-cta.hero--solutions {
  min-height: 499px;
  padding: 80px 0;
}

.m2-hero-cta.hero--solutions .hero__inner {
  gap: 30px;
}

.m2-hero-cta .hero__boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  height: 176px;
  padding-top: 17px;
}

.m2-hero-cta .hero__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  height: 160px;
  margin: 0;
  padding: 31px;
  overflow: hidden;
  border: 1px solid #696969;
  background: #58595b;
}

.m2-hero-cta .hero__box-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 20px;
  letter-spacing: -0.2px;
  color: #57db28;
}

.m2-hero-cta .hero__box-desc {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}

.m2-hero-cta .hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  min-height: 133px;
}

.m2-hero-cta.hero--solutions .hero__text {
  flex: 1 1 auto;
  max-width: 704px;
}

.m2-hero-cta.hero--solutions .hero__heading {
  line-height: 0.9;
}

.m2-hero-cta.hero--solutions .hero__buttons {
  flex: 0 0 450px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

/* ============================================================
   Subscribe — Figma node 234:6283, 1440 × 410
   ============================================================ */

.m2-hero-cta.hero--subscribe {
  min-height: 410px;
  padding: 80px 0;
}

.m2-hero-cta.hero--subscribe .hero__inner {
  gap: 30px;
}

.m2-hero-cta.hero--subscribe .hero__text {
  max-width: 775px;
}

.m2-hero-cta.hero--subscribe .hero__heading {
  max-width: 747px;
}

.m2-hero-cta.hero--subscribe .hero__form {
  position: relative;
  z-index: 2;
  width: 680px;
  max-width: 100%;
}

/* HubSpot form layout. Content remains controlled by the selected form. */
.m2-hero-cta.hero--subscribe .hero__form form,
.m2-hero-cta.hero--subscribe .hero__form .hs-form {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100% !important;
  margin: 0 !important;
}

.m2-hero-cta.hero--subscribe .hero__form .form-title {
  display: none;
}

.m2-hero-cta.hero--subscribe .hero__form .hsfc-Step__Content {
  padding: 0;
}

.m2-hero-cta.hero--subscribe .hero__form .hsfc-NavigationRow__Buttons {
  padding: 0;
  justify-content: flex-start;
  align-items: flex-start;
}

.m2-hero-cta.hero--subscribe .hero__form .hsfc-NavigationRow {
  margin-top: 16px;
}

.m2-hero-cta.hero--subscribe .hero__form fieldset,
.m2-hero-cta.hero--subscribe .hero__form .form-columns-1,
.m2-hero-cta.hero--subscribe .hero__form .form-columns-2,
.m2-hero-cta.hero--subscribe .hero__form .hs-form-field,
.m2-hero-cta.hero--subscribe .hero__form .input {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Figma displays the configured placeholder without a separate visible label. */
.m2-hero-cta.hero--subscribe .hero__form .hs-form-field > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.m2-hero-cta.hero--subscribe .hero__form input[type="text"],
.m2-hero-cta.hero--subscribe .hero__form input[type="email"],
.m2-hero-cta.hero--subscribe .hero__form input[type="tel"],
.m2-hero-cta.hero--subscribe .hero__form input[type="url"],
.m2-hero-cta.hero--subscribe .hero__form input[type="number"],
.m2-hero-cta.hero--subscribe .hero__form select {
  display: block !important;
  width: 100% !important;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 30px !important;
  border: 2px solid #9e9e9e !important;
  border-radius: 0 !important;
  outline: 0;
  background: #595959 !important;
  box-shadow: none !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
}

.m2-hero-cta.hero--subscribe .hero__form textarea {
  display: block !important;
  width: 100% !important;
  min-height: 112px;
  margin: 0 !important;
  padding: 16px 30px !important;
  border: 2px solid #9e9e9e !important;
  border-radius: 0 !important;
  background: #595959 !important;
  box-shadow: none !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  resize: vertical;
}

.m2-hero-cta.hero--subscribe .hero__form input::placeholder,
.m2-hero-cta.hero--subscribe .hero__form textarea::placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}

.m2-hero-cta.hero--subscribe .hero__form input:focus,
.m2-hero-cta.hero--subscribe .hero__form select:focus,
.m2-hero-cta.hero--subscribe .hero__form textarea:focus {
  border-color: #ffffff !important;
}

.m2-hero-cta.hero--subscribe .hero__form .hs_submit {
  align-self: flex-start;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.m2-hero-cta.hero--subscribe .hero__form .hs_submit .actions {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.m2-hero-cta.hero--subscribe .hero__form input[type="submit"],
.m2-hero-cta.hero--subscribe .hero__form button[type="submit"],
.m2-hero-cta.hero--subscribe .hero__form .hs-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 158px;
  height: 56px !important;
  margin: 0 !important;
  padding: 0 32px !important;
  border: 2px solid #16a500 !important;
  border-radius: 0 !important;
  background: #16a500 !important;
  box-shadow: none !important;
  font-family: "Roboto", sans-serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
  color: #ffffff !important;
  text-shadow: none !important;
  cursor: pointer;
}

.m2-hero-cta.hero--subscribe .hero__form input[type="submit"]:hover,
.m2-hero-cta.hero--subscribe .hero__form input[type="submit"]:focus-visible,
.m2-hero-cta.hero--subscribe .hero__form button[type="submit"]:hover,
.m2-hero-cta.hero--subscribe .hero__form button[type="submit"]:focus-visible {
  border-color: #128000 !important;
  background: #128000 !important;
}

.m2-hero-cta.hero--subscribe .hero__form .hs-error-msgs,
.m2-hero-cta.hero--subscribe .hero__form .hs-error-msg,
.m2-hero-cta.hero--subscribe .hero__form .legal-consent-container,
.m2-hero-cta.hero--subscribe .hero__form .submitted-message {
  font-family: "Roboto", sans-serif;
  color: #ffffff;
}

.m2-hero-cta.hero--subscribe .hero__form .hs-error-msgs {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.m2-hero-cta.hero--subscribe .hero__arrow {
  top: 0.28px;
  right: 154px;
  bottom: auto;
}

/* Responsive */
@media (max-width: 1230px) {
  .m2-hero-cta.hero--subscribe .hero__arrow {
    top: 80px;
  }
  
  .m2-hero-cta.hero--subscribe .hero__arrow svg {
    width: 113px;
  }
}

@media (max-width: 1050px) {
  .hero--footer .hero__arrow,
  .hero--footer .hero__arrow svg {
    width: 103px;
    right: 0;
    top: 105px;
  }
}

@media (max-width: 1099px) {
  .m2-hero-cta.hero--solutions {
    min-height: 0;
    padding: 64px 0;
  }

  .m2-hero-cta .hero__boxes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto;
    padding-top: 0;
  }

  .m2-hero-cta .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }

  .m2-hero-cta.hero--solutions .hero__buttons {
    flex: 0 1 auto;
    justify-content: flex-start;
  }
}

@media (max-width: 995px) {
  .m2-hero-cta.hero--subscribe .hero__arrow {
    display: block;
  }
}

@media (max-width: 767px) {
  .m2-hero-cta {
    min-height: 0;
    padding-top 80px;
    padding-bottom: 100px;
  }
  
  .m2-hero-cta.hero--subscribe .hero__arrow {
    width: 113px;
    right: 0;
  }
  
  .m2-hero-cta.hero--solutions {}
  
  .m2-hero-cta.hero--subscribe {
    padding-top: 80px;
    padding-bottom: 120px;
  }

  .m2-hero-cta .hero__heading {
    font-size: 34px;
    line-height: 1;
  }

  .m2-hero-cta .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .m2-hero-cta .hero__btn {
    width: auto;
  }

  .m2-hero-cta .hero__boxes {
    grid-template-columns: 1fr;
  }

  .m2-hero-cta .hero__box {
    height: auto;
    min-height: 160px;
    padding: 24px;
  }

  .m2-hero-cta .hero__box-title {
    font-size: 32px;
  }

  .m2-hero-cta.hero--solutions .hero__buttons,
  .m2-hero-cta.hero--subscribe .hero__form {
    width: 100%;
  }
}
