/*
 * Ordering and request flows: Print Studio, Request Desk and tracking.
 * Button selectors carry two classes or more so the theme's own button styles cannot show through.
 */

.tc-ps-main {
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 110px;
    color: #374151;
    /* The brand body face, set here so form fields never fall back to whatever a device offers. */
    font-family: 'DM Sans', sans-serif;
    scroll-margin-top: 90px;
}

.tc-ps-main.is-narrow {
    max-width: 920px;
}

.tc-ps-main *,
.tc-ps-main *::before,
.tc-ps-main *::after {
    box-sizing: border-box;
}

.tc-ps-main [hidden] {
    display: none !important;
}

.tc-ps-main h2 {
    margin: 0 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #060C1D;
}

.tc-ps-panel,
.tc-ps-box,
.tc-ps-summary {
    min-width: 0;
    padding: clamp(20px, 4vw, 38px);
    background: #fff;
    border: 1px solid #E6ECF7;
    border-radius: 28px;
    box-shadow: 0 30px 70px -30px rgba(6, 12, 29, 0.22);
    scroll-margin-top: 110px;
}

.tc-ps-box {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.tc-ps-box img {
    width: 100%;
    max-width: 320px;
    border-radius: 18px;
    margin-bottom: 22px;
}

/* ---------- Buttons ---------- */

.tc-ps-main button,
.tc-ps-main button:hover,
.tc-ps-main button:focus {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-transform: none;
    white-space: normal;
    cursor: pointer;
}

.tc-ps-main button:disabled {
    cursor: default;
}

.tc-ps-main button:focus-visible,
.tc-ps-main a:focus-visible {
    outline: 3px solid #FF7F00;
    outline-offset: 3px;
}

.tc-ps-main .tc-ps-btn,
.tc-ps-main button.tc-ps-btn,
.tc-ps-main .tc-ps-ghost,
.tc-ps-main button.tc-ps-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 30px;
    border: 2px solid #FF7F00;
    border-radius: 100px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.tc-ps-main .tc-ps-btn,
.tc-ps-main button.tc-ps-btn,
.tc-ps-main button.tc-ps-btn:hover {
    background: #FF7F00;
    color: #111827;
}

.tc-ps-main .tc-ps-btn:hover,
.tc-ps-main button.tc-ps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(255, 127, 0, 0.7);
}

.tc-ps-main .tc-ps-ghost,
.tc-ps-main button.tc-ps-ghost {
    border-color: #D5DEEF;
    background: #fff;
    color: #004AAD;
}

.tc-ps-main .tc-ps-ghost:hover,
.tc-ps-main button.tc-ps-ghost:hover {
    border-color: #004AAD;
    background: #F4F8FF;
    color: #004AAD;
}

.tc-ps-main button.is-busy {
    cursor: wait;
    opacity: 0.8;
}

.tc-ps-main button.is-busy::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tc-spin 0.7s linear infinite;
}

