/* Sell used vehicle wizard — mobile-first TrucksBuses */

.sell-page {
    --sell-red: #c92127;
    --sell-red-hover: #a81b20;
    --sell-ink: #1a1d21;
    --sell-muted: #6b7280;
    --sell-border: #e5e7eb;
    --sell-bg: #eef0f3;
    --sell-surface: #fff;
    --sell-radius: 14px;
    --sell-nav-h: 72px;
    background: var(--sell-bg);
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    min-height: 40vh;
    -webkit-font-smoothing: antialiased;
}

/* —— Hero —— */
.sell-page-hero {
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(201, 33, 39, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #fff 0%, #f4f5f7 100%);
    border-bottom: 1px solid var(--sell-border);
    padding: 18px 0 16px;
}

.sell-page-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.sell-page-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sell-red);
    background: rgba(201, 33, 39, 0.08);
}

.sell-page-hero h1 {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
    font-weight: 800;
    color: var(--sell-ink);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.sell-page-hero p {
    margin: 0;
    max-width: 34rem;
    font-size: 14px;
    line-height: 1.45;
    color: var(--sell-muted);
}

.sell-page-hero__trust {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sell-page-hero__trust::-webkit-scrollbar {
    display: none;
}

.sell-page-hero__trust li {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--sell-ink);
    background: #fff;
    border: 1px solid var(--sell-border);
    border-radius: 999px;
    padding: 6px 12px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sell-page-hero__trust li::before {
    content: "✓ ";
    color: var(--sell-red);
    font-weight: 700;
}

/* —— Form shell —— */
.sell-page-form {
    padding: 12px 12px 0;
}

.sell-form-shell {
    max-width: 720px;
    margin: 0 auto;
    background: var(--sell-surface);
    border: 1px solid var(--sell-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(36, 39, 44, 0.07);
    padding: 16px 14px 20px;
    position: relative;
}

#msform {
    text-align: center;
    position: relative;
    margin-top: 0;
}

#msform .form-card {
    text-align: left;
    font-size: 14px;
    overflow: visible;
    padding-bottom: calc(var(--sell-nav-h) + 8px);
}

/* —— Fields —— */
#msform input[type="text"],
#msform textarea,
#msform select.dropdownBorder,
#msform .form-control {
    padding: 12px 14px;
    border: 1px solid var(--sell-border) !important;
    border-radius: 12px !important;
    margin-bottom: 2px;
    margin-top: 2px;
    width: 100%;
    box-sizing: border-box;
    color: var(--sell-ink);
    background-color: #fff !important;
    font-size: 16px; /* prevents iOS zoom */
    letter-spacing: 0;
    height: auto !important;
    min-height: 48px;
    appearance: none;
    -webkit-appearance: none;
}

#msform select.dropdownBorder {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

#msform input:focus,
#msform textarea:focus,
#msform select.dropdownBorder:focus,
#msform .form-control:focus {
    box-shadow: 0 0 0 3px rgba(201, 33, 39, 0.14) !important;
    border-color: var(--sell-red) !important;
    outline: none;
}

#msform .action-button,
#msform .action-button-previous {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 0 none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    float: none;
    width: auto;
    min-width: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

#msform .action-button:active,
#msform .action-button-previous:active {
    transform: scale(0.98);
}

#msform .action-button {
    background: var(--sell-red);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(201, 33, 39, 0.28);
}

#msform .action-button:hover,
#msform .action-button:focus {
    background: var(--sell-red-hover);
    color: #fff !important;
}

#msform .action-button-previous {
    background: #fff;
    color: var(--sell-ink) !important;
    border: 1.5px solid var(--sell-border);
    box-shadow: none;
}

#msform .action-button-previous:hover,
#msform .action-button-previous:focus {
    border-color: var(--sell-red);
    color: var(--sell-red) !important;
    background: #fff;
}

/* Sticky bottom nav (mobile-first) */
.sell-form-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    gap: 10px;
    justify-content: stretch;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--sell-border);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clear: both;
    box-sizing: border-box;
}

.sell-form-nav a,
.sell-form-nav .action-button,
.sell-form-nav .action-button-previous {
    flex: 1 1 0;
    max-width: none !important;
    width: 100% !important;
    min-width: 0 !important;
}

.sell-form-nav--end .action-button-previous {
    display: none;
}

.fieldlabels {
    color: var(--sell-muted);
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.sell-step-hint {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--sell-muted);
    text-align: left;
}

.sell-section-label {
    margin: 14px 0 10px;
    padding-top: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    clear: both;
    text-align: left;
    border-top: 1px solid #f0f2f5;
}

.sell-section-label:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 4px;
}

