/* ============================================================
 * Sell My Car page additions
 * Reuses tokens + base classes from styles.css; adds only
 * sell-specific layout (quickstart card, value-prop grid,
 * how-it-works, badges, FAQ accordion).
 * ============================================================ */

/* ===== Hero specifics ===== */
.hero-sell { padding: 72px 0 96px; }

.sell-hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}

.sell-visual { width: 100%; }

/* ===== Quick Start Card ===== */
.quickstart-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border-strong);
    border-radius: 22px;
    box-shadow: var(--shadow-card), 0 0 80px -20px rgba(212,175,55,0.25);
    padding: 32px 28px 24px;
    position: relative;
    overflow: hidden;
}

.quickstart-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0.6;
}

.qs-step {
    display: none;
    animation: qsIn 0.35s cubic-bezier(0.4,0,0.2,1);
}
.qs-step.is-active { display: block; }

@keyframes qsIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.qs-back {
    background: none;
    border: none;
    color: var(--text-mute);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px 4px 0;
    margin-bottom: 6px;
    border-radius: 6px;
    font-family: inherit;
    transition: color 0.15s;
}
.qs-back:hover { color: var(--blue-bright); }

.qs-head { margin-bottom: 22px; position: relative; }

/* VIN-decode result banner inside step 2 head */
.qs-vin-notice {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.45;
}
.qs-vin-notice.is-visible { display: flex; }
.qs-vin-notice svg {
    width: 18px;
    height: 18px;
    color: var(--blue-bright);
    flex-shrink: 0;
    margin-top: 1px;
}
.qs-vin-notice strong { color: var(--blue-bright); font-weight: 700; }
.qs-vin-notice.is-warn {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-strong);
}
.qs-vin-notice.is-warn svg { color: var(--text-mute); }
.qs-vin-notice.is-warn strong { color: var(--text); }

.qs-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.qs-sub {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.5;
}

/* Tabs */
.qs-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}
.qs-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-mute);
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.18s;
    font-family: inherit;
}
.qs-tab:hover { color: var(--text); }
.qs-tab.is-active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Panes */
.qs-pane { display: none; margin-bottom: 18px; }
.qs-pane.is-active { display: block; }

.qs-pane-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* No-VIN explainer card */
.qs-no-vin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
}
.qs-no-vin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-blue);
    color: #1A1308;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -2px rgba(212,175,55,0.4);
}
.qs-no-vin-icon svg { width: 18px; height: 18px; }
.qs-no-vin p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
    margin: 2px 0 0;
}
.qs-no-vin strong { color: var(--blue-bright); font-weight: 700; }

/* Inputs */
.qs-step input[type="text"],
.qs-step input[type="number"],
.qs-step input[type="tel"],
.qs-step input[type="email"],
.qs-step select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-elev);
    border: 1.5px solid var(--border-strong);
    border-radius: 10px;
    color: var(--text);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
    min-height: 50px;
    letter-spacing: 0.01em;
}
.qs-step input::placeholder { color: var(--text-dim); }
.qs-step input:focus,
.qs-step select:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--bg-elev);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}
.qs-step input.has-error,
.qs-step select.has-error { border-color: #DC2626; }

#qs-plate { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
#qs-vin { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }

.qs-step select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A6AEBE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
}

/* Field labels for steps 2 & 3 */
.qs-field { margin-bottom: 14px; }
.qs-field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-mute);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.qs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

/* ===== Combobox (Make / Model searchable dropdowns) ===== */
.qs-combo {
    position: relative;
}
.qs-combo input {
    padding-right: 40px !important;
    cursor: text;
}
.qs-combo input:disabled {
    background: rgba(255,255,255,0.02);
    color: var(--text-dim);
    cursor: not-allowed;
    opacity: 0.7;
}
.qs-combo-toggle {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: var(--text-mute);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, transform 0.2s;
}
.qs-combo-toggle svg {
    width: 12px;
    height: 8px;
}
.qs-combo-toggle:hover { color: var(--text); }
.qs-combo.is-open .qs-combo-toggle {
    transform: translateY(-50%) rotate(180deg);
    color: var(--blue-bright);
}

.qs-combo-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    box-shadow: 0 18px 40px -8px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
    max-height: 260px;
    overflow-y: auto;
    z-index: 30;
    padding: 6px;
    display: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.qs-combo-pop::-webkit-scrollbar { width: 6px; }
.qs-combo-pop::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}
.qs-combo.is-open .qs-combo-pop { display: block; animation: comboIn 0.18s ease-out; }
@keyframes comboIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.qs-combo-option {
    padding: 10px 12px;
    font-size: 14.5px;
    color: var(--text);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}
.qs-combo-option:hover,
.qs-combo-option.is-active {
    background: rgba(212,175,55,0.1);
    color: var(--blue-bright);
}
.qs-combo-option.is-selected {
    background: rgba(212,175,55,0.06);
    color: var(--blue-bright);
}
.qs-combo-option.is-selected::after {
    content: '✓';
    margin-left: auto;
    font-size: 13px;
    font-weight: 800;
    color: var(--blue-bright);
}

