/* Track result page */
.track-page {
    background: #f6f7f9;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.track-page__header {
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.track-page__header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
}

.track-page__header .homelink img {
    height: 44px;
    width: auto;
    display: block;
}

.track-page__main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.track-page__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 280px;
}

.track-page__loader-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.track-page__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaed;
}

.track-page__label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #f56900;
    margin: 0 0 4px;
}

.track-page__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #001a73;
    margin: 0;
    line-height: 1.2;
}

.track-page__code-wrap {
    text-align: right;
}

.track-page__code-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #667085;
    margin-bottom: 6px;
}

.track-page__code {
    margin: 0;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #001a73;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    box-shadow: 0 1px 2px rgba(0, 26, 115, 0.06);
}

.track-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #fde8d4;
    border-left: 3px solid #f56900;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #4a4a4a;
    line-height: 1.55;
    box-shadow: 0 1px 2px rgba(0, 26, 115, 0.04);
}

.track-notice__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f56900;
}

.track-notice--declined {
    background: #fff;
    border-color: #fecdca;
    border-left-color: #d92d20;
    color: #912018;
}

.track-notice--declined .track-notice__dot {
    background: #d92d20;
}

.track-notice--declined strong {
    font-weight: 700;
}

.track-notice--success {
    background: #fff;
    border-color: #abefc6;
    border-left-color: #17b26a;
    color: #085d3a;
}

.track-notice--success .track-notice__dot {
    background: #17b26a;
}

.track-notice--success strong {
    font-weight: 700;
    color: #067647;
}

.track-paid-panel {
    margin-top: 8px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 26, 115, 0.05);
}

.track-paid-panel__heading {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #001a73;
}

.track-paid-panel__text {
    margin: 0 0 20px;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #4a5568;
    max-width: 52rem;
}

.track-paid-panel__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    margin: 0;
    padding: 16px 18px;
    background: #f6f7f9;
    border-radius: 8px;
}

.track-paid-panel__facts dt {
    margin: 0 0 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085;
}

.track-paid-panel__facts dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #001a73;
}

.track-panel {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 24px 26px 28px;
    box-shadow: 0 2px 8px rgba(0, 26, 115, 0.05);
}

.track-page__loader.is-hidden {
    display: none;
}

.track-page__spinner {
    width: 32px;
    height: 32px;
    animation: pci-track-spin 0.9s linear infinite;
}

.track-page__spinner circle {
    fill: none;
    stroke: #f56900;
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 120 283;
}

.track-page__results[hidden] {
    display: none !important;
}

.track-result__grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 768px) {
    .track-result__grid {
        grid-template-columns: 1fr;
    }

    .track-page__title {
        font-size: 1.25rem;
    }

    .track-page__code-wrap {
        text-align: left;
        width: 100%;
    }

    .track-page__top {
        align-items: flex-start;
    }

    .track-panel {
        padding: 20px 18px 24px;
    }

    .track-actions__cta {
        display: block;
        text-align: center;
    }
}

.track-result__heading {
    color: #001a73;
    font-size: 1.0625rem;
    font-weight: 800;
    margin: 0 0 18px;
    line-height: 1.2;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f1f3;
}

.track-details__block {
    margin-bottom: 0;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.track-details__block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.track-details__block:first-of-type {
    padding-top: 0;
}

.track-details__label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 4px;
}

.track-details__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
}

.track-details__block:last-child .track-details__value {
    color: #001a73;
}

/* Timeline */
.track-timeline {
    position: relative;
    padding-left: 36px;
}

.track-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 32px;
    width: 2px;
    background: #f56900;
}

.track-timeline__item {
    position: relative;
    padding-bottom: 20px;
}

.track-timeline__item:last-child {
    padding-bottom: 0;
}

.track-timeline__icon {
    position: absolute;
    left: -36px;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f56900;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.track-timeline__item--current .track-timeline__icon {
    width: 28px;
    height: 28px;
    left: -38px;
    top: -2px;
}

.track-timeline__icon svg {
    width: 14px;
    height: 14px;
}

.track-timeline__item--current .track-timeline__icon svg {
    width: 16px;
    height: 16px;
}

.track-timeline__time {
    font-size: 0.8125rem;
    color: #767676;
    margin: 0 0 2px;
}

.track-timeline__text {
    font-size: 0.9375rem;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.4;
}

.track-timeline__item--current {
    margin-left: -10px;
    padding: 10px 10px 18px 10px;
    border-radius: 6px;
    background: #f9fafb;
    border-left: 3px solid #f56900;
}

.track-timeline__item--current .track-timeline__text {
    font-weight: 700;
    color: #001a73;
}

.track-timeline__item.is-folded {
    display: none;
}

.track-timeline.is-compact .track-timeline__item--foldable {
    display: none;
}

.track-timeline__toggle {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #001a73;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.track-timeline__toggle:hover {
    text-decoration: underline;
}

/* Payment */
.track-payment {
    margin-top: 28px;
    padding: 28px 26px 32px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 26, 115, 0.05);
}

