/* Shared customer tracking pages: registration and booking. */

.trk-page {
    --trk-navy: #102a43;
    --trk-navy-deep: #081b2c;
    --trk-gold: #b58a42;
    --trk-gold-soft: #f6efe3;
    --trk-ink: #172b4d;
    --trk-muted: #62748a;
    --trk-line: #dce5ef;
    --trk-card: #ffffff;
    --trk-radius: 1.35rem;
    max-width: 68rem;
    margin: 0 auto 1.5rem;
    color: var(--trk-ink);
}

.trk-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3.1rem) clamp(1.25rem, 4vw, 3rem) clamp(3.4rem, 6vw, 4.6rem);
    border-radius: 1.6rem;
    background:
        radial-gradient(circle at 92% 8%, rgba(181, 138, 66, .34), transparent 16rem),
        radial-gradient(circle at 8% 110%, rgba(255, 255, 255, .08), transparent 14rem),
        linear-gradient(145deg, #081b2c 0%, #102a43 58%, #1c4668 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(8, 27, 44, .18);
}

.trk-hero-top {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.trk-hero-icon {
    flex: 0 0 auto;
    width: 4.25rem;
    height: 4.25rem;
    display: grid;
    place-items: center;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(234, 215, 177, .45);
    color: #ead7b1;
    font-size: 1.55rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.trk-kicker {
    margin: 0 0 .35rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ead7b1;
}

.trk-hero h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.15;
    letter-spacing: -.02em;
    color: #fff;
}

.trk-lead {
    max-width: 40rem;
    margin: .75rem 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.02rem;
}

.trk-points {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.trk-points li {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .9);
    font-size: .82rem;
    font-weight: 600;
}

.trk-switch {
    display: inline-flex;
    gap: .35rem;
    margin-top: 1.35rem;
    padding: .3rem;
    border-radius: 999px;
    background: rgba(8, 27, 44, .35);
    border: 1px solid rgba(255, 255, 255, .12);
}

.trk-switch a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 650;
}

.trk-switch a.is-active,
.trk-switch a:hover {
    background: #fff;
    color: var(--trk-navy);
}

.trk-card {
    background: var(--trk-card);
    border: 1px solid var(--trk-line);
    border-radius: var(--trk-radius);
    box-shadow: 0 16px 40px rgba(16, 42, 67, .08);
}

.trk-search {
    position: relative;
    z-index: 2;
    margin: -2.4rem auto 1.5rem;
    max-width: 58rem;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.trk-search-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.15rem;
}

.trk-search-head i {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: var(--trk-gold-soft);
    color: #8a6828;
}

.trk-search-head h2 {
    margin: 0;
    font-size: 1.15rem;
}

.trk-search-head p {
    margin: .1rem 0 0;
    color: var(--trk-muted);
    font-size: .88rem;
}

.trk-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) auto minmax(0, 1fr) minmax(0, .95fr);
    gap: .85rem 1rem;
    align-items: end;
}

.trk-form-grid--booking {
    grid-template-columns: minmax(12rem, .7fr) minmax(0, 1.6fr);
}

.trk-field label {
    display: block;
    margin-bottom: .4rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #51657c;
}

.trk-hint {
    margin: .4rem 0 0;
    color: var(--trk-muted);
    font-size: .75rem;
    font-weight: 600;
}

.trk-field .form-control,
.trk-field .form-select,
.trk-field .input-group-text {
    min-height: 3.15rem;
    border-color: #d5e0eb;
    background: #f8fafc;
}

.trk-field .form-control,
.trk-field .form-select {
    border-radius: .85rem;
    font-weight: 500;
}

.trk-field .input-group .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.trk-field .input-group-text {
    border-radius: .85rem 0 0 .85rem;
    color: #7b8da1;
    background: #f3f6fa;
}

.trk-field .form-control:focus,
.trk-field .form-select:focus {
    border-color: #c4a36a;
    box-shadow: 0 0 0 .2rem rgba(181, 138, 66, .18);
    background: #fff;
}

.trk-or {
    display: grid;
    place-items: center;
    padding-bottom: .35rem;
}

.trk-or span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--trk-gold-soft);
    color: #8a6828;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.trk-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    width: 100%;
    margin-top: 1.15rem;
    min-height: 3.25rem;
    border: 0;
    border-radius: .95rem;
    background: linear-gradient(180deg, #d4b06a 0%, #b58a42 100%);
    color: #102a43;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 10px 22px rgba(181, 138, 66, .28);
}