.tc-ps-main .tc-ps-link,
.tc-ps-main button.tc-ps-link,
.tc-ps-main button.tc-ps-link:hover {
    padding: 6px 0;
    color: #004AAD;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tc-ps-actions,
.tc-ps-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.tc-ps-nav {
    justify-content: flex-end;
    padding-top: 22px;
    border-top: 1px solid #EEF2FA;
}

.tc-ps-nav [data-back] {
    margin-right: auto !important;
}

/* ---------- Step rail and transitions ---------- */

.tc-ps-rail {
    display: flex;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: rail;
}

.tc-ps-rail li {
    flex: 1;
    min-width: 0;
}

.tc-ps-main .tc-ps-rail button {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 0 0;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    color: #9AA6BF;
    counter-increment: rail;
}

.tc-ps-main .tc-ps-rail button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    background: linear-gradient(90deg, #004AAD 50%, #E8EEF9 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    transition: background-position 0.55s cubic-bezier(0.2, 1, 0.3, 1);
}

.tc-ps-main .tc-ps-rail button::after {
    content: "Step " counter(rail);
    display: block;
    order: -1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.tc-ps-main .tc-ps-rail button[aria-current="step"],
.tc-ps-main .tc-ps-rail button.is-done {
    color: #060C1D;
}

.tc-ps-main .tc-ps-rail button[aria-current="step"]::before,
.tc-ps-main .tc-ps-rail button.is-done::before {
    background-position: 0 0;
}

.tc-ps-step {
    animation: tc-from-right 0.45s cubic-bezier(0.2, 1, 0.3, 1);
}

.tc-ps-step[data-from="left"] {
    animation-name: tc-from-left;
}

@keyframes tc-from-right {
    from { opacity: 0; transform: translateX(28px); }
}

@keyframes tc-from-left {
    from { opacity: 0; transform: translateX(-28px); }
}

@keyframes tc-rise {
    from { opacity: 0; transform: translateY(18px); }
}

@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

/* ---------- Fields ---------- */

.tc-ps-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.tc-ps-main .tc-ps-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 16px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1F2937;
}

.tc-ps-main .tc-ps-form .tc-ps-field {
    margin: 0;
}

.tc-ps-main .tc-ps-full {
    grid-column: 1 / -1;
}

.tc-ps-field small {
    font-weight: 500;
    color: #6B7280;
}

.tc-ps-main .tc-ps-field input:not([type="range"]),
.tc-ps-main .tc-ps-field select,
.tc-ps-main .tc-ps-field textarea {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 13px 15px;
    border: 1.5px solid #DCE3F0;
    border-radius: 14px;
    background: #FBFCFF;
    color: #111827;
    font: inherit;
    font-weight: 500;
    /* 16px stops phones zooming in when a field is tapped. */
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tc-ps-main .tc-ps-field input:focus,
.tc-ps-main .tc-ps-field select:focus,
.tc-ps-main .tc-ps-field textarea:focus {
    outline: none;
    border-color: #004AAD;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 74, 173, 0.14);
}

.tc-ps-main [aria-invalid="true"] {
    border-color: #DC2626 !important;
}

.tc-ps-main .tc-ps-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tc-ps-error {
    margin: 18px 0 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: #FEF2F2;
    color: #B91C1C;
    font-weight: 700;
    animation: tc-rise 0.3s;
}

.tc-ps-hint {
    margin: 10px 0 0;
    font-size: 0.85rem;
    color: #6B7280;
}

.tc-ps-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #E8F8EF;
    color: #0F8A4B;
    font-size: 2rem;
    animation: tc-pop 0.55s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes tc-pop {
    from { transform: scale(0.3); opacity: 0; }
}

.tc-ps-added {
    animation: tc-rise 0.5s;
}

/* ---------- Hero helpers ---------- */

.tc-ps-crumbs,
.tc-ps-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tc-ps-hero-actions {
    margin: 0;
}

.tc-ps-crumbs a {
    text-decoration: none;
}

/* ---------- Request Desk ---------- */

.tc-rq-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.tc-ps-main .tc-rq-tile {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    animation: tc-rise 0.5s both;
}

.tc-rq-tile:nth-child(2) { animation-delay: 0.05s; }
.tc-rq-tile:nth-child(3) { animation-delay: 0.1s; }
.tc-rq-tile:nth-child(4) { animation-delay: 0.15s; }
.tc-rq-tile:nth-child(5) { animation-delay: 0.2s; }
.tc-rq-tile:nth-child(6) { animation-delay: 0.25s; }
.tc-rq-tile:nth-child(7) { animation-delay: 0.3s; }

.tc-rq-tile input {
    position: absolute;
    opacity: 0;
}

.tc-rq-tile > span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    padding: 22px;
    border: 2px solid #E6ECF7;
    border-radius: 20px;
    background: #fff;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.tc-rq-tile:hover > span {
    transform: translateY(-4px);
    border-color: #9DBBF0;
    box-shadow: 0 18px 34px -20px rgba(0, 74, 173, 0.45);
}

.tc-rq-tile input:checked + span {
    border-color: #004AAD;
    background: linear-gradient(160deg, #F0F6FF, #fff);
}

.tc-rq-tile input:focus-visible + span {
    outline: 3px solid #FF7F00;
    outline-offset: 3px;
}

.tc-rq-tile i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #004AAD, #002D6B);
    color: #fff;
}

.tc-rq-tile strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    color: #060C1D;
}

