/* Lacak Pesanan.
 *
 * The page has one job and one input, so the input is the page: a code field
 * set at the size of the thing it is asking for rather than tucked into a card
 * with a label. Everything else waits until there is an answer.
 *
 * The scan rail (.trk-*) is the storefront's existing one, reused as-is for the
 * history. What is new here is the split above it — where the parcel is now is
 * drawn as a different kind of object from where it has been, because that is
 * the question actually being asked.
 */

/* Vertical only. This element is also .wrap, and the padding shorthand would
   take its side gutter with it — invisible on a wide screen where everything is
   centred inside a max-width, and flush against the edge of a phone. */
.trk-page {
    padding-top: clamp(28px, 4vw, 52px);
    padding-bottom: clamp(60px, 8vw, 110px);
}

/* ---- the ask ------------------------------------------------------------ */

.trk-ask {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.trk-ask h1 {
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 600;
    margin: 10px 0 0;
}

.trk-ask p {
    margin: 14px auto 0;
    max-width: 44ch;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.6;
}

.trk-code {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    background: var(--gold-wash);
    color: var(--gold-deep);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .12em;
}

.trk-form { margin-top: clamp(26px, 4vw, 38px); }

/* The code is a serial number, read and typed character by character. Setting
   it in mono and letting it breathe is what makes it look like the thing
   printed on the confirmation rather than a search box. */
.trk-input {
    width: 100%;
    padding: 20px 22px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: clamp(18px, 3vw, 23px);
    font-weight: 500;
    letter-spacing: .14em;
    text-align: center;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.trk-input::placeholder {
    color: var(--ink-3);
    letter-spacing: .1em;
    text-transform: none;
}

.trk-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-wash);
}

.trk-input--tel {
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    text-transform: none;
}

/* Sized to its word, not to the field. The code input is the loud thing on this
   page; a primary bar of the same width underneath it just argues with it. */
.trk-submit { margin-top: 16px; min-width: 180px; }

.trk-hint {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--ink-3);
}

.trk-hint a {
    color: var(--gold-deep);
    border-bottom: 1px solid var(--gold-soft);
    padding-bottom: 1px;
}

.trk-error {
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid var(--gold-soft);
    border-radius: var(--r-sm);
    background: var(--gold-wash);
    color: var(--gold-deep);
    font-size: 13.5px;
    text-align: left;
}

@media (max-width: 575px) {
    .trk-input { padding: 17px 14px; letter-spacing: .1em; }
}
