/* AVANZA Life IA 1.0.16.22 — iOS/mobile form focus no-zoom hotfix */
/*
 * Safari on iPhone automatically zooms the page when a focused form control
 * renders below 16px. AVANZA intentionally keeps browser pinch-zoom available
 * for accessibility; instead, controls use a native-app-like 16px focus size.
 */
@media (max-width:700px){
  html{
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

  /* Text-entry controls: keep >=16px so iOS opens only the keyboard and does
     not magnify/reflow the whole application. */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]),
  textarea,
  select,
  [contenteditable="true"],
  [contenteditable="plaintext-only"]{
    font-size:16px!important;
    -webkit-text-size-adjust:100%!important;
    text-size-adjust:100%!important;
  }

  /* Prevent tap double-zoom heuristics on form chrome while preserving
     normal scrolling, selection and browser accessibility zoom. */
  input,
  textarea,
  select,
  button,
  [contenteditable="true"],
  [contenteditable="plaintext-only"]{
    touch-action:manipulation;
  }

  /* Avoid focused fields widening their grid/flex parents on mobile. */
  input,
  textarea,
  select,
  .input,
  .textarea,
  .select{
    min-width:0!important;
    max-width:100%;
    box-sizing:border-box;
  }

  textarea{
    width:100%;
  }
}
