/* Hide the promotional footer only where permitted for the embedded form.
   Increase the iframe height before cropping, preserving the visible form area.
   Breakpoints use the embed's width, including forms in narrow desktop columns. */
.zoho-promo-clip {
  container-name: zoho-form;
  container-type: inline-size;
  height: var(--zoho-visible-height, var(--zoho-form-height, 500px));
  max-width: 100%;
  /* Unlike overflow:hidden, clip cannot scroll when an iframe field receives focus. */
  overflow: clip;
}

.zoho-promo-clip > iframe {
  --zoho-footer-crop: 70px;
  display: block;
  position: static !important;
  width: 100% !important;
  height: calc(var(--zoho-visible-height, var(--zoho-form-height, 500px)) + var(--zoho-footer-crop)) !important;
  max-width: 100%;
  border: 0;
}

/* Fixed article sidebars must fit the screen so Submit stays reachable. */
@media (min-width: 992px) {
  .form-fixed-col .zoho-promo-clip {
    --zoho-visible-height: min(var(--zoho-form-height, 1000px), calc(100svh - 32px));
  }
}

@container zoho-form (max-width: 580px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 140px; }
}

@container zoho-form (max-width: 360px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 160px; }
}

@container zoho-form (max-width: 320px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 180px; }
}

@container zoho-form (max-width: 280px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 200px; }
}

@container zoho-form (max-width: 260px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 220px; }
}

@container zoho-form (max-width: 220px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 240px; }
}

@container zoho-form (max-width: 200px) {
  .zoho-promo-clip > iframe { --zoho-footer-crop: 260px; }
}
