:root {
    --cth-blue: #24428f;
    --cth-blue-dark: #172f70;
    --cth-accent: #376ff1;
    --cth-ink: #162033;
    --cth-copy: #5c6980;
    --cth-line: #dfe5f0;
    --cth-surface: #ffffff;
    --cth-page: #f5f7fc;
}

.cth-upload-page {
    margin: 0;
    background: var(--cth-page);
    color: var(--cth-ink);
    font-family: "Work Sans", sans-serif;
}

.cth-upload-page *, .cth-upload-page *::before, .cth-upload-page *::after { box-sizing: border-box; }

.submission-workspace {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0 80px;
}

.submission-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 34px;
}

.submission-intro__copy { max-width: 690px; }
.page-kicker, .section-label {
    display: block;
    margin-bottom: 9px;
    color: var(--cth-accent);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.submission-intro h1 {
    margin: 0 0 12px;
    color: var(--cth-ink);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.045em;
}

.submission-intro p { margin: 0; color: var(--cth-copy); font-size: 17px; line-height: 1.7; }

.guide-link {
    width: 270px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    color: var(--cth-ink);
    background: #fff;
    border: 1px solid var(--cth-line);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(31, 51, 92, .06);
    text-decoration: none;
}
.guide-link:hover { color: var(--cth-accent); border-color: #b8c9ef; }
.guide-link__icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--cth-blue); border-radius: 11px; font-size: 18px; }
.guide-link strong, .guide-link small { display: block; }
.guide-link strong { font-size: 14px; }
.guide-link small { color: var(--cth-copy); font-size: 11px; margin-top: 2px; }