.tc-rq-tile small {
    color: #6B7280;
    line-height: 1.45;
}

.tc-rq-studio {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 20px;
    background: #F4F8FF;
}

.tc-rq-studio img {
    flex: 0 0 150px;
    width: 150px;
    border-radius: 12px;
}

.tc-rq-studio p {
    margin: 0 0 8px;
}

/* ---------- Tracking ---------- */

.tc-tr-stack {
    display: grid;
    gap: 22px;
}

.tc-tr-stack > * {
    animation: tc-rise 0.5s both;
}

.tc-tr-stack > :nth-child(2) { animation-delay: 0.08s; }
.tc-tr-stack > :nth-child(3) { animation-delay: 0.16s; }
.tc-tr-stack > :nth-child(4) { animation-delay: 0.24s; }

.tc-tr-progress {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.tc-tr-progress li {
    position: relative;
    padding-top: 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    color: #9AA6BF;
    overflow-wrap: anywhere;
}

.tc-tr-progress li::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background: #E4EAF6;
    z-index: 1;
}

.tc-tr-progress li + li::after {
    content: "";
    position: absolute;
    top: 13px;
    right: 50%;
    width: 100%;
    height: 4px;
    background: #E4EAF6;
}

.tc-tr-progress li.is-done {
    color: #060C1D;
}

.tc-tr-progress li.is-done::before,
.tc-tr-progress li.is-done + li.is-done::after,
.tc-tr-progress li.is-done::after {
    background: #004AAD;
}

.tc-tr-progress li[aria-current="step"]::before {
    background: #FF7F00;
    box-shadow: 0 0 0 7px rgba(255, 127, 0, 0.18);
}

.tc-tr-figure {
    margin: 0 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 6vw, 2.5rem);
    font-weight: 800;
    color: #004AAD;
    overflow-wrap: anywhere;
}

.tc-tr-notice {
    padding: 14px 18px;
    border-radius: 14px;
    background: #E8F8EF;
    color: #0B6B3A;
    font-weight: 700;
}

.tc-tr-notice.is-waiting {
    background: #FFF6EC;
    color: #8A4B00;
}

.tc-tr-items {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.tc-tr-items li {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tc-tr-items img {
    width: 96px;
    border-radius: 12px;
}

.tc-tr-items span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tc-tr-summary dt {
    margin-top: 14px;
    font-weight: 700;
    color: #060C1D;
}

.tc-tr-summary dd {
    margin: 2px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .tc-ps-main {
        padding: 40px 14px 90px;
    }

    .tc-ps-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .tc-rq-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .tc-rq-tile > span {
        padding: 16px;
    }

    .tc-rq-studio {
        flex-direction: column;
        text-align: center;
    }

    .tc-ps-actions > *,
    .tc-ps-nav > * {
        width: 100%;
    }

    .tc-ps-nav [data-back] {
        order: 5;
    }

    .tc-tr-progress {
        grid-auto-flow: row;
        gap: 4px;
    }

    .tc-tr-progress li {
        padding: 6px 0 6px 38px;
        text-align: left;
    }

    .tc-tr-progress li::before {
        top: 7px;
        left: 4px;
        margin: 0;
    }

    .tc-tr-progress li + li::after {
        top: -13px;
        left: 11px;
        right: auto;
        width: 4px;
        height: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-ps-main *,
    .tc-ps-main *::before,
    .tc-ps-main *::after {
        animation: none !important;
        transition: none !important;
    }
}