.trk-cta:hover,
.trk-cta:focus {
    color: #081b2c;
    background: linear-gradient(180deg, #e0c07a 0%, #c4984c 100%);
}

.trk-notice {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin: 0 auto 1.15rem;
    max-width: 58rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.trk-notice i {
    margin-top: .15rem;
    font-size: 1.05rem;
}

.trk-notice--warn {
    background: #fff8eb;
    border-color: #f3ddb0;
    color: #8a5a12;
}

.trk-notice--empty {
    background: #f4f7fb;
    border-color: var(--trk-line);
    color: #3d5270;
}

.trk-notice--ok {
    background: #f3faf5;
    border-color: #c9ead4;
    color: #17663a;
}

.trk-result {
    margin-bottom: 1.15rem;
    overflow: hidden;
}

.trk-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.trk-ref {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.trk-ref i {
    color: var(--trk-gold);
}

.trk-result-head p {
    margin: .2rem 0 0;
    color: var(--trk-muted);
    font-size: .88rem;
}

.trk-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .8rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.trk-body {
    padding: 1.25rem 1.35rem 1.4rem;
}

.trk-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem .9rem;
    margin: 0;
}

.trk-facts div {
    min-width: 0;
}

.trk-facts .trk-span {
    grid-column: 1 / -1;
}

.trk-facts dt {
    margin: 0 0 .15rem;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7b8da1;
}

.trk-facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--trk-ink);
    overflow-wrap: anywhere;
}

.trk-fee {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .2rem .55rem;
    border-radius: .55rem;
    background: #f3faf5;
    border: 1px solid #b7e4c7;
    color: #17663a;
    font-size: .88rem;
}

.trk-split {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
    gap: 1.15rem;
    margin-bottom: 1.15rem;
}

.trk-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin: 0;
    padding: 1.05rem 1.25rem;
    border-bottom: 1px solid #eef2f6;
    font-size: 1rem;
}

.trk-panel-title span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.trk-count {
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--trk-gold-soft);
    color: #8a6828;
    font-size: .75rem;
    font-weight: 800;
}

.trk-progress {
    margin-bottom: 1.1rem;
}

.trk-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
    font-size: .82rem;
    font-weight: 700;
    color: #51657c;
}

.trk-bar {
    height: .45rem;
    border-radius: 999px;
    background: #e7eef5;
    overflow: hidden;
}

.trk-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #102a43, #b58a42);
}

.trk-rail {
    list-style: none;
    margin: 0;
    padding: 0;
}

.trk-rail li {
    display: grid;
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: .75rem;
    position: relative;
    padding-bottom: 1.05rem;
}

.trk-rail li:last-child {
    padding-bottom: 0;
}

.trk-rail li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 2rem;
    bottom: 0;
    width: 2px;
    background: #e4ebf2;
}

.trk-rail li:last-child::before {
    display: none;
}

.trk-rail li.is-done::before {
    background: #1f8a4c;
}

.trk-rail li.is-current::before {
    background: linear-gradient(#b58a42, #e4ebf2);
}

.trk-mark {
    position: relative;
    z-index: 1;
    width: 2.15rem;
    height: 2.15rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #f4f7fb;
    border: 2px solid #d7e1eb;
    color: #8aa0b5;
    font-size: .72rem;
    font-weight: 800;
}

.trk-rail li.is-done .trk-mark {
    background: #1f8a4c;
    border-color: #1f8a4c;
    color: #fff;
}

.trk-rail li.is-current .trk-mark {
    background: var(--trk-navy);
    border-color: var(--trk-gold);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(181, 138, 66, .22);
}

.trk-rail li.is-stop .trk-mark {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.trk-step strong {
    display: block;
    font-size: .92rem;
    line-height: 1.3;
}

.trk-rail li:not(.is-done):not(.is-current):not(.is-stop) .trk-step strong {
    color: #8aa0b5;
    font-weight: 600;
}

.trk-step small {
    display: block;
    margin-top: .1rem;
    color: var(--trk-muted);
    font-size: .78rem;
}

.trk-rail li.is-current .trk-step small {
    color: #8a6828;
    font-weight: 700;
}

.trk-stop {
    margin-top: 1rem;
    padding: .85rem .95rem;
    border-radius: .9rem;
    background: #fef3f2;
    border: 1px solid #f8d0cc;
    color: #912018;
    font-size: .9rem;
}

.trk-stop.is-muted {
    background: #f4f6f8;
    border-color: #e2e8ee;
    color: #3d4d61;
}

.trk-history {
    max-height: 24rem;
    overflow: auto;
    padding: .35rem 1.25rem 1.1rem;
}

.trk-history article {
    position: relative;
    margin-left: .45rem;
    padding: .85rem 0 .85rem 1rem;
    border-left: 2px solid #ead7b1;
}

.trk-history article::before {
    content: "";
    position: absolute;
    left: -.36rem;
    top: 1.15rem;
    width: .65rem;
    height: .65rem;
    border-radius: 999px;
    background: var(--trk-gold);
    box-shadow: 0 0 0 3px #fff;
}

.trk-history h3 {
    margin: 0 0 .25rem;
    font-size: .92rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem;
}

.trk-history p {
    margin: 0;
    color: var(--trk-muted);
    font-size: .8rem;
}

.trk-note {
    margin-top: .45rem !important;
    padding: .55rem .7rem;
    border-radius: .7rem;
    background: #f7f9fb;
    color: #3d5270 !important;
    font-size: .84rem !important;
}

.trk-docs .list-group-item {
    padding: .95rem 1.25rem;
    border-color: #eef2f6;
}

.trk-empty {
    margin: 0 auto 1.25rem;
    max-width: 40rem;
    padding: 2.4rem 1.4rem;
    text-align: center;
}

.trk-empty i.trk-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto .8rem;
    display: grid;
    place-items: center;
    border-radius: 1.1rem;
    background: var(--trk-gold-soft);
    color: #8a6828;
    font-size: 1.35rem;
}

.trk-empty h2 {
    font-size: 1.25rem;
    margin-bottom: .35rem;
}

.trk-empty p {
    color: var(--trk-muted);
    margin-bottom: 1rem;
}

.trk-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem 1rem;
    border-radius: 999px;
    border: 1px solid #d5e0eb;
    color: var(--trk-navy);
    text-decoration: none;
    font-weight: 700;
    background: #fff;
}

