/* match-mobile.css: phone layout for the "Let us match you" wizard
 * (<section id="match"> on arizona.html / california.html, and the six city
 * pages build_city_page.py generates from them).
 *
 * Linked AFTER each page's inline <style>, so these rules win at equal
 * specificity. Below 600px the wizard becomes one full-width column: payment
 * choices stack instead of wrapping 2 + 1, the step buttons span the card,
 * and every field is 16px so iOS does not zoom into it on tap.
 */

@media (max-width: 600px) {
  .match-section { padding: 52px 16px 56px; }
  .match-section .section-title { line-height: 1.15; }
  .match-inner { width: 100%; }

  .form-card { padding: 26px 20px 24px; }
  .card-title { font-size: 26px; line-height: 1.2; }
  .card-desc { font-size: 14px; line-height: 1.6; }
  .form-row { margin-bottom: 18px; }

  .form-input, .form-select { font-size: 16px; padding-top: 13px; padding-bottom: 13px; }
  textarea.form-input { min-height: 110px; }

  /* Payment: three equal stacked buttons, never a lone orphan on its own row. */
  .payment-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .payment-chip { min-width: 0; width: 100%; padding: 14px 16px; font-size: 14px; }
  .payment-disclaimer { font-size: 12.5px; color: var(--mid, #6B7280); }

  /* Choice chips: comfortable tap targets that wrap cleanly. */
  .option-grid, .format-grid { gap: 8px; }
  .option-chip, .format-chip { min-height: 44px; padding: 11px 16px; font-size: 14px; }
  .format-chip { min-width: 0; flex: 1 1 calc(50% - 8px); }

  /* Step buttons: primary on top, full width; Back underneath. */
  .form-nav { flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 28px; }
  .form-nav > * { width: 100%; text-align: center; }
  .btn-form-next, .btn-form-submit { width: 100%; padding: 16px 20px; font-size: 14px; }
  .btn-form-back { width: 100%; padding: 13px 20px; }
  .form-nav > span:empty, .form-nav > div:empty { display: none; }

  .browse-directory { margin-top: 22px; }
}
