/* =========================================================
   1. GLOBAL ALIGNMENT & WIDTH CONSTRAINT (MANDATORY)
========================================================== */

.sell-form-wrapper,
.sell-right-section .container,
.shiftify-dashboard,
.shiftify-dashboard .container {
    max-width: 1140px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

.sell-form-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.shiftify-dashboard-grid {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}


/* =========================================================
   2. SECTION CONTAINER
========================================================== */

.sell-right-section {
    position: relative;
    width: 100%;
    background: #f8fafc;
    color: #0f172a;
    padding: 32px 0 40px;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   3. SECTION HEADER
========================================================== */

.sell-right-section .section-heading {
    max-width: 680px;
    margin: 0 auto 20px;
    text-align: center;
}

.sell-right-section .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    color: #ff5a1f;
    background: #fff4ee;
    border: 1px solid #ffd9ca;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.sell-right-section .eyebrow-dot {
    width: 6px;
    height: 6px;
    display: inline-block;
    background: #ff5a1f;
    border-radius: 50%;
}

.sell-right-section .section-heading h2 {
    margin: 8px 0 6px;
    color: #0f172a;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.sell-right-section .section-heading p {
    max-width: 620px;
    margin: 0 auto;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   4. FORM WRAPPER & HEADING
========================================================== */

.sell-form-wrapper {
    width: 100%;
}

.sell-form-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding: 0 2px;
}

.sell-form-heading h3 {
    margin: 4px 0 0;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.sell-form-heading h3 span {
    color: #ff5a1f;
}

.sell-form-heading p {
    max-width: 420px;
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}
.danger {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 7px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   5. FORM CARD & LAYOUT GRID
========================================================== */

.sell-form-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
}

.sell-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sell-form-section-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.sell-form-section-block:focus-within {
    border-color: #cbd5e1;
}


/* =========================================================
   6. STEP INDICATORS & HEADINGS
========================================================== */

.sell-form-block-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sell-form-number {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    color: #1e293b;
    font-size: 11px;
    font-weight: 800;
}

.sell-form-label {
    display: block;
    color: #64748b;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.sell-form-block-heading h4 {
    margin: 2px 0 0;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   7. MEDIA UPLOAD AREA
========================================================== */

.sell-upload-box {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sell-upload-box:hover {
    background: #f1f5f9;
    border-color: #ff5a1f;
}

.sell-upload-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sell-upload-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4ee;
    border: 1px solid #ffd9ca;
    border-radius: 50%;
    color: #ff5a1f;
    font-size: 15px;
    font-weight: 700;
}

.sell-upload-box strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.sell-upload-box span:not(.sell-upload-action) {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.3;
}

.sell-upload-box small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 600;
}

.sell-upload-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-top: 0 !important;
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    color: #0f172a !important;
    font-size: 11px !important;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.sell-upload-box:hover .sell-upload-action {
    background: #e2e8f0;
}


/* =========================================================
   8. INPUT FIELDS & FORM GRID
========================================================== */

.sell-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sell-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sell-field-full {
    grid-column: 1 / -1;
}

.sell-field label {
    display: block;
    margin-bottom: 4px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.sell-field label span {
    color: #ff5a1f;
}

.sell-field label span.optional {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 400;
}

.sell-input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sell-input:focus {
    border-color: #ff5a1f;
    box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.1);
}

.sell-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.sell-field small {
    display: none;
}


/* =========================================================
   9. PURCHASE INVOICE DOCUMENT BOX
========================================================== */

.sell-invoice-box {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.sell-invoice-box:hover {
    border-color: #ff5a1f;
    background: #f1f5f9;
}

.sell-invoice-box strong {
    display: block;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
}

.sell-invoice-box span:not(.sell-upload-action) {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: 10px;
}

.sell-form-helper {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   10. INSPECTION NOTE (VERIFIED ASSESSOR)
========================================================== */

.sell-inspection-note {
    margin: 2px 0 0;
    padding: 8px 10px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
}

.sell-inspection-note strong {
    display: inline;
    margin-right: 4px;
    color: #166534;
    font-size: 10px;
    font-weight: 700;
}

.sell-inspection-note p {
    display: inline;
    margin: 0;
    color: #15803d;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   11. FOOTER & CTA BUTTON
========================================================== */

.sell-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.sell-footer-copy strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}

.sell-footer-copy span {
    display: block;
    margin-top: 1px;
    color: #64748b;
    font-size: 10px;
}

.sell-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    height: 38px;
    border: 0;
    border-radius: 6px;
    background: #ff5a1f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.sell-submit-button:hover {
    background: #e04b16;
    transform: translateY(-1px);
}

.sell-submit-button span {
    margin: 0;
    color: #ffffff;
    font-size: 12px;
}


/* =========================================================
   12. TABLET RESPONSIVE (701px TO 999px)
========================================================== */

@media (max-width: 999px) {
    .sell-right-section {
        padding: 24px 0 32px;
    }

    .sell-form-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sell-form-heading p {
        text-align: left;
        max-width: 100%;
    }

    .sell-form-card {
        padding: 14px !important;
        gap: 12px;
    }

    .sell-form-section-block {
        padding: 12px;
    }
}


/* =========================================================
   13. MOBILE RESPONSIVE (≤ 700px)
========================================================== */

@media (max-width: 700px) {
    .sell-right-section {
        padding: 20px 0 28px;
    }

    .sell-right-section .container,
    .sell-form-wrapper,
    .shiftify-dashboard,
    .shiftify-dashboard .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .sell-right-section .section-heading h2 {
        font-size: 20px;
    }

    .sell-right-section .section-heading p {
        font-size: 11px;
    }

    .sell-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sell-form-grid {
        grid-template-columns: 1fr;
    }

    .sell-field-full {
        grid-column: auto;
    }

    .sell-input {
        height: 38px;
        font-size: 13px;
    }

    .sell-form-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .sell-footer-copy {
        text-align: center;
    }

    .sell-submit-button {
        width: 100%;
        height: 42px;
        font-size: 13px;
    }
}


/* =========================================================
   14. SMALL MOBILE RESPONSIVE (≤ 450px)
========================================================== */

@media (max-width: 450px) {
    .sell-right-section .container,
    .sell-form-wrapper,
    .shiftify-dashboard,
    .shiftify-dashboard .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .sell-right-section .section-heading h2 {
        font-size: 18px;
    }

    .sell-form-card {
        padding: 12px !important;
        gap: 10px;
    }

    .sell-form-section-block {
        padding: 10px;
        gap: 10px;
    }

    .sell-upload-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 10px;
    }

    .sell-upload-content {
        flex-direction: column;
        justify-content: center;
    }

    .sell-upload-action {
        width: 100%;
        box-sizing: border-box;
    }

    .sell-invoice-box {
        padding: 8px 10px;
    }
}
/* =========================================================
   FIXED INVOICE & UPLOAD BOX RESPONSIVE OVERFLOW
========================================================== */

/* Ensure wrapper elements stay constrained */
.sell-invoice-box,
.sell-upload-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Constrain internal text container so button doesn't get pushed out */
.sell-invoice-box > div,
.sell-upload-content {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

/* Prevent action button from overflowing or stretching endlessly */
.sell-upload-action {
    flex-shrink: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile Layout Fix for Small Screens */
@media (max-width: 600px) {
    .sell-invoice-box,
    .sell-upload-box {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 12px 10px !important;
        gap: 10px !important;
    }

    .sell-invoice-box > div {
        text-align: center !important;
    }

    .sell-upload-action {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
}