/* Desktop dialog: keep the complete form visible in an ordinary laptop viewport. */
@media (min-width: 1024px) {
  .contact-dialog[data-astro-cid-vk7npwyb] {
    max-height: calc(100dvh - 1rem);
    overflow: hidden;
    padding: .5rem;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] .dialog-card[data-astro-cid-vk7npwyb] {
    max-height: calc(100dvh - 1rem);
    overflow-y: auto;
    padding: clamp(1.25rem, 3vh, 2.4rem) clamp(2rem, 5vw, 4rem);
  }

  .contact-dialog[data-astro-cid-vk7npwyb] h2[data-astro-cid-vk7npwyb] {
    font-size: clamp(3rem, 7vh, 4.6rem);
    line-height: .78;
    margin: 0 0 clamp(1rem, 2.4vh, 1.5rem);
    max-width: none;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] .eyebrow[data-astro-cid-vk7npwyb] {
    margin-bottom: .5rem;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] form[data-astro-cid-vk7npwyb] {
    gap: clamp(.65rem, 1.5vh, .9rem);
  }

  .contact-dialog[data-astro-cid-vk7npwyb] input[data-astro-cid-vk7npwyb],
  .contact-dialog[data-astro-cid-vk7npwyb] textarea[data-astro-cid-vk7npwyb] {
    padding: .45rem .1rem;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] textarea[data-astro-cid-vk7npwyb] {
    min-height: 60px;
    max-height: 90px;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] .submit[data-astro-cid-vk7npwyb] {
    min-height: 46px;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] .dialog-alternatives[data-astro-cid-vk7npwyb] {
    margin-top: .8rem;
  }
}

/* Very short desktop windows remain usable without letting the card escape the viewport. */
@media (min-width: 1024px) and (max-height: 640px) {
  .contact-dialog[data-astro-cid-vk7npwyb] h2[data-astro-cid-vk7npwyb] {
    font-size: clamp(2.6rem, 6.5vh, 3.4rem);
    margin-bottom: .8rem;
  }

  .contact-dialog[data-astro-cid-vk7npwyb] .dialog-card[data-astro-cid-vk7npwyb] {
    padding-block: 1rem;
  }
}
