/* ============================================================
   /sell — consignment landing page + enquiry form.
   Scoped under .sell-page so nothing bleeds into other pages.
   Design reference: marketing specs/sell-page (mockup + screenshots).
   ============================================================ */

.sell-page {
    --sell-navy: var(--color-primary, #1B2A5B);
    --sell-red: var(--color-accent, #CC2833);
    --sell-surface: var(--color-surface-warm, #FAF9F7);
    --sell-manila: #F3EBDD;
    --sell-manila-edge: #E4D7C0;
    --sell-rule: #D9D4CA;
    --sell-body: #3B4256;
    --sell-muted: #6B7080;
    --sell-wa: #1F8F4E;
    --sell-serif: 'DM Serif Display', Georgia, serif;

    background: var(--sell-surface);
    color: var(--sell-body);
    font-size: 17px;
    line-height: 1.55;
}

.sell-page h1,
.sell-page h2 {
    font-family: var(--sell-serif);
    font-weight: 400;
    color: var(--sell-navy);
    letter-spacing: -0.01em;
}

.sell-page h2 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.sell-page :focus-visible {
    outline: 3px solid #2F6FED;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---- Layout: one column on mobile (main, form, FAQ); form in a sticky right column on desktop ---- */
.sell-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "form" "faq";
}

.sell-main { grid-area: main; min-width: 0; }
.sell-faq { grid-area: faq; min-width: 0; }
.sell-enquire { grid-area: form; }

.sell-section {
    padding: 40px 0;
    border-top: 1px solid var(--sell-rule);
}

@media (min-width: 992px) {
    .sell-layout {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        column-gap: 64px;
        padding: 0 32px;
        grid-template-areas: "main form" "faq form";
    }

    .sell-enquire {
        align-self: start;
        position: sticky;
        top: 96px;
    }
}

/* ---- Hero ---- */
.sell-hero {
    padding: 44px 0 28px;
}

.sell-hero h1 {
    font-size: 46px;
    line-height: 1.02;
    margin-bottom: 18px;
}

.sell-hero p {
    font-size: 19px;
    max-width: 36ch;
    margin-bottom: 0;
}

.sell-hero .sell-rate {
    color: var(--sell-navy);
    font-weight: 600;
}

.sell-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.sell-btn--primary {
    background: var(--sell-red);
    color: #fff;
}

.sell-btn--primary:hover,
.sell-btn--primary:focus {
    background: #B3222C;
    color: #fff;
}

.sell-btn--wa {
    background: #fff;
    color: var(--sell-wa);
    border-color: var(--sell-wa);
}

.sell-btn--wa:hover {
    color: var(--sell-wa);
    background: #F2FAF5;
}

.sell-btn--wa svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (min-width: 992px) {
    .sell-hero { padding-top: 64px; }
    .sell-hero h1 { font-size: 64px; }
    /* The form is already alongside on desktop. */
    .sell-ctas .sell-btn--to-form { display: none; }
}

/* ---- Notice band (admin-editable; not rendered when empty) ---- */
.sell-notice {
    margin: 8px 0 4px;
    padding: 14px 18px;
    border-left: 4px solid var(--sell-red);
    background: #fff;
    color: var(--sell-navy);
    font-weight: 500;
}

/* ---- Recently sold: manila auction tags ---- */
.sell-tags-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

.sell-tags-head h2 { margin-bottom: 0; }

.sell-tags-head small {
    color: var(--sell-muted);
    font-size: 14px;
}

.sell-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 68%;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    padding: 30px 16px 18px;
    margin: 0 -16px;
}

.sell-rail::-webkit-scrollbar { display: none; }

@media (min-width: 600px) {
    .sell-rail { grid-auto-columns: 42%; }
}

@media (min-width: 992px) {
    .sell-rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
        margin: 0;
        padding: 30px 0 6px;
        row-gap: 40px;
    }
}

.sell-tag-wrap {
    position: relative;
    scroll-snap-align: start;
}

.sell-tag-wrap:nth-child(odd) .sell-tag { transform: rotate(-1.4deg); }
.sell-tag-wrap:nth-child(even) .sell-tag { transform: rotate(1.1deg); }

.sell-tag-string {
    position: absolute;
    left: 50%;
    top: -26px;
    width: 40px;
    height: 44px;
    margin-left: -20px;
    pointer-events: none;
    z-index: 2;
}

.sell-tag-wrap:nth-child(even) .sell-tag-string { transform: scaleX(-1); }

.sell-tag {
    position: relative;
    background: var(--sell-manila);
    padding: 34px 14px 16px;
    /* chamfered top corners */
    clip-path: polygon(16% 0, 84% 0, 100% 9%, 100% 100%, 0 100%, 0 9%);
    filter: drop-shadow(0 1px 0 var(--sell-manila-edge)) drop-shadow(0 6px 10px rgba(27, 42, 91, 0.10));
}

/* punched hole */
.sell-tag::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--sell-surface);
    box-shadow: inset 0 0 0 2px var(--sell-manila-edge);
}

