/* Keep full international phone numbers visible, including on narrow forms
   inside otherwise wide desktop/tablet layouts. Loaded after legacy styles. */
[data-formspree-form] [data-contact-fields] {
  grid-template-columns: minmax(0, 1fr);
}

[data-formspree-form] [data-contact-fields] > *,
[data-formspree-form] .managed-form__field {
  min-width: 0;
}

[data-formspree-form] input[name="phone"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
}

/* The imported homepage has two nested 32px gutters. At 320px those
   gutters leave only 152px for the whole form, even with a single column. */
@media (max-width: 480px) {
  :is([class~="px-8"], [class~="p-8"], [class~="p-10"], [class~="p-12"]):has(form[data-formspree-form]),
  form[data-formspree-form]:is([class~="px-8"], [class~="p-8"], [class~="p-10"], [class~="p-12"]) {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
