/*
 * Typeform block
 * Kept out of main.css because that file is build output — a theme rebuild would
 * overwrite anything added there.
 * Padding matches .enquiry-form__form so the block lines up with the rest of the site.
 */

.typeform-block__inner {
  max-width: 90rem;
  margin: 0 auto;
}

.typeform-block__form {
  padding: 5vw 8.3333333333vw;
}

.typeform-block__embed {
  width: 100%;
}

.typeform-block__placeholder {
  margin: 0;
  text-align: center;
}

.typeform-block__cta {
  padding: 5vw 8.3333333333vw;
}

.typeform-block__cta-text {
  margin: 0;
  /* Overrides the 1.875vw from .small-heading — main.css loads first, so this wins. */
  font-size: 30px;
}

.typeform-block__cta-heading {
  margin-top: 1.5em;
  margin-bottom: 0;
}

/* Underline that wipes in on hover, matching .enquiry-form__cta links. */
.typeform-block__cta-link {
  position: relative;
  display: inline-block;
  color: #ffffff9c;
  text-decoration: none;
}

.typeform-block__cta-link span {
  position: relative;
}

.typeform-block__cta-link span::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.4s ease-out;
}

.typeform-block__cta-link:hover span::before {
  clip-path: inset(0);
}

@media only screen and (min-width: 1440px) {
  .typeform-block__form,
  .typeform-block__cta {
    padding: 4.5rem 7.5rem;
  }
}

@media only screen and (min-width: 0px) and (max-width: 1024px) {
  .typeform-block__form,
  .typeform-block__cta {
    padding: 3rem;
  }
}

@media only screen and (min-width: 0px) and (max-width: 750px) {
  .typeform-block__form,
  .typeform-block__cta {
    padding: 2.25rem 1.5rem;
  }
}
