/* anyflo-footer.css
 * Where: Page Settings → Inside <head>  (pages with the footer)
 * Targets: one shared video layer beneath FAQ and the footer card; .form_input.is-select chevron; .form_input.is-textarea no resize
 */
.anyflo-footer-host {
  position: relative;
  isolation: isolate;
}
.anyflo-footer-stage {
  position: relative;
  z-index: 1;
  overflow: hidden;
  overflow: clip; /* clip, not hidden: keeps position: sticky working inside (legal contents) */
  background: transparent;
}
.anyflo-footer-background {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-color: var(--base-colors--cream-100);
  pointer-events: none;
  z-index: 0;
}
/* Figma 348:18121: 2145×1746 video rotated −60°, centred 1056px from the left
   and 591px above the bottom edge of the footer frame (all in rem, 1rem = 16px) */
.anyflo-footer-video {
  position: absolute;
  display: block;
  width: 134.05rem;
  height: 109.12rem;
  max-width: none;
  left: calc(66.01rem - 67.025rem);
  bottom: calc(36.93rem - 54.56rem);
  transform: rotate(-60deg);
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  /* fade the rotated frame's edges into the cream background — no hard seam */
  -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
  transition: opacity 0.6s ease;
}
.anyflo-footer-video.is-playing { opacity: 1; }
.section_home-faq.anyflo-shared-background {
  z-index: 1;
  background: transparent;
}
.anyflo-shared-background .home-faq_background-image {
  display: none;
}
.anyflo-footer-stage .footer_component {
  position: relative;
  z-index: 1;
  overflow: clip; /* Webflow sets hidden, which would break position: sticky inside */
}
.footer_component > .footer {
  will-change: clip-path;
}
/* Legal text and footer form a single white surface with one clip-path. */
.anyflo-legal-shared-card {
  overflow: clip;
  will-change: clip-path;
}
.anyflo-legal-shared-card .footer_component {
  position: relative;
  z-index: 1;
  overflow: clip;
}
.anyflo-legal-shared-card .footer_component > .footer {
  border-radius: 0;
  background: transparent;
  will-change: auto;
}
/* Tablet/mobile: anyflo-footer.js clips 1rem off each side of the card — the same as
   .padding-global there — so the content would touch the card edge. Keep 1rem inside. */
@media (max-width: 991px) and (prefers-reduced-motion: no-preference) {
  .footer_component > .footer .padding-global {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .anyflo-footer-video { display: none; }
}

/* ---- Form select: custom chevron from Figma (node 722:11619) instead of the native arrow ---- */
.form_input.is-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M4.5 6.75L9 11.25L13.5 6.75' stroke='%235A5A5A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.125rem 1.125rem;
}

/* ---- Form textarea ("Anything else?"): fixed size, no resize handle ---- */
.form_input.is-textarea {
  resize: none;
}

/* Figma 867:10524 / 868:10642 — native Webflow success, with a decorative
   blurred form underneath. No reset/Done action: the request stays sent. */
.footer_form-block .anyflo-form-success {
  position: relative;
  isolation: isolate;
  min-height: max(var(--anyflo-form-height, 37.625rem), 26rem);
  padding: 0;
  background: transparent;
  text-align: left;
}
.anyflo-form-success::before {
  content: "";
  position: absolute;
  inset: -2.5rem -4rem;
  z-index: -1;
  background: rgb(255 255 255 / 20%);
  pointer-events: none;
}
.anyflo-form-success-backdrop {
  position: relative;
  z-index: -2;
  filter: blur(1rem);
  opacity: .8;
  pointer-events: none;
  user-select: none;
}
.anyflo-form-success-backdrop .form_input { width: 100%; }
.anyflo-form-success-backdrop .is-textarea { color: #93928d; }
.anyflo-form-success-checkbox {
  flex: 0 0 auto;
  background: #f6f5f4;
  border-color: transparent;
}
.anyflo-form-success-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 28.875rem;
  padding: 4rem;
  border-radius: 1rem;
  background: var(--base-colors--white, #fff);
  box-shadow: 2.189rem 1.368rem 3.42rem rgb(0 0 0 / 8%);
  color: #000;
  text-align: center;
}
.anyflo-form-success-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}
.anyflo-form-success-title {
  margin: 0;
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.125;
  letter-spacing: -.045625rem;
}
.anyflo-form-success-text {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01875rem;
  color: rgb(0 0 0 / 60%);
}
.anyflo-form-success-link { width: 100%; }
.anyflo-form-success-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
@media (max-width: 991px) {
  .anyflo-form-success::before { inset: -1.5rem 0; }
}
@media (max-width: 479px) {
  .anyflo-form-success-card { padding: 2rem 1.5rem; }
}
