/* ═══════════════════════════════════════════════════════════════
   Bayi Ol — modern dealer application landing
   ═══════════════════════════════════════════════════════════════ */

.dealer-landing {
    --dl-primary: var(--color-primary, #f97316);
    --dl-primary-soft: color-mix(in srgb, var(--dl-primary) 14%, #fff);
    --dl-ink: #0f172a;
    --dl-muted: #64748b;
    --dl-border: #e2e8f0;
    --dl-surface: #ffffff;
    --dl-radius: 1.25rem;
    margin: 0 0 2rem;
}

/* ── Hero banner (full bleed) ───────────────────────────────── */

.dealer-landing__banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #0c1222 0%, #151d32 38%, #1a1040 100%);
    padding: 2.5rem 1rem 4.5rem;
}

.dealer-landing__banner-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 90% 5%, rgba(99, 102, 241, 0.45), transparent 55%),
        radial-gradient(ellipse 50% 45% at 5% 95%, color-mix(in srgb, var(--dl-primary) 35%, transparent), transparent 50%);
    pointer-events: none;
}

.dealer-landing__banner-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    pointer-events: none;
}

.dealer-landing__banner-inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
}

.dealer-landing__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.15s;
}

.dealer-landing__back:hover {
    color: #f8fafc;
}

.dealer-landing__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.3);
    backdrop-filter: blur(8px);
}

.dealer-landing__title {
    margin-top: 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    max-width: 18ch;
}

.dealer-landing__lead {
    margin-top: 1rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #94a3b8;
}

/* Benefit cards */
.dealer-landing__benefits {
    display: grid;
    gap: 0.875rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .dealer-landing__benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

.dealer-landing__benefit {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    padding: 1.125rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}

.dealer-landing__benefit:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.dealer-landing__benefit-icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.dealer-landing__benefit-icon--violet {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

.dealer-landing__benefit-icon--amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.dealer-landing__benefit-icon--emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.dealer-landing__benefit h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.3;
}

.dealer-landing__benefit p {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

/* ── Main content (overlapping card) ────────────────────────── */

.dealer-landing__main {
    margin-top: -2.75rem;
    padding: 0 1rem 2rem;
    position: relative;
    z-index: 2;
}

.dealer-landing__main-inner {
    max-width: 52rem;
    margin: 0 auto;
}

/* Progress stepper */
.dealer-landing__progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.dealer-landing__progress-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dealer-landing__progress-dot {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    transition: all 0.2s;
}

.dealer-landing__progress-step.is-active .dealer-landing__progress-dot {
    color: #fff;
    background: linear-gradient(135deg, var(--dl-primary), color-mix(in srgb, var(--dl-primary) 70%, #7c3aed));
    box-shadow: 0 4px 12px color-mix(in srgb, var(--dl-primary) 40%, transparent);
}

.dealer-landing__progress-step.is-done .dealer-landing__progress-dot {
    color: #fff;
    background: #10b981;
}

.dealer-landing__progress-label {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dl-muted);
}

.dealer-landing__progress-step.is-active .dealer-landing__progress-label {
    color: var(--dl-ink);
}

@media (min-width: 640px) {
    .dealer-landing__progress-label {
        display: block;
    }
}

.dealer-landing__progress-line {
    width: 2rem;
    height: 2px;
    margin: 0 0.5rem;
    background: #e2e8f0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .dealer-landing__progress-line {
        width: 3.5rem;
    }
}

.dealer-landing__progress-line.is-done {
    background: linear-gradient(90deg, #10b981, var(--dl-primary));
}

/* Form card */
.dealer-landing__form-card {
    border-radius: var(--dl-radius);
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

.dealer-landing__guest-note {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.875rem 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #4338ca;
    background: linear-gradient(90deg, #eef2ff, #f5f3ff);
    border-bottom: 1px solid #e0e7ff;
}

.dealer-landing__form {
    padding: 1.75rem 1.5rem;
}

@media (min-width: 640px) {
    .dealer-landing__form {
        padding: 2rem 2rem 1.75rem;
    }
}

.dealer-landing__form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.dealer-landing__form-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dl-ink);
    letter-spacing: -0.02em;
}

.dealer-landing__form-header p {
    margin-top: 0.35rem;
    font-size: 0.875rem;
    color: var(--dl-muted);
    line-height: 1.5;
}

/* Fieldsets */
.dealer-landing__fieldset + .dealer-landing__fieldset {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.dealer-landing__fieldset-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dl-muted);
}

.dealer-landing__fields {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dealer-landing__fields {
        grid-template-columns: 1fr 1fr;
    }
}

.dealer-landing__field--full {
    grid-column: 1 / -1;
}

.dealer-landing__field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.dealer-landing__req {
    color: #ef4444;
}

.dealer-landing__field input,
.dealer-landing__field textarea,
.dealer-landing__field select {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--dl-ink);
    background: #f8fafc;
    border: 1.5px solid var(--dl-border);
    border-radius: 0.625rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.dealer-landing__field input:hover,
.dealer-landing__field textarea:hover,
.dealer-landing__field select:hover {
    border-color: #cbd5e1;
}

.dealer-landing__field input:focus,
.dealer-landing__field textarea:focus,
.dealer-landing__field select:focus {
    outline: none;
    background: #fff;
    border-color: var(--dl-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dl-primary) 16%, transparent);
}

.dealer-landing__field select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #f1f5f9;
}

