.dealer-page {
    background: #ffffff;
    color: #111827;
}

.dealer-page-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(220px, 32vw, 340px);
    overflow: hidden;
    text-align: center;
}

.dealer-page-hero-mosaic {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    height: 100%;
    background: #0b1220;
}

.dealer-page-hero-tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #e8eef6;
    filter: saturate(0.95) contrast(1.02);
}

.dealer-page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.58) 0%, rgba(8, 12, 18, 0.74) 100%),
        linear-gradient(90deg, rgba(11, 74, 158, 0.28) 0%, transparent 60%);
}

.dealer-page-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: clamp(2.5rem, 6vw, 4rem) 1rem;
    max-width: 820px;
}

.dealer-page-hero h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.85rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.dealer-page-breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.4;
}

.dealer-page-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.dealer-page-breadcrumb a:hover {
    opacity: 0.85;
}

.dealer-page-breadcrumb-sep {
    opacity: 0.75;
    font-size: 0.72rem;
}

.dealer-page-hero-desc {
    margin: 0.35rem 0 0;
    max-width: 38rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.65;
}

.dealer-register-section {
    background: #ffffff;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.dealer-register-section .container {
    width: min(1140px, 92%);
    max-width: min(1140px, 92%);
}

.dealer-register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
}

.dealer-form-panel,
.dealer-info-panel {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dealer-form-panel {
    padding: clamp(1.5rem, 3vw, 2rem);
}

.dealer-form-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--brand-primary, #0379c3);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dealer-form-panel h2 {
    margin: 0 0 0.45rem;
    color: #111827;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.dealer-form-intro {
    margin: 0 0 1.5rem;
    color: #4b5563;
    font-size: 0.92rem;
    line-height: 1.65;
}

.dealer-form-section {
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #eef2f6;
}

.dealer-form-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.dealer-form-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dealer-form-section-title i {
    color: var(--brand-primary, #0379c3);
    font-size: 1rem;
}

.dealer-form-label {
    display: block;
    margin-bottom: 0.35rem;
    color: #111827;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
}

.dealer-form-label span {
    color: var(--brand-primary, #0379c3);
}

.dealer-form-panel .form-control,
.dealer-form-panel .form-select {
    min-height: 46px;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d8e3ee;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 0.9rem;
    line-height: 1.45;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dealer-form-panel textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.dealer-form-panel .form-control::placeholder {
    color: #9ca3af;
}

.dealer-form-panel .form-control:focus,
.dealer-form-panel .form-select:focus {
    border-color: var(--brand-primary, #0379c3);
    background: #ffffff;
    color: #111827;
    box-shadow: 0 0 0 3px rgba(3, 121, 195, 0.12);
    outline: none;
}

.dealer-form-actions {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid #eef2f6;
}

.dealer-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.75rem 1.65rem;
    border: 0;
    border-radius: 6px;
    background: var(--brand-primary, #0379c3);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dealer-form-submit:hover {
    background: var(--brand-primary-dark, #026aaa);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(3, 121, 195, 0.28);
}

.dealer-form-note {
    margin: 0.85rem 0 0;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.55;
}

.dealer-info-panel {
    padding: clamp(1.35rem, 2.5vw, 1.75rem);
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
}

body.cms-editing .dealer-info-panel {
    padding-top: 3rem;
}

.dealer-info-panel h3 {
    margin: 0 0 1rem;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.35;
}

.dealer-benefit-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1.35rem;
    padding: 0;
    list-style: none;
}

.dealer-benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dealer-benefit-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(3, 121, 195, 0.1);
    color: var(--brand-primary, #0379c3);
    font-size: 0.95rem;
}

.dealer-benefit-copy h4 {
    margin: 0 0 0.15rem;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.dealer-benefit-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.55;
}

.dealer-info-card {
    padding: 1rem;
    border: 1px solid #e3ebf3;
    border-radius: 6px;
    background: #ffffff;
}

.dealer-info-card + .dealer-info-card {
    margin-top: 0.85rem;
}

.dealer-info-card h4 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.45rem;
    color: #111827;
    font-size: 0.84rem;
    font-weight: 700;
}

.dealer-info-card h4 i {
    color: var(--brand-primary, #0379c3);
}

.dealer-info-card p,
.dealer-info-card a {
    margin: 0;
    color: #4b5563;
    font-size: 0.84rem;
    line-height: 1.6;
    text-decoration: none;
}

.dealer-info-card a:hover {
    color: var(--brand-primary, #0379c3);
}

@media (max-width: 991.98px) {
    .dealer-page-hero-mosaic {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .dealer-register-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dealer-info-panel {
        order: -1;
    }
}

@media (max-width: 575.98px) {
    .dealer-page-hero {
        min-height: 200px;
    }

    .dealer-page-hero-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .dealer-register-section .container {
        width: 94%;
        max-width: 94%;
    }

    .dealer-form-panel,
    .dealer-info-panel {
        border-radius: 6px;
    }
}
