@media (max-width: 600px) and (orientation: portrait) {
  .contact-share-band {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .contact-share-copy {
    justify-content: center;
  }

  .contact-share-copy p {
    font-size: clamp(9px, 2.5vw, 10px);
    line-height: 1.3;
    text-align: center;
    white-space: normal;
  }

  .contact-email-alternative a {
    text-decoration: none;
  }

  .contact-scene footer .contact-return {
    margin-top: 12px;
  }
}

@media (max-width: 600px) and (orientation: portrait) and (min-height: 820px) {
  .contact-scene {
    padding-top: 112px !important;
    padding-bottom: max(36px, env(safe-area-inset-bottom)) !important;
  }

  .contact-layout {
    gap: 32px;
  }

  .contact-share-band {
    margin-top: 34px;
  }
}

@media (max-width: 600px) and (orientation: portrait) and (min-height: 731px) and (max-height: 819px) {
  .contact-scene {
    padding-top: 108px !important;
    padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
  }

  .contact-layout {
    gap: 28px;
  }

  #prototype-contact fieldset {
    row-gap: 17px;
  }

  .contact-share-band {
    margin-top: 16px;
  }
}

@media (max-width: 600px) and (orientation: portrait) and (max-height: 730px) {
  .contact-scene {
    padding-top: 105px !important;
    padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
  }

  .contact-layout {
    gap: 18px;
  }

  #prototype-contact fieldset {
    row-gap: 10px;
  }

  .contact-share-band {
    margin-top: 16px;
  }
}

@media (max-width: 340px) and (orientation: portrait) and (max-height: 730px) {
  .contact-scene {
    padding-top: 103px !important;
    padding-bottom: max(28px, env(safe-area-inset-bottom)) !important;
  }

  .contact-layout {
    gap: 12px;
  }

  #prototype-contact fieldset {
    row-gap: 6px;
  }

  #prototype-contact button {
    margin-top: 0;
  }

  .contact-share-band {
    margin-top: 8px;
    padding-block: 9px;
  }

  .contact-scene footer .contact-return {
    margin-top: 7px;
  }
}