.dealer-landing__field textarea {
    resize: vertical;
    min-height: 5rem;
}

.dealer-landing__error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #dc2626;
}

/* Form footer & CTA */
.dealer-landing__form-footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

.dealer-landing__form-footer--split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
}

.dealer-landing__login-hint {
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--dl-muted);
    line-height: 1.55;
}

.dealer-landing__login-hint a {
    font-weight: 600;
    color: var(--dl-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dealer-landing__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--dl-primary), color-mix(in srgb, var(--dl-primary) 75%, #ea580c));
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--dl-primary) 35%, transparent);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.dealer-landing__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--dl-primary) 45%, transparent);
}

.dealer-landing__cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.dealer-landing__cta--ghost {
    width: auto;
    color: #475569;
    background: #f1f5f9;
    box-shadow: none;
}

.dealer-landing__cta--ghost:hover {
    background: #e2e8f0;
    box-shadow: none;
}

@media (min-width: 640px) {
    .dealer-landing__cta {
        width: auto;
        min-width: 12rem;
    }

    .dealer-landing__form-footer:not(.dealer-landing__form-footer--split) .dealer-landing__cta {
        margin-left: auto;
        display: flex;
    }
}

/* Document upload */
.dealer-landing__docs {
    display: grid;
    gap: 0.875rem;
}

.dealer-landing__doc {
    padding: 1rem;
    border-radius: 0.875rem;
    border: 1.5px dashed #cbd5e1;
    background: #f8fafc;
    transition: border-color 0.15s, background 0.15s;
}

.dealer-landing__doc:hover {
    border-color: color-mix(in srgb, var(--dl-primary) 50%, #cbd5e1);
    background: var(--dl-primary-soft);
}

.dealer-landing__doc-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.dealer-landing__doc-icon {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    background: #fff;
    color: var(--dl-primary);
    border: 1px solid var(--dl-border);
}

.dealer-landing__doc-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--dl-ink);
}

.dealer-landing__doc-desc {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: var(--dl-muted);
    line-height: 1.45;
}

.dealer-landing__doc-meta {
    margin-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #94a3b8;
}

.dealer-landing__upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.875rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--dl-primary);
    background: #fff;
    border: 1.5px solid color-mix(in srgb, var(--dl-primary) 30%, #e2e8f0);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dealer-landing__upload:hover {
    background: var(--dl-primary-soft);
    border-color: var(--dl-primary);
}

.dealer-landing__upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.dealer-landing__uploading {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dl-primary);
}

/* Trust row */
.dealer-landing__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
    padding: 0;
    list-style: none;
}

.dealer-landing__trust li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dl-muted);
}

.dealer-landing__trust svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Success state */
.dealer-landing__success {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 2rem 1rem;
}

.dealer-landing__success-card {
    max-width: 28rem;
    width: 100%;
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: var(--dl-radius);
    background: var(--dl-surface);
    border: 1px solid var(--dl-border);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.dealer-landing__success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 4.5rem;
    width: 4.5rem;
    border-radius: 9999px;
    color: #059669;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.dealer-landing__success-title {
    margin-top: 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dl-ink);
    letter-spacing: -0.02em;
}

.dealer-landing__success-text {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--dl-muted);
    line-height: 1.6;
}

.dealer-landing__field--select {
    position: relative;
    z-index: 1;
}

.dealer-landing__field--select:has(.store-search-select.is-open) {
    z-index: 40;
}

.dealer-landing__success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Searchable select */
.store-search-select {
    position: relative;
    z-index: 1;
}

.store-search-select.is-open {
    z-index: 50;
}

.store-search-select.is-disabled {
    opacity: 0.6;
}

.store-search-select__trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 2.625rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--dl-ink, #0f172a);
    text-align: left;
    background: #f8fafc;
    border: 1.5px solid var(--dl-border, #e2e8f0);
    border-radius: 0.625rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.store-search-select__trigger:hover:not(:disabled) {
    border-color: #cbd5e1;
}

.store-search-select.is-open .store-search-select__trigger,
.store-search-select__trigger:focus-visible {
    outline: none;
    background: #fff;
    border-color: var(--dl-primary, #f97316);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dl-primary, #f97316) 16%, transparent);
}

.store-search-select__trigger:disabled {
    cursor: not-allowed;
    background: #f1f5f9;
}

.store-search-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-search-select__chevron {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.15s;
}

.store-search-select.is-open .store-search-select__chevron {
    transform: rotate(180deg);
}

.store-search-select__panel {
    position: absolute;
    z-index: 60;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--dl-border, #e2e8f0);
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.store-search-select__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.store-search-select__search-icon {
    flex-shrink: 0;
    color: #94a3b8;
}

.store-search-select__search-input {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
}

.store-search-select__list {
    max-height: 14rem;
    overflow: auto;
    padding: 0.35rem;
}

.store-search-select__option {
    display: block;
    width: 100%;
    padding: 0.55rem 0.65rem;
    font-size: 0.875rem;
    color: var(--dl-ink, #0f172a);
    text-align: left;
    border-radius: 0.5rem;
    cursor: pointer;
}

.store-search-select__option:hover,
.store-search-select__option.is-selected {
    background: color-mix(in srgb, var(--dl-primary, #f97316) 12%, #fff);
    color: color-mix(in srgb, var(--dl-primary, #f97316) 80%, #0f172a);
}

.store-search-select__empty {
    padding: 0.75rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