.trk-link:hover {
    border-color: var(--trk-gold);
    color: #8a6828;
}

.trk-trust {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: .85rem;
    margin-top: .4rem;
}

.trk-trust article {
    padding: 1.15rem 1.2rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid var(--trk-line);
    box-shadow: 0 8px 22px rgba(16, 42, 67, .05);
}

.trk-trust i {
    width: 2.3rem;
    height: 2.3rem;
    margin-bottom: .7rem;
    display: grid;
    place-items: center;
    border-radius: .7rem;
    background: #102a43;
    color: #ead7b1;
}

.trk-trust h2 {
    font-size: 1rem;
    margin: 0 0 .3rem;
}

.trk-trust p {
    margin: 0;
    color: var(--trk-muted);
    font-size: .88rem;
}

.trk-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: .85rem;
    min-height: 2.7rem;
    padding: .45rem 1rem;
    border-radius: 999px;
    background: #128c7e;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
}

.trk-wa:hover {
    background: #0e7569;
    color: #fff !important;
}

.trk-stack > * + * {
    margin-top: 1.15rem;
}

@media (max-width: 991.98px) {
    .trk-form-grid,
    .trk-facts,
    .trk-split,
    .trk-trust {
        grid-template-columns: 1fr 1fr;
    }

    .trk-or {
        display: none;
    }

    .trk-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767.98px) {
    .trk-hero {
        padding: 1.15rem 1rem 2rem;
    }

    .trk-hero-icon {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.25rem;
    }

    .trk-lead {
        font-size: .95rem;
    }

    .trk-points {
        margin-top: .8rem;
    }

    .trk-search {
        margin-top: -1.15rem;
        padding: 1rem;
    }

    .trk-hero-top {
        flex-direction: column;
    }

    .trk-form-grid,
    .trk-form-grid--booking,
    .trk-facts,
    .trk-split,
    .trk-trust,
    .trk-result-head {
        grid-template-columns: 1fr;
        display: grid;
    }

    .trk-result-head {
        display: flex;
        flex-direction: column;
    }

    .trk-switch {
        display: flex;
        width: 100%;
    }

    .trk-switch a {
        flex: 1;
        justify-content: center;
    }

    .trk-status {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .trk-cta,
    .trk-wa,
    .trk-link {
        transition: none;
    }
}

html[data-theme='dark'] .trk-page {
    --trk-ink: var(--theme-text);
    --trk-muted: var(--theme-muted);
    --trk-line: var(--theme-border);
    --trk-card: var(--theme-surface);
    --trk-gold-soft: #2a2418;
}

html[data-theme='dark'] .trk-card,
html[data-theme='dark'] .trk-trust article,
html[data-theme='dark'] .trk-empty,
html[data-theme='dark'] .trk-link {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme='dark'] .trk-field .form-control,
html[data-theme='dark'] .trk-field .form-select,
html[data-theme='dark'] .trk-field .input-group-text,
html[data-theme='dark'] .trk-note,
html[data-theme='dark'] .trk-bar,
html[data-theme='dark'] .trk-mark {
    background: var(--theme-surface-muted);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme='dark'] .trk-result-head,
html[data-theme='dark'] .trk-panel-title,
html[data-theme='dark'] .trk-docs .list-group-item {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme='dark'] .trk-history article::before {
    box-shadow: 0 0 0 3px var(--theme-surface);
}

html[data-theme='dark'] .trk-notice--warn {
    background: #3a2d16;
    border-color: #6a5324;
    color: #f6e7c8;
}

html[data-theme='dark'] .trk-notice--empty {
    background: var(--theme-surface-muted);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme='dark'] .trk-notice--ok {
    background: #163326;
    border-color: #215c3d;
    color: #d7f5e3;
}

html[data-theme='dark'] .trk-stop {
    background: #3a1d1b;
    border-color: #6d302b;
    color: #ffd7d3;
}

html[data-theme='dark'] .trk-stop.is-muted {
    background: var(--theme-surface-muted);
    border-color: var(--theme-border);
    color: var(--theme-text);
}
