/* index-enhancements.css — Apex Mobile & Computer Repairs
   Mobile responsive fixes for the track section on index.html
   Load AFTER style.css so it overrides cleanly */

/* ===========================================================
   TRACK SECTION — MOBILE RESPONSIVE
   =========================================================== */

/* Input: 16px font prevents iOS auto-zoom on focus */
.track-input-row input {
    font-size: 16px;
    -webkit-appearance: none;
    appearance: none;
  }
  
  /* Button: taller touch target */
  .track-input-row .btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  
  /* Demo ticket: hide perforation circles on narrow screens (they overflow) */
  @media (max-width: 760px) {
    .track-demo-ticket .ticket::before,
    .track-demo-ticket .ticket::after {
      display: none !important;
    }
  
    .track-demo-ticket .ticket {
      border-style: dashed;
      border-width: 1.5px;
    }
  }
  
  /* STACK input + button on phones */
  @media (max-width: 640px) {
    .track-section {
      padding: 40px 0;
    }
  
    .track-interactive {
      grid-template-columns: 1fr;
      gap: 28px;
      text-align: left;
    }
  
    .track-input-row {
      flex-direction: column;
      gap: 10px;
      max-width: 100%;
      margin: 0;
    }
  
    .track-input-row input {
      width: 100%;
      padding: 14px 16px;
      font-size: 16px;
      border-radius: var(--radius);
    }
  
    .track-input-row .btn {
      width: 100%;
      text-align: center;
      padding: 14px 20px;
      min-height: 50px;
      font-size: 1rem;
    }
  
    .track-demo-ticket {
      max-width: 100%;
    }
  
    .track-demo-label {
      font-size: 0.62rem;
      margin-bottom: 8px;
    }
  
    .track-demo-ticket .ticket {
      padding: 20px 18px;
      border-radius: 12px;
    }
  
    .track-demo-ticket .ticket-head {
      padding-bottom: 12px;
      margin-bottom: 12px;
      gap: 8px;
    }
  
    .track-demo-ticket .ticket-id {
      font-size: 0.95rem;
    }
  
    .track-demo-ticket .ticket-status {
      font-size: 0.65rem;
      padding: 3px 8px;
    }
  
    .track-demo-ticket .ticket-row {
      font-size: 0.85rem;
      padding: 5px 0;
    }
  
    .track-hint {
      font-size: 0.78rem;
      line-height: 1.6;
      margin-top: 14px;
    }
  
    .track-hint .icon {
      width: 8px;
      height: 8px;
    }
  }
  
  /* TINY PHONES — even tighter */
  @media (max-width: 380px) {
    .track-section {
      padding: 32px 0;
    }
  
    .track-input-row input {
      padding: 12px 14px;
      font-size: 16px;
    }
  
    .track-input-row .btn {
      padding: 12px 16px;
      min-height: 48px;
    }
  
    .track-demo-ticket .ticket {
      padding: 16px 14px;
      border-radius: 10px;
    }
  
    .track-demo-ticket .ticket-row {
      font-size: 0.8rem;
    }
  
    .track-demo-ticket .ticket-id {
      font-size: 0.88rem;
    }
  
    .track-hint {
      font-size: 0.72rem;
    }
  
    .section-head h2 {
      font-size: 1.25rem;
    }
  }
  
  /* Landscape phones — keep side-by-side but tighten */
  @media (max-width: 760px) and (orientation: landscape) and (max-height: 500px) {
    .track-interactive {
      grid-template-columns: 1fr 1fr;
      gap: 20px;
      align-items: center;
    }
  
    .track-input-row {
      flex-direction: row;
      max-width: 100%;
    }
  }
  
  /* ===========================================================
     SECTION HEAD — responsive tweaks for track section
     =========================================================== */
  
  @media (max-width: 640px) {
    .track-section .section-head {
      margin-bottom: 28px;
    }
  
    .track-section .section-head h2 {
      font-size: 1.35rem;
      line-height: 1.3;
    }
  
    .track-section .section-head p {
      font-size: 0.88rem;
    }
  }
  
  /* ===========================================================
     CONTAINER — safe area padding for notched phones
     =========================================================== */
  
  @media (max-width: 640px) {
    .track-section .container {
      padding-left: env(safe-area-inset-left, 16px);
      padding-right: env(safe-area-inset-right, 16px);
    }
  }
  
  /* ===========================================================
     TRACK HINT — arrows wrap nicely on mobile
     =========================================================== */
  
  @media (max-width: 480px) {
    .track-hint {
      text-align: center;
      word-spacing: 2px;
    }
  
    .track-hint .icon {
      margin: 0 2px;
    }
  }
  
  /* ===========================================================
     REDUCE MOTION — respect user preference
     =========================================================== */
  
  @media (prefers-reduced-motion: reduce) {
    .track-demo-ticket .ticket {
      transition: none;
    }
  }
  

