/* ========== PUBLIC TRACKING — SEARCH PAGE ========== */

.track-page--public {
    position: relative;
    padding: clamp(6rem, 12vw, 9rem) 0 5rem;
    min-height: 78vh;
    overflow: hidden;
}

.track-page__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(31, 76, 140, 0.22), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(242, 140, 40, 0.12), transparent),
        linear-gradient(180deg, #eef3fb 0%, #f8fafc 45%, #eef3fb 100%);
    pointer-events: none;
    z-index: 0;
}

.track-page__inner {
    position: relative;
    z-index: 1;
}

.track-hero__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #1f4c8c, #0b1f3f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 12px 28px rgba(11, 31, 63, 0.25);
}

.track-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: #0b1f3f;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.track-hero__lead {
    color: #5c6770;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1.05rem;
}

.track-panel {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 24px rgba(11, 31, 63, 0.08),
        0 0 0 1px rgba(31, 76, 140, 0.06);
    backdrop-filter: blur(10px);
}

.track-panel--search {
    padding: 1.75rem 1.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.track-panel--guide {
    padding: 1.75rem 1.5rem;
}

.track-field-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0b1f3f;
    margin-bottom: 0.5rem;
}

.track-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: stretch;
    position: relative;
}

.track-input-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #1f4c8c;
    opacity: 0.55;
    pointer-events: none;
    z-index: 2;
}

.track-input-pro {
    flex: 1 1 200px;
    min-width: 0;
    border: 2px solid #d5e0f3;
    border-radius: 0.875rem;
    padding: 0.95rem 2.75rem 0.95rem 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.track-input-pro:hover {
    border-color: #b8c9e8;
}

.track-input-pro:focus {
    border-color: #1f4c8c;
    box-shadow: 0 0 0 4px rgba(31, 76, 140, 0.15);
}

.track-submit-btn {
    flex: 0 0 auto;
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 0.875rem;
    padding-inline: 1.25rem;
    border: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.track-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.js-tracking-form.is-tracking-loading .track-submit-btn {
    opacity: 0.9;
    cursor: wait;
}

.track-field-error {
    color: #b42318;
    font-size: 0.9rem;
    margin: 0.75rem 0 0;
}

.track-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 76, 140, 0.1);
}

.track-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #3d4f6f;
    background: rgba(31, 76, 140, 0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
}

.track-hint i {
    color: #1f7a4c;
    font-size: 0.8rem;
}

.track-guide-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0b1f3f;
    margin-bottom: 1.25rem;
}

.track-step {
    height: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(31, 76, 140, 0.06) 0%, transparent 100%);
    border: 1px solid rgba(31, 76, 140, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .track-step:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(11, 31, 63, 0.08);
    }
}

.track-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: #1f4c8c;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.track-step__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0b1f3f;
    margin-bottom: 0.35rem;
}

.track-step__text {
    font-size: 0.9rem;
    color: #5c6770;
    line-height: 1.55;
    margin: 0;
}

@media (max-width: 767.98px) {
    .track-input-row {
        flex-direction: column;
    }

    .track-input-icon {
        top: calc(0.95rem + 0.5rem);
        transform: none;
    }

    .track-input-pro {
        padding-top: 0.95rem;
        padding-bottom: 0.95rem;
    }

    .track-submit-btn {
        width: 100%;
        min-height: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .track-step,
    .track-input-pro,
    .track-submit-btn {
        transition: none;
    }

    @media (hover: hover) {
        .track-step:hover {
            transform: none;
        }
    }
}
