/* Hero Block Contact v3 */
.hero-block-contact-v3 {
  position: relative;
  padding-top: 72px;
  padding-bottom: 72px;
  background: #fff;
  overflow: hidden;
}

.hero-block-contact-v3::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(
    1200px 600px at 20% 20%,
    rgba(107, 76, 255, 0.6) 0%,
    rgba(45, 27, 105, 0.95) 40%,
    rgba(25, 12, 68, 1) 100%
  );
  z-index: 0;
}

.hero-block-contact-v3__container {
  position: relative;
  z-index: 1;
}

.hero-block-contact-v3__group-title {
  margin-bottom: 32px;
}
.hero-block-contact-v3__heading {
  margin: 0 0 28px;
  line-height: 1.12;
}

.hero-block-contact-v3__logos,
.hero-block-contact-v3__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.hero-block-contact-v3__logo,
.hero-block-contact-v3__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.hero-block-contact-v3__badge img {
  max-height: 86px;
}

.hero-block-contact-v3__right {
  position: relative;
}

.hero-block-contact-v3-form {
  position: relative;
  margin: 48px 0 0 48px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 56px 0 rgba(0, 0, 0, 0.16);
  padding: 24px;
}

.hero-block-contact-v3-form__title {
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 12px;
}

.hero-block-contact-v3-form__subtitle {
  font-size: 18px;
  line-height: 28px;
  margin-bottom: 24px;
}

ul.hero-block-contact-v3-form__features {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 6px;
}

ul.hero-block-contact-v3-form__features li {
  list-style: none;
  padding-left: 0 !important;
}

.hero-block-contact-v3-form__form {
  margin-bottom: 16px;
}

.contact-form.container.footer {
  padding: 0;
}

/* CF7 styling – copied from hero-v3 patterns */
.hero-block-contact-v3-form__form input[type="text"],
.hero-block-contact-v3-form__form input[type="email"],
.hero-block-contact-v3-form__form input[type="tel"],
.hero-block-contact-v3-form__form input[type="url"],
.hero-block-contact-v3-form__form input[type="number"],
.hero-block-contact-v3-form__form select,
.hero-block-contact-v3-form__form textarea {
  width: 100%;
  border: 1px solid #bfbfbf !important;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 20px;
  outline: none;
}

.hero-block-contact-v3-form__form textarea {
  min-height: 110px;
  resize: vertical;
}

.hero-block-contact-v3-form__form input:focus,
.hero-block-contact-v3-form__form select:focus,
.hero-block-contact-v3-form__form textarea:focus {
  border-color: rgba(107, 76, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(107, 76, 255, 0.14);
}

.hero-block-contact-v3-form__form input[type="submit"],
.hero-block-contact-v3-form__form button,
.hero-block-contact-v3-form__form .wpcf7-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--primary-color, #6b4cff);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 18px;
  line-height: 18px;
  box-shadow: 0 12px 28px rgba(107, 76, 255, 0.22);
}

.hero-block-contact-v3-form__form .wpcf7-not-valid-tip {
  font-size: 12px;
}

.hero-block-contact-v3-form__form .wpcf7-response-output {
  margin: 10px 0 0;
  font-size: 12px;
  border-radius: 10px;
}
.footer-block__trust {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.footer-block__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 16px;
  white-space: nowrap;
}
@media only screen and (max-width: 991px) {
  .hero-block-contact-v3 {
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .hero-block-contact-v3::after {
    display: none;
  }

  .hero-block-contact-v3-form {
    margin: 18px 0 0;
    max-width: 100%;
  }
}

/* Desktop: sponsors in a strict 3-column grid */
@media (min-width: 992px) {
  .hero-block-contact-v3__logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 72px;
  }
  .footer-block__trust {
    display: flex;
    justify-content: space-around;
  }
}

/* Mobile: horizontal scroll logo rows */
@media (max-width: 767.98px) {
  .hero-block-contact-v3__logos,
  .hero-block-contact-v3__badges {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 8px;
  }
  .hero-block-contact-v3__logos {
    margin-bottom: 32px;
  }

  .hero-block-contact-v3__logos::-webkit-scrollbar,
  .hero-block-contact-v3__badges::-webkit-scrollbar {
    display: none;
  }

  .hero-block-contact-v3__logo,
  .hero-block-contact-v3__badge {
    flex: 0 0 auto;
  }

  .hero-block-contact-v3__group-title {
    font-size: 24px;
  }
    .wpcf7 input,
    .wpcf7 textarea,
    .wpcf7 select {
      font-size: 16px !important;
    }
  
}
