/* =====================================================
   Freight quote call to action on the tracking pages
   /track-shipment and /track-shipment/result
   All rules use the frtrk-cta- prefix so they cannot collide with legacy styles.
   ===================================================== */

/* ---- Quote box (result page, and the not-found / error state on the search page) ---- */

.frtrk-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 1.75rem;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-left: 4px solid #e42822;
    border-radius: 8px;
    box-sizing: border-box;
}

.frtrk-cta-text {
    min-width: 0;
}

.frtrk-cta-headline {
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #0D2137;
}

.frtrk-cta-subline {
    margin-top: 2px;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #5e7082;
}

.frtrk-cta-box a.frtrk-cta-btn {
    flex: 0 0 auto;
    display: inline-block;
    padding: 12px 20px;
    background: #e42822;
    border-radius: 8px;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    /* !important: on the search page the legacy rule
       .frpage-tracking a:not(.frpage-cta) { color: #1565C0 !important; } would turn this text blue */
    color: #ffffff !important;
    transition: background-color 0.2s ease;
}

    .frtrk-cta-box a.frtrk-cta-btn:hover,
    .frtrk-cta-box a.frtrk-cta-btn:focus {
        background: #c41f1a;
        text-decoration: none;
        color: #ffffff !important;
    }

/* ---- Slim text line under the tracking form (search page) ---- */

.frtrk-cta-line {
    max-width: 680px;
    margin: 0.9rem auto 0;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #5e7082;
    text-align: center;
}

    .frtrk-cta-line a {
        color: #1565C0;
        font-weight: 600;
        text-decoration: none;
    }

        .frtrk-cta-line a:hover {
            text-decoration: underline;
        }

/* ---- Public tracking view (logged-out visitors, /track-shipment/result) ---- */

.frtrk-pub-number-label {
    display: inline-block;
    margin-right: 0.4rem;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    color: #9fb8d6;
}

.frtrk-pub-signin {
    margin: 0 0 1.25rem;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #5e7082;
}

    .frtrk-pub-signin a {
        color: #1565C0;
        font-weight: 600;
        text-decoration: none;
    }

        .frtrk-pub-signin a:hover {
            text-decoration: underline;
        }

/* ---- Not found message (search page) ---- */

.frtrk-notfound {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 1rem;
    padding: 0.95rem 1.15rem;
    background: #f7f9fc;
    border: 1px solid #dde3ec;
    border-left: 4px solid #1565C0;
    border-radius: 0 10px 10px 0;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.frtrk-notfound-icon {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e3ecf8;
    color: #1565C0;
}

.frtrk-notfound-body {
    min-width: 0;
}

.frtrk-notfound-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #0D2137;
}

.frtrk-notfound-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.55;
    color: #3d4f63;
}

/* ---- Destination zip check on the tracking form ---- */

.frtrk-zip-validation {
    margin-top: 0.45rem;
    font-family: 'Figtree', -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #c62828;
}

/* ---- Phones: stack the text and use a full width button ---- */

@media (max-width: 680px) {
    .frtrk-cta-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .frtrk-cta-box a.frtrk-cta-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        white-space: normal;
    }
}
