/* inquiry-form-mobile.css - Mobile optimization */
@media (max-width: 749px) {
  /* body / wrapper: smaller margins for more horizontal space */
  body {
    padding: 12px !important;
  }

  .form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 18px 16px !important;
  }

  /* Title: 28px → 22px to avoid wrapping on narrow screens */
  .form-header h2 {
    font-size: 22px !important;
  }

  /* Checkbox: larger touch targets + line height */
  .checkbox-item {
    min-height: 40px !important;
    padding: 6px 0 !important;
    align-items: center !important;
  }

  .checkbox-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
  }

  .checkbox-item label {
    font-size: 15px !important;
  }

  /* Text input: ≥16px to prevent iOS auto-zoom, height ≥44px */
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
  }

  /* Submit button: raise height to 48px */
  .submit-btn {
    min-height: 48px !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
  }

  /* Terms checkbox row: larger touch targets */
  .terms-item input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
  }

  /* Form label sizes: keep at 14px with explicit declaration */
  .form-group label,
  .form-section > label {
    font-size: 14px !important;
  }

  /* form-section: add 4px padding left/right to prevent long labels from touching edges */
  .form-section {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* "Looking to get" inline 2-column grid forced to single column on narrow screens */
  .form-section .checkbox-grid {
    grid-template-columns: 1fr !important;
  }

  /* form-row (First/Last, Phone/Timezone, State/Org): force single column on 500-749px range */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  /* Global line-break safety: any overly long token/URL/email won't break the container */
  .form-wrapper,
  .form-wrapper * {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
  }

  .form-wrapper img,
  .form-wrapper table,
  .form-wrapper pre {
    max-width: 100% !important;
  }

  /* form-image: ensure responsive + height limit, avoid large images taking full screen on mobile */
  .form-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto 16px !important;
  }

  /* textarea: raise minimum height for more comfortable typing when mobile keyboard is open */
  .form-group textarea {
    min-height: 120px !important;
  }

  /* Terms long text: slightly smaller font + increased line height for readability */
  .terms-item {
    gap: 12px !important;
    margin-bottom: 14px !important;
  }

  .terms-item label {
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  /* Footer links: line-break protection + line height */
  .footer-links {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .footer-links a {
    display: inline-block !important;
  }

  /* Title and subtitle: line height + line-break protection */
  .form-header h2 {
    line-height: 1.3 !important;
    word-break: break-word !important;
  }

  .form-header p {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* Submit button: line-break protection */
  .submit-btn {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.3 !important;
  }

  /* form-group label / section label: line-break protection */
  .form-group label,
  .form-section > label {
    line-height: 1.45 !important;
    word-break: break-word !important;
  }
}
