/* =====================================================
   Sell & Trade Page
   ===================================================== */
.st-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background: var(--dark-bg);
    overflow: hidden;
}
.st-hero-overlay {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1400&q=60') center/cover no-repeat;
    opacity: 0.18;
}
.st-hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 0 60px;
    color: #fff;
}
.st-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.st-hero-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 560px;
    margin-bottom: 28px;
}
.st-hero-btns .btn { min-width: 160px; }

.st-form-section {
    background: #f8f9fa;
    padding: 64px 0;
}
.st-form-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.st-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.st-steps {
    display: flex;
    align-items: center;
    gap: 0;
}
.st-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.45;
    transition: opacity .2s;
}
.st-step.active { opacity: 1; }
.st-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background .2s, color .2s;
}
.st-step.active .st-step-num {
    background: var(--accent-color, #2ecc40);
    color: #fff;
}
.st-step-label { font-weight: 600; font-size: 0.9rem; color: #333; }
.st-step-line {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 12px;
}
.st-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.st-how-section {
    padding: 72px 0;
    background: #fff;
}
.st-how-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.st-how-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.st-how-num {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-color, #2ecc40);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.st-how-icon {
    font-size: 2rem;
    color: var(--accent-color, #2ecc40);
    display: block;
    margin: 8px auto 12px;
}
.st-how-card h5 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.st-how-card p { font-size: 0.875rem; color: #666; margin: 0; }

.st-why-section {
    padding: 72px 0;
    background: #f8f9fa;
}
.st-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.st-benefit-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
}
.st-benefit-list li:last-child { border-bottom: none; }
.st-benefit-list li i { color: var(--accent-color, #2ecc40); font-size: 1.1rem; flex-shrink: 0; }
.st-benefit-list--sm li { font-size: 0.95rem; }

.st-why-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.st-stat {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.st-stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color, #2ecc40);
    line-height: 1;
    margin-bottom: 6px;
}
.st-stat-label { font-size: 0.85rem; color: #666; font-weight: 500; }

.st-private-section {
    padding: 72px 0;
    background: #fff;
}
.st-private-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
}
.st-private-card h5 { font-weight: 700; margin-bottom: 16px; color: #1a1a2e; }
.st-private-steps {
    padding-left: 20px;
    color: #444;
}
.st-private-steps li { padding: 6px 0; }

@media (max-width: 768px) {
    .st-form-card { padding: 24px 16px; }
    .st-hero-content { padding: 60px 0 40px; }
    .st-steps { flex-wrap: nowrap; overflow-x: auto; }
    .st-step-label { display: none; }
    .st-why-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .st-stat { padding: 16px 12px; }
    .st-stat-num { font-size: 1.6rem; }
}

/* ── Homepage Reels Strip ────────────────────────────────────────── */
.reels-section {
    padding: 60px 0 50px;
    background: #f8f9fa;
}

.reels-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) #e0e0e0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.reels-strip::-webkit-scrollbar {
    height: 6px;
}
.reels-strip::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 3px;
}
.reels-strip::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.reel-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s;
}

.reel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.reel-card .ratio-9x16 {
    --bs-aspect-ratio: 177.78%;
}

.reel-caption {
    margin: 0;
    padding: 8px 10px;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 576px) {
    .reel-card {
        flex: 0 0 175px;
    }
}

/* ============================================
   Remove number input spinner arrows globally
   ============================================ */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/* ============================================
   Deal Forms — Create Estimate / Create Bill of Sale
   Scoped under .deal-form-page so it never leaks
   into other admin pages.
   ============================================ */
.deal-form-page {
    padding-bottom: .5rem;
}

.deal-form-page .page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.deal-form-page .page-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: .25rem;
}
.deal-form-page .page-heading h1 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: .15rem;
    font-size: 1.7rem;
}
.deal-form-page .page-heading .page-subtitle {
    color: #6c7488;
    font-size: .92rem;
    margin: 0;
}

