/* The Right Fit Call uses a .ja-section, not the older .ja3-section booking
   selector in studio.css. Keep this scoped to the booking section only. */
body.joe-apps-wordpress .elementor #book-a-call .ja-bookings {
  display: block;
  width: 100%;
}

body.joe-apps-wordpress .elementor #book-a-call .ja-bookings iframe {
  display: block;
  width: 100%;
  height: 2300px;
  min-height: 2300px;
  border: 1px solid var(--ja3-line, #d8d9d6);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 767px) {
  /* Give the Microsoft form the usable page width, not the narrower text
     column. This avoids its 350px minimum content width at 390px. */
  body.joe-apps-wordpress .elementor #book-a-call .ja-bookings {
    width: calc(100vw - 16px) !important;
    max-width: none;
    margin-inline: calc(50% - 50vw + 8px);
  }

  body.joe-apps-wordpress .elementor #book-a-call .ja-bookings iframe {
    height: 2800px;
    min-height: 2800px;
  }
}

@media (max-width: 379px) {
  /* The third-party form cannot fit its own controls at these widths. Keep
     the existing direct Bookings action instead of presenting a clipped form. */
  body.joe-apps-wordpress .elementor #book-a-call .ja-bookings {
    display: none;
  }

  body.joe-apps-wordpress .elementor #book-a-call .ja-control-booking {
    width: 100%;
  }

  body.joe-apps-wordpress .elementor #book-a-call .ja-control-booking .elementor-button {
    width: 100%;
    min-height: 48px;
  }
}