.submission-progress {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 0 24px;
    padding: 20px 30px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--cth-line);
    border-radius: 16px;
}
.submission-progress::before { content: ""; position: absolute; top: 40px; left: 17%; right: 17%; height: 2px; background: #e7ebf3; }
.submission-progress li { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 11px; color: #8a95a8; }
.submission-progress li > span { width: 40px; height: 40px; display: grid; place-items: center; background: #f0f3f8; border: 4px solid #fff; border-radius: 50%; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 1px #dfe5f0; }
.submission-progress small, .submission-progress strong { display: block; }
.submission-progress small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.submission-progress strong { font-size: 13px; color: var(--cth-copy); }
.submission-progress .is-complete > span { color: #fff; background: #16a779; box-shadow: 0 0 0 1px #16a779; }
.submission-progress .is-current > span { color: #fff; background: var(--cth-accent); box-shadow: 0 0 0 1px var(--cth-accent); }
.submission-progress .is-current strong { color: var(--cth-ink); }

.submission-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.submission-card, .order-card, .support-card { border-radius: 20px; }
.submission-card { padding: 34px; background: #fff; border: 1px solid var(--cth-line); box-shadow: 0 12px 40px rgba(33, 49, 83, .06); }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #ebeff5; }
.card-heading h2, .success-message h2 { margin: 0; color: var(--cth-ink); font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.025em; }
.required-note { color: #8994a6; font-size: 11px; white-space: nowrap; }
.required-note b, .field-group label b { color: #e5484d; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 28px 0 30px; }
.field-group--wide { grid-column: 1 / -1; }
.field-group label { display: block; margin: 0 0 8px; color: #26334a; font-size: 13px; font-weight: 700; }
.field-group small { display: block; margin-top: 7px; color: #8a95a8; font-size: 11px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; }
.field-label-row span { color: #929caf; font-size: 11px; }
.field-control { position: relative; }
.field-control > i { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); color: #8d9ab0; font-size: 16px; pointer-events: none; }
.field-group input, .field-group textarea {
    width: 100%;
    color: var(--cth-ink);
    background: #fbfcfe;
    border: 1px solid #dce3ee;
    border-radius: 11px;
    font: 400 14px/1.5 "Work Sans", sans-serif;
    outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.field-group input { height: 48px; padding: 0 14px 0 42px; }
.field-group textarea { min-height: 112px; padding: 13px 14px; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #9ba6b8; }
.field-group input:focus, .field-group textarea:focus { background: #fff; border-color: var(--cth-accent); box-shadow: 0 0 0 3px rgba(55, 111, 241, .11); }

.payment-panel { padding: 22px; background: #f7f9fd; border: 1px solid #e0e6f0; border-radius: 15px; }
.payment-panel__heading { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; margin-bottom: 18px; }
.payment-lock { width: 42px; height: 42px; display: grid; place-items: center; color: var(--cth-blue); background: #e7edfb; border-radius: 11px; font-size: 19px; }
.payment-panel__heading strong, .payment-panel__heading span { display: block; }
.payment-panel__heading strong { color: var(--cth-ink); font-size: 14px; }
.payment-panel__heading div > span { margin-top: 2px; color: var(--cth-copy); font-size: 11px; }
.payment-panel__heading .payment-price { color: var(--cth-ink); font-size: 19px; font-weight: 800; }
#paypal-button-container { min-height: 45px; }
.test-submit-button { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 0; border-radius: 10px; color: #fff; background: var(--cth-blue); font-size: 14px; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.test-submit-button:hover { background: #193878; box-shadow: 0 10px 24px rgba(36, 66, 143, .2); transform: translateY(-1px); }
.test-submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.test-payment-note { display: block; margin-top: 9px; color: var(--cth-copy); text-align: center; font-size: 11px; }

.submission-sidebar { display: grid; gap: 16px; }
.order-card { padding: 30px; color: #fff; background: linear-gradient(145deg, #274a9d 0%, #172f70 100%); box-shadow: 0 18px 40px rgba(28, 55, 120, .2); }
.section-label--light { color: #aecdff; }
.order-card h2 { margin: 0 0 18px; color: #fff; font-size: 23px; line-height: 1.22; font-weight: 800; letter-spacing: -.025em; }
.order-price { display: flex; align-items: baseline; gap: 9px; padding-bottom: 21px; border-bottom: 1px solid rgba(255,255,255,.16); }
.order-price strong { font-size: 34px; line-height: 1; }
.order-price span { color: #b9c8e8; font-size: 11px; }
.order-card ul { display: grid; gap: 15px; margin: 23px 0; padding: 0; list-style: none; }
.order-card li { display: grid; grid-template-columns: 22px 1fr; gap: 9px; color: #d8e2f6; font-size: 12px; line-height: 1.55; }
.order-card li i { width: 20px; height: 20px; display: grid; place-items: center; color: #173d2f; background: #6fe0b5; border-radius: 50%; font-size: 12px; }
.order-card li strong { color: #fff; }
.guarantee { display: grid; grid-template-columns: 26px 1fr; gap: 11px; padding: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.11); border-radius: 12px; }
.guarantee > i { color: #7fe3bd; font-size: 22px; }
.guarantee span, .guarantee strong { display: block; }
.guarantee span { color: #cbd7ee; font-size: 10px; line-height: 1.45; }
.guarantee strong { margin-bottom: 2px; color: #fff; font-size: 11px; }

.support-card { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 17px; background: #fff; border: 1px solid var(--cth-line); }
.support-card__icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--cth-accent); background: #edf2ff; border-radius: 11px; }
.support-card span, .support-card strong { display: block; }
.support-card span { color: #8994a6; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.support-card strong { margin-top: 2px; color: var(--cth-ink); font-size: 12px; word-break: break-all; }
.support-card button { width: auto; min-width: 62px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--cth-blue); background: #edf2ff; border: 1px solid #d9e3fa; border-radius: 9px; cursor: pointer; font-family: "Work Sans", sans-serif; }
.support-card button span { display: inline; margin: 0; color: inherit; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.support-card button:hover { color: #fff; background: var(--cth-blue); }

.success-message { padding: 48px 20px; text-align: center; }
.success-icon { width: 66px; height: 66px; display: grid; place-items: center; margin: 0 auto 22px; color: #fff; background: #16a779; border-radius: 50%; font-size: 28px; }
.success-message p { color: var(--cth-copy); }
.cth-primary-button { min-height: 46px; padding: 0 22px; color: #fff; background: var(--cth-blue); border: 0; border-radius: 10px; font: 700 13px "Work Sans", sans-serif; cursor: pointer; }

@media (max-width: 980px) {
    .submission-layout { grid-template-columns: 1fr; }
    .submission-sidebar { grid-template-columns: 1fr 1fr; }
    .support-card { align-self: start; }
}

@media (max-width: 700px) {
    .submission-workspace { width: min(100% - 24px, 1180px); padding: 32px 0 55px; }
    .submission-intro { align-items: stretch; flex-direction: column; gap: 20px; }
    .guide-link { width: 100%; }
    .submission-progress { padding: 15px 8px; }
    .submission-progress::before { left: 20%; right: 20%; top: 34px; }
    .submission-progress li { gap: 5px; }
    .submission-progress li > span { width: 36px; height: 36px; }
    .submission-progress li div { display: none; }
    .submission-card { padding: 22px 16px; }
    .card-heading { flex-direction: column; gap: 9px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-group--wide { grid-column: auto; }
    .payment-panel { padding: 16px; }
    .submission-sidebar { grid-template-columns: 1fr; }
}
