/* =====================================================================
   v94 — Mobile fixes: prevent iOS zoom on input focus + better touch UX
   ===================================================================== */

/* iOS auto-zooms inputs when font-size < 16px. Force 16px on mobile. */
@media (max-width: 768px) {
  input[type=text],
  input[type=email],
  input[type=password],
  input[type=tel],
  input[type=url],
  input[type=number],
  input[type=date],
  input[type=time],
  input[type=datetime-local],
  input[type=search],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Prevent zoom on double-tap for buttons */
button, a.btn, .btn-primary, .btn-secondary, .btn-danger, .btn-ghost, .btn-sm {
  touch-action: manipulation;
}

/* Better tap targets on mobile (min 44x44 per Apple HIG) */
@media (max-width: 768px) {
  button, .btn-primary, .btn-secondary, .btn-danger,
  .btn-ghost, .btn-sm, .btn-icon, a.btn {
    min-height: 44px;
  }
  .btn-icon {
    min-width: 44px;
  }
}

/* Better mobile form spacing */
@media (max-width: 480px) {
  .form-group {
    margin-bottom: 14px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* Prevent text selection on action buttons (cleaner feel on mobile) */
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost, .btn-sm,
.quick-nav-card, .toggle-card {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Ensure check page inputs don't zoom */
.check-form input,
.check-card input {
  font-size: 16px !important;
}
