:root {
    --trade-ink: #201c18;
    --trade-muted: #706961;
    --trade-line: #e5ded5;
    --trade-line-strong: #d6cdc2;
    --trade-surface: #f6f2ec;
    --trade-surface-soft: #fbf9f6;
    --trade-white: #ffffff;
    --trade-accent: #8d5a36;
    --trade-success: #26734f;
    --trade-radius: 18px;
    --trade-radius-sm: 12px;
}

.trade-in-page {
    background: var(--trade-surface-soft);
    color: var(--trade-ink);
}

.trade-in-page *,
.trade-in-page *::before,
.trade-in-page *::after {
    box-sizing: border-box;
}

.trade-in-hero {
    padding: clamp(32px, 5vw, 68px) 0 28px;
    border-bottom: 1px solid var(--trade-line);
    background: linear-gradient(130deg, #f3ede5 0%, #fbf8f4 55%, #f5f0e9 100%);
}

.trade-in-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: clamp(30px, 5vw, 72px);
    align-items: center;
}

.trade-in-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--trade-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.trade-in-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--trade-ink);
    font-size: clamp(2.35rem, 5.1vw, 4.8rem);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.055em;
}

.trade-in-hero__lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: #524b44;
    font-size: clamp(1.02rem, 1.7vw, 1.24rem);
    line-height: 1.65;
}

.trade-in-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.trade-in-trust span {
    padding: 7px 11px;
    border: 1px solid rgba(90, 78, 65, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    color: #595149;
    font-size: .76rem;
    font-weight: 700;
}

.trade-in-hero__media {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    margin: 0;
    border-radius: 26px;
    background: #ddd4c8;
    box-shadow: 0 24px 60px rgba(52, 44, 35, .13);
}

.trade-in-hero__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(27, 23, 20, .2));
    content: '';
    pointer-events: none;
}

.trade-in-hero__media img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
}

.trade-in-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: clamp(34px, 5vw, 56px) 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--trade-line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.trade-in-progress li {
    position: relative;
    display: flex;
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 10px 15px;
    color: #5d564f;
    font-size: .78rem;
}

.trade-in-progress li + li {
    border-left: 1px solid var(--trade-line);
}

.trade-in-progress li span {
    display: inline-grid;
    flex: 0 0 25px;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--trade-ink);
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
}

.trade-in-main {
    padding: clamp(34px, 5.4vw, 72px) 0 clamp(60px, 8vw, 100px);
}

.trade-in-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(285px, .72fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.trade-in-form-shell {
    min-width: 0;
}

.trade-form-section {
    padding: clamp(23px, 3vw, 36px);
    border: 1px solid var(--trade-line);
    border-radius: var(--trade-radius);
    background: var(--trade-white);
    box-shadow: 0 12px 34px rgba(40, 34, 28, .045);
}

.trade-form-section + .trade-form-section {
    margin-top: 20px;
}

.trade-form-section__heading {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 24px;
}

.trade-form-step {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--trade-line-strong);
    border-radius: 50%;
    color: var(--trade-accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .04em;
}

.trade-form-section__heading h2 {
    margin: 0;
    color: var(--trade-ink);
    font-size: clamp(1.32rem, 2vw, 1.7rem);
    font-weight: 830;
    letter-spacing: -.025em;
}

.trade-form-section__heading p {
    max-width: 680px;
    margin: 5px 0 0;
    color: var(--trade-muted);
    font-size: .88rem;
    line-height: 1.55;
}

.trade-item-list {
    display: grid;
    gap: 14px;
}

.trade-item {
    padding: clamp(18px, 2.5vw, 26px);
    border: 1px solid var(--trade-line);
    border-radius: var(--trade-radius-sm);
    background: var(--trade-surface-soft);
}

.trade-item__heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
}

.trade-item__eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--trade-muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.trade-item__heading h3 {
    margin: 0;
    color: var(--trade-ink);
    font-size: 1.05rem;
    font-weight: 800;
}

.trade-item__remove,
.trade-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d463c;
    font-size: .76rem;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.trade-form-grid {
    display: grid;
    gap: 16px;
}

.trade-form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trade-field + .trade-field,
.trade-form-grid + .trade-field {
    margin-top: 16px;
}

.trade-form-grid .trade-field + .trade-field {
    margin-top: 0;
}

.trade-field label {
    display: flex;
    gap: 7px;
    align-items: baseline;
    margin-bottom: 7px;
    color: #3c3631;
    font-size: .8rem;
    font-weight: 780;
}

.trade-field__optional {
    color: #968c82;
    font-size: .68rem;
    font-weight: 650;
}

