.tracking-page { background: var(--paper); }
.tracking-page .site-header { background: var(--ink); }
.tracking-page nav a[aria-current="page"] { color: var(--amber); }
.tracking-main { min-height: 100vh; min-height: 100dvh; padding: 7.5rem 1.25rem 4rem; background: linear-gradient(180deg, var(--ink) 0 31rem, var(--paper) 31rem); }
.tracking-intro { max-width: 720px; margin: 0 auto 2rem; color: #fff; }
.tracking-intro h1 { max-width: none; font-size: clamp(4rem, 17vw, 7rem); }
.tracking-intro > p:last-child { max-width: 34rem; margin: 1.25rem 0 0; color: #c4c7c6; font-size: 1.05rem; }
.tracking-panel { width: min(100%, 900px); margin: 0 auto; }
.tracking-form { display: grid; gap: 1.15rem; padding: 1.5rem; border: 1px solid rgba(255,255,255,.16); border-top: 5px solid var(--amber); background: #171919; box-shadow: 0 24px 55px rgba(0,0,0,.22); color: #fff; }
.lookup-heading h2 { font-size: 2.35rem; }
.lookup-heading p { margin: .55rem 0 0; color: #aeb1b1; font-size: .92rem; }
.tracking-form label { margin: 0; color: #c8cbca; }
.tracking-form label span { display: block; margin-bottom: .45rem; }
.tracking-form input { margin: 0; padding: 1rem; border: 2px solid transparent; background: #fff; color: var(--ink); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.tracking-form input:focus { border: 2px solid var(--amber); }
.tracking-form .button { width: 100%; }
.demo-note { margin: 0; color: #929696; font-size: .78rem; text-align: left; }
.demo-note strong { color: #fff; }
.tracking-message { min-height: 1.6rem; margin: 2rem 0 0; color: #8b241e; font-weight: 600; }
.repair-result { margin-top: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--line); }
.repair-summary { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.result-label { margin: 0 0 .35rem; color: #777b7c; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; }
.repair-summary h2 { font-size: clamp(2.5rem, 12vw, 4rem); }
.status-badge { align-self: flex-start; padding: .55rem .8rem; background: var(--amber); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; }
.repair-details { display: grid; gap: 1rem; margin: 0; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.repair-details div { display: grid; gap: .2rem; }
.repair-details dt { color: #777b7c; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 700; }
.repair-details dd { margin: 0; font-weight: 600; }
.status-timeline { display: grid; gap: 0; margin: 0; padding: 2rem 0; list-style: none; }
.status-timeline li { position: relative; display: grid; grid-template-columns: 42px 1fr; gap: .8rem; min-height: 78px; color: #898c8c; }
.status-timeline li:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: 0; left: 15px; width: 2px; background: #d3d4d0; }
.status-timeline li > span { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid #c7c9c5; border-radius: 50%; background: #fff; font-size: .75rem; font-weight: 700; }
.status-timeline strong, .status-timeline small { display: block; }
.status-timeline strong { color: inherit; }
.status-timeline small { margin-top: .2rem; }
.status-timeline .complete, .status-timeline .active { color: var(--ink); }
.status-timeline .complete > span { border-color: var(--ink); background: var(--ink); color: #fff; }
.status-timeline .complete:not(:last-child)::after { background: var(--ink); }
.status-timeline .active > span { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.next-step { padding: 1.4rem; background: var(--paper); }
.next-step > p:not(.result-label) { margin: .25rem 0 1.25rem; }
.next-step .button { width: 100%; }

@media (min-width: 700px) {
  .tracking-main { padding: 10rem 3.5rem 6rem; background-position: top; }
  .tracking-intro { margin-bottom: 3rem; }
  .tracking-main { background: linear-gradient(180deg, var(--ink) 0 32rem, var(--paper) 32rem); }
  .tracking-form { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; padding: 2rem; }
  .lookup-heading { grid-column: 1 / -1; }
  .lookup-heading h2 { font-size: 3rem; }
  .tracking-form label { margin: 0; }
  .tracking-form .button { width: auto; }
  .demo-note { grid-column: 1 / -1; text-align: left; }
  .repair-result { padding: 2.5rem; }
  .repair-summary { flex-direction: row; align-items: center; justify-content: space-between; }
  .status-badge { align-self: center; }
  .repair-details { grid-template-columns: repeat(2, 1fr); }
  .next-step { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 2rem; }
  .next-step .result-label { grid-column: 1 / -1; }
  .next-step > p:not(.result-label) { margin: .25rem 0; }
  .next-step .button { width: auto; }
}

@media (min-width: 1024px) {
  .tracking-main { padding-left: 8vw; padding-right: 8vw; }
}
