/* EMS / Thailand Post tracking page */

.track-section .content-page {
    max-width: 720px;
}

.track-form {
    margin: 0 0 28px;
    padding: 20px 20px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(216, 54, 7, 0.1);
    box-shadow: var(--home-shadow, 0 8px 24px rgba(80, 40, 10, 0.06));
}

.track-form__label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--home-text, #2a211c);
}

.track-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.track-form__input {
    flex: 1 1 220px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #e0d6cb;
    border-radius: 12px;
    font-size: 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.track-form__input:focus {
    outline: none;
    border-color: rgba(216, 54, 7, 0.45);
    box-shadow: 0 0 0 3px rgba(232, 163, 23, 0.2);
}

.track-form__btn {
    min-height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: var(--brand, #d83607);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.track-form__btn:hover {
    background: #b82c05;
}

.track-form__hint {
    margin: 10px 0 0;
    font-size: 13px;
    color: #777;
}

.track-result {
    margin-top: 8px;
}

.track-result__header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff8ef, #fff);
    border: 1px solid rgba(216, 54, 7, 0.12);
    margin-bottom: 20px;
}

.track-result__label {
    margin: 0 0 4px;
    font-size: 13px;
    color: #888;
}

.track-result__barcode {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--brand, #d83607);
}

.track-result__latest {
    text-align: right;
}

.track-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(216, 54, 7, 0.1);
    color: var(--brand, #d83607);
    font-weight: 600;
    font-size: 14px;
}

.track-result__meta {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

.track-timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 8px;
    border-left: 2px solid #f0e4d6;
}

.track-timeline__item {
    position: relative;
    padding: 0 0 22px 22px;
}

.track-timeline__item:last-child {
    padding-bottom: 0;
}

.track-timeline__dot {
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d9cbb8;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #e8dccf;
}

.track-timeline__item.is-latest .track-timeline__dot {
    background: var(--brand, #d83607);
    box-shadow: 0 0 0 3px rgba(216, 54, 7, 0.18);
}

.track-timeline__status {
    margin: 0 0 6px;
    font-weight: 600;
    color: #2a211c;
    line-height: 1.45;
}

.track-timeline__item.is-latest .track-timeline__status {
    color: var(--brand, #d83607);
}

.track-timeline__meta {
    margin: 0;
    font-size: 13px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.track-timeline__loc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.track-alert {
    padding: 16px 18px;
    border-radius: 14px;
    margin: 8px 0 16px;
    background: #fff8e8;
    border: 1px solid #f0d9a8;
    color: #5c4a28;
}

.track-alert__title {
    margin: 0 0 6px;
    font-weight: 700;
}

.track-alert p {
    margin: 0 0 6px;
}

.track-alert p:last-child {
    margin-bottom: 0;
}

.track-official {
    margin: 18px 0 0;
}

.track-official__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand, #d83607);
    text-decoration: none;
}

.track-official__link:hover {
    text-decoration: underline;
}

.track-help {
    margin-top: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #faf7f2;
    border: 1px solid #efe6da;
}

.track-help h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--brand, #d83607);
}

.track-help ol {
    margin: 0 0 14px;
    padding-left: 1.25rem;
    line-height: 1.7;
}

.track-help code {
    background: #fff;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 0.92em;
}

@media (max-width: 575px) {
    .track-result__latest {
        text-align: left;
        width: 100%;
    }
    .track-form__btn {
        width: 100%;
        justify-content: center;
    }
}
