.buy-page {
    width: min(1050px, calc(100% - 32px));
    margin: 0 auto;
    padding: 60px 0 90px;
}

.buy-intro {
    max-width: 800px;
    margin-bottom: 38px;
}

.form-notice {
    margin-bottom: 28px;
    padding: 18px 22px;
    border-left: 5px solid;
    line-height: 1.55;
    font-weight: 600;
}

.form-notice.success {
    color: #eaffdf;
    background: #17320f;
    border-color: #65c944;
}

.form-notice.error {
    color: #ffe3e3;
    background: #3b1212;
    border-color: #e05454;
}

.form-notice:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.buy-intro h1 {
    margin: 8px 0 18px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
}

.buy-intro > p:last-child {
    color: #c8c8c8;
    font-size: 18px;
    line-height: 1.6;
}

.buy-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.buy-progress li {
    padding: 13px 10px;
    background: #242424;
    color: #888;
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid #333;
}

.buy-progress li.active {
    color: #fff;
    border-color: var(--yellow);
}

#buyForm {
    padding: clamp(22px, 4vw, 45px);
    background: #1b1b1b;
    border: 1px solid #303030;
    border-radius: 10px;
}

.buy-step[hidden] {
    display: none;
}

.step-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step-heading > span {
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 2px;
}

.step-heading h2 {
    margin: 0 0 6px;
}

.step-heading p {
    margin: 0;
    color: #aaa;
}

.buy-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.buy-form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
}

.buy-form-grid .full-width {
    grid-column: 1 / -1;
}

#buyForm input,
#buyForm select,
#buyForm textarea {
    width: 100%;
    min-height: 50px;
    padding: 13px 14px;
    margin: 0;
    background: #111;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    font: inherit;
}

#buyForm textarea {
    min-height: 130px;
    resize: vertical;
}

#buyForm input:focus,
#buyForm select:focus,
#buyForm textarea:focus {
    outline: 2px solid var(--yellow);
    outline-offset: 1px;
}

#buyForm select:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.dat-status {
    min-height: 24px;
    margin-top: 20px;
    color: var(--yellow);
    line-height: 1.5;
}

.manual-vehicle {
    margin-top: 22px;
    padding: 22px;
    background: #28220d;
    border-left: 4px solid var(--yellow);
}

.manual-vehicle[hidden] {
    display: none;
}

.manual-vehicle h3 {
    margin-top: 0;
}

.inventory-interest {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0;
    padding: 18px;
    border: 1px solid #444;
}

.inventory-interest legend {
    padding: 0 7px;
    color: #ddd;
    font-size: 13px;
    font-weight: 600;
}

.inventory-interest label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.inventory-interest input[type="radio"] {
    width: auto !important;
    min-height: 0 !important;
    accent-color: var(--yellow);
}

#interestedVehicleField[hidden] {
    display: none;
}

.upload-area {
    display: flex;
    min-height: 150px;
    padding: 30px;
    justify-content: center;
    align-items: center;
    border: 2px dashed #555;
    background: #111;
    color: var(--yellow);
    text-align: center;
    cursor: pointer;
}

.upload-area input {
    position: absolute;
    width: 1px !important;
    height: 1px;
    opacity: 0;
}

#fileSummary {
    color: #aaa;
}

.buy-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #333;
}

.buy-actions [hidden] {
    display: none;
}

#buyForm button {
    border: 0;
    cursor: pointer;
}

@media (max-width: 650px) {
    .buy-form-grid {
        grid-template-columns: 1fr;
    }

    .buy-form-grid .full-width {
        grid-column: auto;
    }

    .buy-progress li {
        font-size: 10px;
        padding-inline: 3px;
    }
}