.track-payment__header {
    margin-bottom: 24px;
}

.track-payment__heading {
    color: #001a73;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.35;
    max-width: 720px;
}

@media (min-width: 769px) {
    .track-payment__heading {
        font-size: 1.375rem;
    }
}

.track-payment__intro {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.55;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-payment__intro svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #008a00;
}

.track-payment__panel {
    display: grid;
    grid-template-columns: minmax(240px, 300px) 1fr;
    gap: 0;
    border: 1px solid #e2e4e9;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 26, 115, 0.06);
    background: #fff;
}

@media (max-width: 768px) {
    .track-payment__panel {
        grid-template-columns: 1fr;
    }
}

.track-payment__summary {
    background: linear-gradient(160deg, #001a73 0%, #0033a0 100%);
    color: #fff;
    padding: 28px 24px;
}

.track-payment__summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
    margin: 0 0 16px;
}

.track-payment__summary-lines {
    margin: 0 0 20px;
    padding: 0;
}

.track-payment__summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.875rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.track-payment__summary-row dt {
    margin: 0;
    font-weight: 400;
}

.track-payment__summary-row dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.track-payment__summary-row--meta {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8125rem;
    opacity: 0.85;
}

.track-payment__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    margin-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.9375rem;
}

.track-payment__summary-total strong {
    font-size: 1.625rem;
    font-weight: 800;
}

.track-payment__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.track-payment__trust li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.track-payment__trust svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.track-payment__form {
    padding: 28px 32px 32px;
    max-width: none;
    background: #fafbfc;
}


@media (max-width: 768px) {
    .track-payment__form {
        padding: 24px 20px 28px;
    }
}

.track-payment__fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.track-payment__legend {
    font-size: 1.0625rem;
    font-weight: 800;
    color: #001a73;
    margin-bottom: 16px;
    padding: 0;
}

.track-payment__accepted {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 6px;
}

.track-payment__accepted-label {
    font-size: 0.8125rem;
    color: #767676;
    font-weight: 600;
}

.track-payment__brand-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-payment__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.track-payment__field {
    margin-bottom: 18px;
}

.track-payment__field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.track-payment__field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #c8ccd4;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.track-payment__field input:hover {
    border-color: #767676;
}

.track-payment__field input:focus {
    outline: none;
    border-color: #6161ff;
    box-shadow: 0 0 0 3px rgba(97, 97, 255, 0.2);
}

.track-payment__field input.is-invalid {
    border-color: #c8102e;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.track-payment__field input.is-valid {
    border-color: #8bc98b;
    background-color: #fafcfa;
    box-shadow: 0 0 0 2px rgba(139, 201, 139, 0.25);
}

.track-payment__field input.is-valid:hover {
    border-color: #7ab87a;
}

.track-payment__field input.is-valid:focus {
    border-color: #8bc98b;
    box-shadow: 0 0 0 2px rgba(139, 201, 139, 0.3);
}

.track-payment__card-input {
    position: relative;
    display: flex;
    align-items: center;
}

.track-payment__card-input input {
    padding-right: 14px;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.track-payment__card-input.has-brand input {
    padding-right: 72px;
}

.track-payment__card-brand {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.track-payment__card-brand[hidden] {
    display: none !important;
}

.track-payment__card-brand .card-brand-img:not([src]) {
    display: none;
}

.track-payment__hint {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    color: #767676;
}

.track-payment__hint.is-error {
    color: #c8102e;
}

.track-payment__hint.is-success {
    color: #008a00;
}

.track-payment__cvc-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e8e8e8;
    color: #333;
    font-size: 0.6875rem;
    font-weight: 800;
    cursor: help;
}

.track-payment__submit {
    margin-top: 8px;
    width: 100%;
    height: 50px;
    border: none;
    background: #6161ff;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(97, 97, 255, 0.28);
}

.track-payment__submit svg {
    width: 18px;
    height: 18px;
}

.track-payment__submit:hover {
    background: #4f4fe6;
}

.track-payment__submit:active {
    transform: scale(0.99);
}

.track-payment__submit:disabled {
    background: #b8b8b8;
    cursor: not-allowed;
    transform: none;
}

.track-payment__secure {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: #767676;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.45;
}

.track-payment__secure svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #008a00;
}

.track-actions {
    margin-top: 24px;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #e2e4e9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 26, 115, 0.05);
}

.track-actions__heading {
    margin: 0 0 8px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #001a73;
}

.track-actions__text {
    margin: 0 0 18px;
    font-size: 0.875rem;
    color: #4a4a4a;
    line-height: 1.5;
}

.track-actions__cta {
    display: inline-block;
    padding: 13px 26px;
    background: #f56900;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(245, 105, 0, 0.25);
}

.track-actions__cta:hover {
    background: #e05f00;
    color: #fff;
    box-shadow: 0 3px 10px rgba(245, 105, 0, 0.3);
}