.sell-tag img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 3px solid #fff;
    background: #fff;
}

.sell-tag__sold {
    margin-top: 12px;
    font-size: 13px;
    color: var(--sell-muted);
}

.sell-tag__price {
    font-family: var(--sell-serif);
    font-size: 34px;
    line-height: 1;
    color: var(--sell-navy);
    margin-top: 2px;
}

.sell-tag__what {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.35;
    color: var(--sell-navy);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.sell-tag__when {
    margin-top: 4px;
    font-size: 13px;
    color: var(--sell-muted);
}

@media (prefers-reduced-motion: reduce) {
    .sell-rail { scroll-behavior: auto; }
}

/* ---- How it works: a real sequence, so numbered ---- */
.sell-steps {
    list-style: none;
    counter-reset: sell-step;
    display: grid;
    gap: 22px;
    padding: 0;
    margin: 0;
}

.sell-steps li {
    counter-increment: sell-step;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
}

.sell-steps li::before {
    content: counter(sell-step);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--sell-navy);
    color: var(--sell-navy);
    font-family: var(--sell-serif);
    font-size: 22px;
    line-height: 40px;
    text-align: center;
}

.sell-steps b {
    display: block;
    color: var(--sell-navy);
    font-weight: 600;
}

/* ---- What it costs: definition list, no cards ---- */
.sell-costs {
    display: grid;
    grid-template-columns: auto 1fr;
    margin: 0;
}

.sell-costs dt,
.sell-costs dd {
    padding: 14px 0;
    margin: 0;
    border-bottom: 1px solid var(--sell-rule);
}

.sell-costs dt {
    padding-right: 24px;
    color: var(--sell-muted);
    font-weight: 400;
}

.sell-costs dd {
    color: var(--sell-navy);
    font-weight: 500;
}

.sell-costs dd small {
    display: block;
    font-weight: 400;
    color: var(--sell-muted);
    font-size: 15px;
}

/* ---- What sells well ---- */
.sell-sells {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 1;
}

@media (min-width: 600px) {
    .sell-sells { columns: 2; column-gap: 32px; }
}

.sell-sells li {
    break-inside: avoid;
    padding: 10px 0 10px 22px;
    position: relative;
    color: var(--sell-navy);
}

.sell-sells li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 19px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--sell-red);
}

.sell-aside-note {
    margin: 16px 0 0;
    color: var(--sell-muted);
    font-size: 15px;
    max-width: 60ch;
}

/* ---- Enquiry form: navy card ---- */
.sell-enquire {
    background: var(--sell-navy);
    color: #fff;
    border-radius: 14px;
    padding: 28px 20px 24px;
    margin: 8px -4px 40px;
    scroll-margin-top: 96px;
}

@media (min-width: 992px) {
    .sell-enquire {
        margin: 56px 0 40px;
        padding: 32px 30px 28px;
    }
}

.sell-enquire h2 {
    color: #fff;
    margin-bottom: 6px;
}

