.rt-public {
    --rt-orange: #f19e00;
    --rt-orange-dark: #d38400;
    --rt-navy: #11396a;
    --rt-black: #181c23;
    --rt-body: #353e4b;
    --rt-muted: #687386;
    --rt-border: #d6dde8;
    --rt-divider: #ebeef3;
    --rt-background: #f7f8fb;
    --rt-progress-off: #e1e5ec;
    --rt-green: #168442;
    --rt-red: #be2837;
    box-sizing: border-box;
    max-width: 920px;
    margin: 36px auto;
    padding: 34px 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(241, 158, 0, .13) 0 115px, transparent 116px),
        radial-gradient(circle at 0 100%, rgba(17, 57, 106, .06) 0 95px, transparent 96px),
        var(--rt-background);
    color: var(--rt-black);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rt-public *,
.rt-public *::before,
.rt-public *::after {
    box-sizing: border-box;
}

.rt-public-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rt-brand-logo {
    display: block;
    width: 190px;
    max-width: 55%;
    height: 104px;
    margin: 0 auto 6px;
    object-fit: contain;
}

.rt-eyebrow {
    color: var(--rt-orange-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.rt-public-header h2 {
    margin: 8px 0 0;
    color: var(--rt-black);
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.rt-public-header p {
    margin: 10px 0 0;
    color: var(--rt-muted);
    font-size: 15px;
    line-height: 1.6;
}

.rt-search-card,
.rt-status,
.rt-details {
    border: 1px solid var(--rt-divider);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(17, 57, 106, .07);
}

.rt-search-card {
    max-width: 660px;
    margin: 28px auto 0;
    padding: 22px;
}

.rt-search {
    margin: 0;
}

.rt-search label {
    display: block;
    margin: 0 0 8px;
    color: var(--rt-navy);
    font-size: 13px;
    font-weight: 800;
}

.rt-search-controls {
    display: flex;
    gap: 10px;
}

.rt-search input {
    flex: 1;
    min-width: 0;
    height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--rt-border);
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--rt-black);
    font: inherit;
    font-size: 16px;
    line-height: 54px;
    text-transform: uppercase;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rt-search input::placeholder {
    color: #919aaa;
    opacity: 1;
    text-transform: none;
}

.rt-search input:focus {
    border-color: var(--rt-orange);
    box-shadow: 0 0 0 4px rgba(241, 158, 0, .13);
}

.rt-search button {
    min-height: 54px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    background: var(--rt-orange);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(241, 158, 0, .22);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.rt-search button:hover {
    transform: translateY(-2px);
    background: var(--rt-orange-dark);
    box-shadow: 0 10px 22px rgba(211, 132, 0, .28);
}

.rt-search button:focus-visible {
    outline: 3px solid rgba(17, 57, 106, .28);
    outline-offset: 3px;
}

.rt-result {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.rt-status {
    position: relative;
    overflow: hidden;
    padding: 23px 24px 23px 28px;
}

.rt-status::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--rt-green);
    content: "";
}

.rt-status.is-pending::before {
    background: var(--rt-red);
}

.rt-status > span {
    color: var(--rt-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rt-status h3 {
    margin: 6px 0 0;
    color: var(--rt-green);
    font-size: clamp(22px, 4vw, 27px);
    font-weight: 800;
    line-height: 1.25;
}

.rt-status.is-pending h3 {
    color: var(--rt-red);
}

.rt-status p {
    margin: 8px 0 0;
    color: var(--rt-body);
    font-size: 14px;
    line-height: 1.65;
}

.rt-progress {
    display: flex;
    margin: 0;
    padding: 24px 12px 20px;
    border: 1px solid var(--rt-divider);
    border-radius: 18px;
    background: #fff;
    list-style: none;
    box-shadow: 0 10px 35px rgba(17, 57, 106, .05);
}

.rt-progress li {
    flex: 1;
    position: relative;
    min-width: 0;
    text-align: center;
}

.rt-progress li:not(:first-child)::before {
    position: absolute;
    z-index: 0;
    top: 18px;
    right: 50%;
    left: -50%;
    height: 3px;
    background: var(--rt-progress-off);
    content: "";
}

.rt-progress li.is-complete:not(:first-child)::before {
    background: var(--rt-navy);
}

.rt-progress li > span {
    display: grid;
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    margin: auto;
    place-items: center;
    border-radius: 50%;
    background: var(--rt-progress-off);
    color: var(--rt-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.rt-progress li.is-complete > span {
    background: var(--rt-navy);
    color: #fff;
    box-shadow: 0 5px 13px rgba(17, 57, 106, .22);
}

.rt-progress small {
    display: block;
    margin-top: 9px;
    padding: 0 3px;
    color: var(--rt-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.rt-progress li.is-complete small {
    color: var(--rt-navy);
    font-weight: 800;
}

.rt-details {
    padding: 24px;
}

.rt-details h3 {
    margin: 0 0 8px;
    color: var(--rt-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.rt-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 0;
    border-bottom: 1px solid var(--rt-divider);
}

.rt-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rt-detail > span {
    color: var(--rt-muted);
    font-size: 13px;
}

.rt-detail > strong {
    color: var(--rt-black);
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    overflow-wrap: anywhere;
}

.rt-not-found {
    max-width: 660px;
    margin: 18px auto 0;
    padding: 19px 22px;
    border: 1px solid #efc55e;
    border-radius: 14px;
    background: #fff8df;
    color: #755500;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    text-align: center;
}

.rt-public-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 14px;
    margin-top: 23px;
    color: var(--rt-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.rt-public-footer a {
    color: var(--rt-orange-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .rt-public {
        margin: 20px auto;
        padding: 26px 16px;
        border-radius: 20px;
        background:
            radial-gradient(circle at 100% 0, rgba(241, 158, 0, .11) 0 75px, transparent 76px),
            var(--rt-background);
    }

    .rt-brand-logo {
        width: 165px;
        height: 92px;
    }

    .rt-public-header p {
        font-size: 14px;
    }

    .rt-search-card {
        padding: 17px;
    }

    .rt-search-controls {
        flex-direction: column;
    }

    .rt-search button {
        width: 100%;
        padding: 14px 18px;
    }

    .rt-status,
    .rt-details {
        padding: 20px;
    }

    .rt-status {
        padding-left: 24px;
    }

    .rt-progress {
        padding: 20px 2px 17px;
    }

    .rt-progress li > span {
        width: 31px;
        height: 31px;
        font-size: 11px;
    }

    .rt-progress li:not(:first-child)::before {
        top: 14px;
    }

    .rt-progress small {
        font-size: 9px;
        letter-spacing: -.02em;
    }

    .rt-detail {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .rt-detail > strong {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rt-search input,
    .rt-search button {
        transition: none;
    }
}
