/**
 * Business contact modal — mobile sheet refinements (≤480px).
 * Desktop/tablet presentation is unchanged; rules below are mobile-only.
 */

@media (max-width: 480px) {
  #contact-modal {
    padding: 12px;
    align-items: center;
  }

  #contact-modal [data-modal-panel] {
    width: calc(100% - 24px);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .contact-modal__header {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px 10px;
    border-radius: 1rem 1rem 0 0;
  }

  .contact-modal__header h2 {
    font-size: 1.0625rem;
    line-height: 1.3;
    padding-right: 2.75rem;
  }

  .contact-modal__close {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: 0.25rem;
    right: 0.125rem;
  }

  .contact-modal__body {
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 16px 16px;
  }

  .contact-modal__intro {
    margin-top: 0 !important;
    margin-bottom: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  #contact-modal form[data-contact-form="business-modal"] {
    margin-top: 10px !important;
    row-gap: 15px;
    column-gap: 15px;
  }

  #contact-modal form[data-contact-form="business-modal"] label {
    margin-bottom: 6px;
  }

  #contact-modal form[data-contact-form="business-modal"] input,
  #contact-modal form[data-contact-form="business-modal"] select {
    min-height: 44px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #contact-modal form[data-contact-form="business-modal"] textarea {
    min-height: 88px;
    max-height: 100px;
    resize: vertical;
  }

  #contact-modal form[data-contact-form="business-modal"] input:focus,
  #contact-modal form[data-contact-form="business-modal"] select:focus,
  #contact-modal form[data-contact-form="business-modal"] textarea:focus {
    scroll-margin-bottom: 72px;
  }

  .contact-modal-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-top: 2px;
  }

  .contact-modal-consent {
    line-height: 1.35;
    margin: 0;
  }

  .contact-modal-actions button[type="submit"] {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  #contact-modal [data-turnstile-container] {
    margin-top: 0.375rem !important;
    margin-bottom: 0.375rem !important;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
  }

  #contact-modal [data-turnstile-container] iframe {
    max-width: 100%;
  }

  #contact-modal [data-turnstile-live] {
    margin-bottom: 0.25rem !important;
    min-height: 0.875rem;
  }
}