.qs-combo-empty {
    padding: 14px 12px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-dim);
    font-style: italic;
}
.qs-combo-empty strong {
    display: block;
    margin-bottom: 4px;
    font-style: normal;
    color: var(--text-mute);
    font-weight: 600;
}

/* Condition cards */
.qs-condition-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.qs-cond-card {
    cursor: pointer;
    position: relative;
}
.qs-cond-card input { position: absolute; opacity: 0; pointer-events: none; }
.qs-cond-inner {
    border: 1.5px solid var(--border-strong);
    background: var(--bg-elev);
    border-radius: 10px;
    padding: 12px;
    transition: all 0.15s;
}
.qs-cond-inner strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 2px;
}
.qs-cond-inner span {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.35;
}
.qs-cond-card:hover .qs-cond-inner {
    border-color: var(--text-dim);
    background: var(--bg-card);
}
.qs-cond-card input:checked + .qs-cond-inner {
    border-color: var(--blue);
    background: rgba(212,175,55,0.08);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.qs-cond-card input:checked + .qs-cond-inner strong { color: var(--blue-bright); }

/* CTA */
.qs-cta {
    width: 100%;
    margin-top: 8px;
    position: relative;
}
.qs-cta .btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: qsSpin 0.7s linear infinite;
}
.qs-cta.is-loading .btn-label { display: none; }
.qs-cta.is-loading .btn-spinner { display: inline-block; }
@keyframes qsSpin { to { transform: rotate(360deg); } }

.qs-fineprint {
    text-align: center;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--text-dim);
}
.qs-fineprint strong {
    color: var(--blue-bright);
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-weight: 700;
    font-size: 12px;
}

/* Success state */
.qs-success {
    text-align: center;
    padding: 8px 0 4px;
}
.qs-success-check {
    width: 80px; height: 80px;
    margin: 0 auto 18px;
    color: var(--blue-bright);
    background: rgba(212,175,55,0.1);
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 24px -6px rgba(212,175,55,0.4);
}
.qs-success-check svg { width: 100%; height: 100%; }
.qs-success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.qs-success-msg {
    font-size: 14.5px;
    color: var(--text-mute);
    line-height: 1.55;
    margin-bottom: 22px;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}
.qs-success-cta {
    width: 100%;
    margin-bottom: 14px;
}

/* ===== Section: How It Works ===== */
.section-howitworks { background: var(--bg-deep); }

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hiw-card {
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-panel) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px;
    transition: all 0.25s;
    position: relative;
}
.hiw-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -16px rgba(0,0,0,0.5);
}

.hiw-num {
    font-size: 38px;
    font-weight: 900;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 18px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.hiw-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.hiw-desc {
    font-size: 14.5px;
    color: var(--text-mute);
    line-height: 1.55;
}

/* ===== Section: Why Us ===== */
.section-whyus { background: var(--bg-black); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px 22px;
    transition: all 0.25s;
}
.why-card:hover {
    border-color: var(--blue);
    background: var(--bg-elev);
    transform: translateY(-3px);
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212,175,55,0.1);
    color: var(--blue-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.why-icon svg { width: 26px; height: 26px; }

.why-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.why-card p {
    font-size: 14px;
    color: var(--text-mute);
    line-height: 1.5;
}

/* ===== Section: Buy Anything ===== */
.section-buy-anything { background: var(--bg-deep); }

.badge-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.badge-list li {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s;
}
.badge-list li:hover {
    border-color: var(--blue);
    background: rgba(212,175,55,0.08);
    color: var(--blue-bright);
    transform: translateY(-2px);
}

/* ===== Section: FAQ ===== */
.section-faq { background: var(--bg-black); }

.faq-container { max-width: 820px; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
}
.faq-item[open] {
    border-color: var(--border-strong);
    background: var(--bg-elev);
}
.faq-item:hover { border-color: var(--border-strong); }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: color 0.15s;
    letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--blue-bright);
    line-height: 1;
    transition: transform 0.25s, color 0.15s;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(212,175,55,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item:hover summary { color: var(--blue-bright); }

.faq-body {
    padding: 0 24px 22px;
}
.faq-body p {
    color: var(--text-mute);
    font-size: 15px;
    line-height: 1.65;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .sell-hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hiw-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}

@media (max-width: 720px) {
    .hero-sell { padding: 48px 0 64px; }
    .quickstart-card { padding: 26px 20px 20px; border-radius: 18px; }
    .qs-title { font-size: 19px; }
    .qs-grid { grid-template-columns: 1fr; }
    .qs-row { grid-template-columns: 1fr 100px; }
    .qs-condition-grid { grid-template-columns: 1fr 1fr; }
    .hiw-card { padding: 24px 22px; }
    .hiw-num { font-size: 32px; }
    .why-grid { grid-template-columns: 1fr; }
    .badge-list { gap: 8px; }
    .badge-list li { padding: 10px 16px; font-size: 13.5px; }
    .faq-item summary { padding: 16px 18px; font-size: 15px; }
    .faq-body { padding: 0 18px 18px; }
}

@media (max-width: 480px) {
    .qs-condition-grid { grid-template-columns: 1fr; }
    .qs-row { grid-template-columns: 1fr; }
    .qs-row select { min-height: 50px; }
}