.trade-in-page .form-control {
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid var(--trade-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--trade-ink);
    font-size: .9rem;
    box-shadow: none;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.trade-in-page textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.trade-in-page .form-control:focus {
    border-color: #8f7b68;
    box-shadow: 0 0 0 3px rgba(141, 90, 54, .1);
}

.trade-in-page .form-control::placeholder {
    color: #aaa198;
}

.trade-secondary-button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    min-height: 42px;
    margin-top: 14px;
    padding: 9px 14px;
    border: 1px solid var(--trade-line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--trade-ink);
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.trade-secondary-button span {
    color: var(--trade-accent);
    font-size: 1.05rem;
}

.trade-photo-drop {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 30px 20px;
    border: 1.5px dashed #b9afa4;
    border-radius: var(--trade-radius-sm);
    background: #fbfaf8;
    text-align: center;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.trade-photo-drop:hover,
.trade-photo-drop.is-dragging {
    border-color: var(--trade-accent);
    background: #f8f2eb;
}

.trade-photo-drop.is-dragging {
    transform: translateY(-1px);
}

.trade-photo-drop.is-ready {
    border-style: solid;
    border-color: rgba(38, 115, 79, .45);
    background: rgba(38, 115, 79, .04);
}

.trade-photo-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.trade-photo-drop__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 50%;
    background: var(--trade-ink);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
}

.trade-photo-drop strong {
    margin-bottom: 5px;
    color: var(--trade-ink);
    font-size: .96rem;
}

.trade-photo-drop > span:last-child {
    max-width: 560px;
    color: var(--trade-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.trade-file-summary {
    margin-top: 12px;
    color: #4e4943;
    font-size: .78rem;
}

.trade-file-summary strong {
    color: var(--trade-success);
}

.trade-file-summary ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.trade-file-summary + .trade-text-button:not([hidden]) {
    margin-top: 8px;
}

.trade-phone-field {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 10px;
}

.trade-phone-prefix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.trade-submit {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--trade-line);
}

.trade-submit-button {
    width: 100%;
    min-height: 54px;
    padding: 13px 20px;
    border: 1px solid var(--trade-ink);
    border-radius: 10px;
    background: var(--trade-ink);
    color: #fff;
    font-size: .9rem;
    font-weight: 850;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.trade-submit-button:hover {
    background: #322b25;
    box-shadow: 0 10px 24px rgba(32, 28, 24, .15);
    transform: translateY(-1px);
}

.trade-submit p {
    margin: 10px auto 0;
    max-width: 620px;
    color: var(--trade-muted);
    font-size: .72rem;
    line-height: 1.5;
    text-align: center;
}

.trade-in-aside {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 13px;
}

.trade-info-card,
.trade-guide-card {
    overflow: hidden;
    border: 1px solid var(--trade-line);
    border-radius: var(--trade-radius-sm);
    background: #fff;
}

.trade-info-card {
    padding: 22px;
}

.trade-info-card h2 {
    margin: 0 0 18px;
    color: var(--trade-ink);
    font-size: 1.3rem;
    font-weight: 820;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.trade-next-steps {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trade-next-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.trade-next-steps li > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--trade-surface);
    color: var(--trade-accent);
    font-size: .7rem;
    font-weight: 850;
}

.trade-next-steps strong {
    color: #3a342f;
    font-size: .82rem;
}

.trade-next-steps p {
    margin: 3px 0 0;
    color: var(--trade-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.trade-guide-card summary {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 15px 18px;
    color: var(--trade-ink);
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.trade-guide-card summary::-webkit-details-marker {
    display: none;
}

.trade-guide-card summary small {
    display: block;
    margin-bottom: 2px;
    color: var(--trade-muted);
    font-size: .6rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.trade-guide-card__toggle {
    color: var(--trade-accent);
    font-size: 1.2rem;
    transition: transform .18s ease;
}

.trade-guide-card[open] .trade-guide-card__toggle {
    transform: rotate(45deg);
}

.trade-guide-card__body {
    padding: 0 18px 18px;
    border-top: 1px solid var(--trade-line);
    color: var(--trade-muted);
    font-size: .76rem;
    line-height: 1.55;
}

.trade-condition {
    padding: 13px 0;
    border-bottom: 1px solid var(--trade-line);
}

.trade-condition strong,
.trade-accessory-grid strong {
    color: #3d3732;
}

.trade-condition p {
    margin: 4px 0 0;
}

.trade-guide-note {
    margin: 14px 0 0;
    padding: 11px 12px;
    border-radius: 8px;
    background: var(--trade-surface);
    color: #655d55;
}

.trade-accessory-grid > div {
    padding-top: 13px;
}

.trade-accessory-grid ul,
.trade-terms-list {
    margin: 7px 0 0;
    padding-left: 18px;
}

.trade-terms-list li + li {
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .trade-in-hero__grid,
    .trade-in-layout {
        grid-template-columns: 1fr;
    }

    .trade-in-hero__media {
        min-height: 280px;
        max-height: 430px;
    }

    .trade-in-hero__media img {
        min-height: 280px;
    }

    .trade-in-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-info-card--steps {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .trade-in-hero {
        padding-top: 28px;
    }

    .trade-in-hero h1 {
        font-size: clamp(2.2rem, 11vw, 3.5rem);
    }

    .trade-in-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trade-in-progress li:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--trade-line);
    }

    .trade-in-progress li:nth-child(4) {
        border-top: 1px solid var(--trade-line);
    }

    .trade-form-grid--2,
    .trade-in-aside {
        grid-template-columns: 1fr;
    }

    .trade-form-grid .trade-field + .trade-field {
        margin-top: 0;
    }

    .trade-phone-field {
        grid-template-columns: 1fr;
    }

    .trade-info-card--steps {
        grid-column: auto;
    }
}

@media (max-width: 479.98px) {
    .trade-in-hero__media,
    .trade-in-hero__media img {
        min-height: 235px;
    }

    .trade-in-trust {
        gap: 6px;
    }

    .trade-in-progress li {
        padding: 9px 10px;
        font-size: .7rem;
    }

    .trade-form-section {
        padding: 20px 17px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .trade-in-main > .container {
        padding-right: 0;
        padding-left: 0;
    }

    .trade-in-aside {
        padding: 0 15px;
    }
}