.sell-enquire__sub {
    color: #C9D0E6;
    font-size: 16px;
    margin-bottom: 22px;
}

.sell-field {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.sell-field > label,
.sell-field > legend {
    display: block;
    float: none;
    width: auto;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 7px;
    color: #fff;
}

.sell-field .sell-hint {
    font-weight: 400;
    color: #AEB7D4;
}

.sell-enquire input[type="text"],
.sell-enquire input[type="tel"],
.sell-enquire input[type="email"],
.sell-enquire textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 17px;
    line-height: 1.3;
    color: var(--sell-navy);
    background: #fff;
}

.sell-enquire textarea {
    min-height: 92px;
    resize: vertical;
}

.sell-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sell-chips input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sell-chips label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    border-radius: 999px;
    border: 1.5px solid #5A6A9C;
    color: #E4E8F5;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    user-select: none;
}

.sell-chips input:checked + label {
    background: #fff;
    border-color: #fff;
    color: var(--sell-navy);
}

.sell-chips input:focus-visible + label {
    outline: 3px solid #8FB2FF;
    outline-offset: 2px;
}

.sell-photos {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 14px;
    margin: 0;
    border: 1.5px dashed #5A6A9C;
    border-radius: 8px;
    color: #E4E8F5;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.sell-photos svg {
    flex: none;
    width: 26px;
    height: 26px;
    fill: #AEB7D4;
}

.sell-photos-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.sell-photos-input:focus-visible + .sell-photos {
    outline: 3px solid #8FB2FF;
    outline-offset: 2px;
}

.sell-add-email {
    background: none;
    border: 0;
    color: #C9D0E6;
    font-weight: 500;
    font-size: 15px;
    text-decoration: underline;
    cursor: pointer;
    padding: 2px 0;
    margin-bottom: 16px;
}

.sell-consent {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 15px;
    color: #DCE1F0;
    margin: 6px 0 20px;
}

.sell-consent input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    accent-color: var(--sell-red);
}

.sell-enquire .sell-btn--primary { width: 100%; }

.sell-enquire__alt {
    margin: 14px 0 0;
    font-size: 15px;
    color: #C9D0E6;
    text-align: center;
}

.sell-enquire__alt a { color: #fff; }

.sell-error {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #FFC9CC;
    font-size: 14px;
    font-weight: 500;
}

.sell-form-alert {
    background: #fff;
    color: #9B1C25;
    border-left: 4px solid var(--sell-red);
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 500;
}

/* Honeypot: off-screen for people, visible to bots. */
.sell-hp {
    position: absolute;
    left: -9999px;
}

/* ---- FAQ ---- */
.sell-faq details {
    border-bottom: 1px solid var(--sell-rule);
}

.sell-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 32px 16px 0;
    position: relative;
    color: var(--sell-navy);
    font-weight: 600;
}

.sell-faq summary::-webkit-details-marker { display: none; }

.sell-faq summary::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--sell-navy);
    border-bottom: 2px solid var(--sell-navy);
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.sell-faq details[open] summary::after {
    transform: rotate(-135deg);
    top: 28px;
}

.sell-faq details p {
    padding: 0 0 18px;
    margin: 0;
    max-width: 62ch;
}

@media (prefers-reduced-motion: reduce) {
    .sell-faq summary::after { transition: none; }
}

/* ---- Thanks page ---- */
.sell-thanks {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 16px 64px;
}

.sell-thanks h1 {
    font-size: 44px;
    line-height: 1.05;
    margin-bottom: 14px;
}

.sell-thanks__lede {
    font-size: 19px;
    margin-bottom: 36px;
}

.sell-thanks__cta { margin-top: 36px; }

/* ---- One-line strip on /how-it-works ---- */
.sell-strip {
    background: var(--color-surface-warm, #FAF9F7);
    border-top: 1px solid #D9D4CA;
    padding: 18px 16px;
    text-align: center;
    color: var(--color-primary, #1B2A5B);
}

.sell-strip a {
    color: var(--color-primary, #1B2A5B);
    font-weight: 600;
}