/* —— Progress —— */
.sell-progress-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -4px -4px 16px;
    padding: 8px 4px 12px;
    background: linear-gradient(180deg, #fff 70%, rgba(255, 255, 255, 0));
}

#progressbar {
    display: flex;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: #9ca3af;
    list-style: none;
}

#progressbar li {
    list-style-type: none;
    font-size: 11px;
    font-weight: 700;
    width: 33.333%;
    float: none;
    position: relative;
    text-align: center;
    line-height: 1.25;
}

#progressbar .active {
    color: var(--sell-red);
}

#progressbar li:before {
    content: "";
    width: 32px;
    height: 32px;
    line-height: 30px;
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: #d1d5db;
    border-radius: 50%;
    margin: 0 auto 6px;
    padding: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 4px #fff;
}

#progressbar li:nth-child(1):before { content: "1"; }
#progressbar li:nth-child(2):before { content: "2"; }
#progressbar li:nth-child(3):before { content: "3"; }

#progressbar li:after {
    content: "";
    width: 100%;
    height: 3px;
    background: #e5e7eb;
    position: absolute;
    left: -50%;
    top: 15px;
    z-index: 0;
    border-radius: 2px;
}

#progressbar li:first-child:after {
    display: none;
}

#progressbar li.active:before,
#progressbar li.active:after {
    background: var(--sell-red);
}

#progressbar .sell-step-full {
    display: none;
}

#progressbar .sell-step-short {
    display: inline;
}

/* —— Vehicle type: keep 3-up on mobile —— */
.sell-vtype {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 6px;
}

.sell-vtype__opt {
    margin: 0;
    cursor: pointer;
    display: block;
}

.sell-vtype__opt input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sell-vtype__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 76px;
    padding: 10px 6px;
    border: 1.5px solid var(--sell-border);
    border-radius: 14px;
    background: #f8f9fb;
    color: var(--sell-ink);
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.sell-vtype__card i,
.sell-vtype__card img {
    font-size: 24px !important;
    width: 28px;
    height: 28px;
    object-fit: contain;
    color: var(--sell-muted);
}

@media (min-width: 768px) {
    .sell-vtype__name::after {
        content: " Vehicle";
    }
}

.sell-vtype__opt input:checked + .sell-vtype__card {
    border-color: var(--sell-red);
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(201, 33, 39, 0.12);
}

.sell-vtype__opt input:checked + .sell-vtype__card i {
    color: var(--sell-red);
}

.sell-vtype__opt input:focus-visible + .sell-vtype__card {
    outline: 2px solid var(--sell-red);
    outline-offset: 2px;
}

#lblProductType,
#lblbrand,
#lblmodel,
#lblYear,
#lblOwnername,
#lblmobileno,
[id$=lblupload1msg],
[id$=lblupload2msg],
[id$=lblupload3msg],
[id$=lblupload4msg],
[id$=lblupload5msg],
[id$=lblupload6msg] {
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

/* Grid helpers */
.eqWrap { display: flex; }
.eq { padding: 6px 0; }
.equalHW { flex: 1; }
.equalHMWrap { justify-content: space-between; }
.equalHM { width: 50%; }
.equalHMRWrap { justify-content: space-between; flex-wrap: wrap; }
.equalHMR { width: 32%; }
.equalHMVWrap { flex-wrap: wrap; }
.equalHMV { width: 32%; margin: 1%; }

#msform .eq.col-lg-6,
#msform .eq.col-lg-12,
#msform .eq.col-sm-12,
#msform .eq.col-md-12,
#msform .eq.col-sm-6,
#msform .eq.col-md-6 {
    float: none;
    box-sizing: border-box;
    width: 100%;
    padding: 6px 0;
}

#msform .eq.col-lg-12 {
    width: 100%;
}

.form-group {
    margin-bottom: 0 !important;
    position: relative;
    width: 100%;
    display: block;
}

.has-float-label {
    display: block;
    position: relative;
    width: 100%;
}

.has-float-label label {
    position: absolute;
    cursor: text;
    opacity: 1;
    transition: all 0.2s;
    top: -0.55em;
    left: 12px;
    z-index: 3;
    line-height: 1;
    padding: 0 4px;
    color: var(--sell-muted);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
}

.has-float-label .form-control:placeholder-shown:not(:focus) + label {
    opacity: 1;
    top: 1em;
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    background: transparent;
}

.has-float-label .form-control::placeholder {
    opacity: 0;
}

.has-float-label .form-control:not(:placeholder-shown) + label,
.has-float-label .form-control:focus + label {
    top: -0.55em;
    font-size: 12px;
    font-weight: 600;
    color: var(--sell-muted);
    background: #fff;
}

