/* apply-responsive.css (H2)
   Loaded only when app_settings.apply_ui = 'new' (templates/header.php), on /apply-now and the journey steps.
   With 'old' this file is not loaded and the page is as before. Layout only: no field, validation or submit change.
   Every rule below answers a measured problem at 360 / 390 / 414 px. Keep it that narrow: broad rules on grids or on
   all inputs break the hero (which puts the form first on phones) and the calculator. */

@media (max-width: 575.98px) {
  /* Legal block: long e-mails and URLs were clipped by 2px at 360. */
  .psl-legal-body, .psl-legal-body a { overflow-wrap: anywhere; }

  /* Calculator: number boxes were 40px high and the slider hit area 8px. */
  .psl-calc__unit,
  #psl-calc-amount, #psl-calc-tenure, #psl-calc-rate, #psl-calc-fee { min-height: 44px; }
  .psl-calc__range { min-height: 44px; }

  /* Stand-alone links were 17-20px high: tall enough to tap, same look. */
  a.pl-link { display: inline-block; padding: 12px 0; }
  .psl-legal-body a { display: inline-block; padding: 6px 0; }
  .an-footer__links a { min-height: 44px; }
  .psl-card .col-md-4 a { display: inline-block; padding: 12px 0; }

  /* Journey progress bar: "Employment" ran into "Personal details" at 360. */
  .jr-progress li { font-size: .64rem; overflow-wrap: anywhere; min-width: 0; }

  /* Long forms (steps 2-4): keep Save & Continue in thumb reach. Same button, same submit.
     overflow:hidden on the card and hero disables sticky; clip looks the same (browsers without it: not sticky, still works). */
  .jr-card, .jr-hero { overflow: clip; }
  html { scroll-padding-bottom: 110px; } /* a focused field never sits under the bar */
  .jr-submit .jr-secure { margin-top: 6px; font-size: .68rem; white-space: nowrap; }
  .jr-submit { position: sticky; bottom: 0; z-index: 5; margin-left: -4px; margin-right: -4px; padding: 10px 4px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 12px -8px rgba(10, 30, 70, .25); }
}