/* Cards */
.deal-form-page .card {
    border: 1px solid rgba(16,24,40,.07);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
    overflow: hidden;
}
.deal-form-page .card-header {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid rgba(16,24,40,.06);
}
.deal-form-page .card-header h5 {
    margin: 0;
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.deal-form-page .card-header .card-header-sub {
    display: block;
    font-size: .74rem;
    font-weight: 400;
    opacity: .85;
    letter-spacing: normal;
    margin-top: .1rem;
}
.deal-form-page .card-header .section-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255,255,255,.20);
    font-size: .95rem;
}
.deal-form-page .card-header.card-header-light .section-icon {
    background: rgba(0,0,0,.06);
    color: inherit;
}
.deal-form-page .card-body {
    padding: 1.15rem 1.15rem 1.3rem;
}

/* Form controls */
.deal-form-page .form-label {
    font-size: .81rem;
    font-weight: 600;
    color: #47506b;
}
.deal-form-page .form-control,
.deal-form-page .form-select {
    border-radius: 8px;
    border-color: #dde1ea;
}
.deal-form-page .form-control:focus,
.deal-form-page .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 .2rem rgba(46,204,64,.14);
}
.deal-form-page .form-control[readonly] {
    background-color: #f6f7fa;
}
.deal-form-page .input-group-text {
    border-radius: 8px 0 0 8px;
    background: #f3f4f8;
    border-color: #dde1ea;
    font-weight: 600;
    color: #6c7488;
}

/* Deal type selector pills */
.deal-form-page .deal-type-option {
    cursor: pointer;
    background: #fff;
    border-radius: 10px !important;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.deal-form-page .deal-type-option:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-1px);
}
.deal-form-page .deal-type-option .form-check-label {
    cursor: pointer;
}

/* Receipt-style totals / summary rows */
.deal-form-page .summary-block {
    background: #f8f9fc;
    border: 1px dashed #d6dae4;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.deal-form-page .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .75rem;
    padding: .3rem 0;
    font-size: .88rem;
}
.deal-form-page .summary-row .summary-label {
    color: #5a6178;
    font-weight: 500;
}
.deal-form-page .summary-row .summary-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a1a2e;
    white-space: nowrap;
}
.deal-form-page .summary-row.deduction .summary-value { color: #b8241e; }
.deal-form-page .summary-row .badge-no-tax {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .02em;
    vertical-align: middle;
}
.deal-form-page .summary-divider {
    border: none;
    border-top: 1px solid #e2e5ec;
    margin: .6rem 0;
}
.deal-form-page .summary-row.grand-total {
    margin-top: .25rem;
    padding: .65rem .75rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #262647 100%);
    border-radius: 10px;
    color: #fff;
}
.deal-form-page .summary-row.grand-total .summary-label {
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.deal-form-page .summary-row.grand-total .summary-value {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}
.deal-form-page .summary-row.balance-due {
    margin-top: .5rem;
    padding: .55rem .75rem;
    background: rgba(46,204,64,.09);
    border-radius: 10px;
}
.deal-form-page .summary-row.balance-due .summary-label {
    font-weight: 700;
    color: #1a1a2e;
    font-size: .88rem;
}
.deal-form-page .summary-row.balance-due .summary-value {
    color: var(--accent-text);
    font-size: 1.15rem;
    font-weight: 800;
}

/* Compact floating action bar — Ovi Motors theme */
.deal-sticky-actions {
    position: sticky;
    bottom: .85rem;
    z-index: 20;
    margin-top: 1.25rem;
    background: var(--sk-white, #fff);
    border: 1px solid var(--sk-gray-200, #e8e8e8);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(16,24,40,.10);
    padding: .55rem .85rem;
}
.deal-sticky-actions .sticky-figures {
    font-size: .8rem;
    color: var(--sk-gray-500, #8c8c9a);
}
.deal-sticky-actions .sticky-figures strong {
    color: var(--sk-gray-900, #1a1a2e);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.deal-sticky-actions .sticky-figures .text-success {
    color: var(--sk-green-dark, #2d6a2d) !important;
}
.deal-sticky-actions .btn {
    padding: .4rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 8px;
}
@media (max-width: 767.98px) {
    .deal-sticky-actions { bottom: .5rem; padding: .5rem .6rem; }
    .deal-sticky-actions .sticky-figures { display: none; }
}