/* Photos: 2-up even on small phones */
.sell-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.ImageBlock {
    border: 1.5px dashed #c5cad3;
    border-radius: 14px;
    padding: 14px 8px;
    background: #f8f9fb;
    text-align: center;
    min-height: 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, background 0.15s;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

.ImageBlock:active,
.ImageBlock:hover {
    border-color: var(--sell-red);
    background: #fff;
}

.ImageBlock a {
    display: block;
    text-decoration: none;
    color: var(--sell-ink);
    width: 100%;
}

.ImageBlock .fieldlabels {
    text-align: center;
    padding: 6px 0 0 !important;
    color: var(--sell-ink);
    font-weight: 700;
    font-size: 12px;
}

.ImageBlock img {
    opacity: 0.65;
    width: 36px;
    height: 36px;
}

/* Date pickers */
#msform .datepicker.input-group,
#msform .input-group.date {
    width: 100% !important;
    max-width: 100%;
    display: flex;
    float: none !important;
}

#msform .input-group.date input {
    border-radius: 12px 0 0 12px !important;
    margin: 0;
    min-height: 48px;
    font-size: 16px;
}

#msform .input-group-addon {
    background: #f3f4f6;
    border: 1px solid var(--sell-border);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    min-width: 44px;
    justify-content: center;
}

.table-condensed {
    width: 200px;
    height: 10px;
    font-size: 12px;
}

/* OTP */
.sell-otp {
    max-width: 400px;
    margin: 8px auto 0;
    text-align: center;
    padding: 8px 4px calc(var(--sell-nav-h) + 16px);
}

.sell-otp__title {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sell-ink);
    letter-spacing: -0.02em;
}

.sell-otp__sub {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--sell-muted);
    line-height: 1.45;
}

.sell-otp #txtotp {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 22px !important;
    font-weight: 800;
    margin-bottom: 14px !important;
    min-height: 56px !important;
}

.sell-otp .action-button {
    width: 100%;
    max-width: 100%;
    float: none;
    margin-bottom: 12px;
}

.sell-otp #lnksenotp {
    float: none !important;
    display: inline-block;
    margin: 4px 0 12px;
    font-size: 14px;
    color: var(--sell-red) !important;
    padding: 8px;
}

.sell-otp #lnkcontinue {
    width: 100%;
    float: none;
}

.sell-contact-note {
    clear: both;
    margin: 4px 0 12px;
    font-size: 12px;
    color: var(--sell-muted);
    text-align: left;
    line-height: 1.4;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 12px;
}

/* Overlay */
#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    cursor: wait;
}

#text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Hide long hero copy on very small screens */
@media (max-width: 380px) {
    .sell-page-hero p {
        display: none;
    }

    .sell-vtype__card {
        font-size: 11px;
        min-height: 70px;
    }
}

/* Tablet+ : two-column fields, in-flow nav */
@media (min-width: 768px) {
    .sell-page {
        padding-bottom: 40px;
    }

    .sell-page-hero {
        padding: 24px 0 20px;
    }

    .sell-page-hero p {
        font-size: 15px;
    }

    .sell-page-form {
        padding: 20px 16px 0;
    }

    .sell-form-shell {
        padding: 22px 22px 28px;
        border-radius: 18px;
    }

    #msform .form-card {
        padding-bottom: 8px;
    }

    .sell-progress-wrap {
        position: static;
        margin: 0 0 20px;
        padding: 0;
        background: none;
    }

    #progressbar li {
        font-size: 13px;
    }

    #progressbar li:before {
        width: 36px;
        height: 36px;
        line-height: 34px;
        font-size: 14px;
    }

    #progressbar li:after {
        top: 17px;
    }

    #progressbar .sell-step-full {
        display: inline;
    }

    #progressbar .sell-step-short {
        display: none;
    }

    .sell-vtype {
        gap: 12px;
    }

    .sell-vtype__card {
        min-height: 96px;
        font-size: 14px;
        gap: 8px;
    }

    .sell-vtype__card i,
    .sell-vtype__card img {
        font-size: 30px !important;
        width: 36px;
        height: 36px;
    }

    #msform .eq.col-lg-6 {
        float: left;
        width: 50%;
        padding: 8px 10px;
    }

    #msform .eq.col-lg-12 {
        float: left;
        width: 100%;
        padding: 8px 10px;
    }

    .sell-photos {
        gap: 14px;
    }

    .ImageBlock {
        min-height: 128px;
        padding: 18px 12px;
    }

    .sell-form-nav {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: auto;
        margin-top: 12px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;
        width: 100%;
    }

    .sell-form-nav a,
    .sell-form-nav .action-button,
    .sell-form-nav .action-button-previous {
        flex: 0 1 auto;
        min-width: 140px !important;
        width: auto !important;
        max-width: 200px !important;
    }

    .sell-otp {
        padding-bottom: 16px;
    }
}
