body.theme-test .modal.modal-side-panel.vehicle-form-modal .modal-content,
.modal.modal-side-panel.vehicle-form-modal .modal-content {
    width: min(920px, 100%);
    max-width: min(920px, 100%);
    height: 100%;
    max-height: 100vh;
    border-radius: 1rem 0 0 1rem;
}

.vehicle-form-dossier {
    display: flex;
    flex-direction: column;
}

.vehicle-form-context {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0 1rem;
    border-bottom: 1px solid var(--border);
}

.vehicle-form-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-form-context-title {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.vehicle-form-context-meta {
    margin: 0.3rem 0 0;
    color: var(--text-secondary);
    line-height: 1.4;
}

.vehicle-form-section {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}

.vehicle-form-section[hidden] {
    display: none;
}

.vehicle-form-section-heading {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.9rem;
}

.vehicle-form-section-number {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

.vehicle-form-section-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.vehicle-form-section-content > :last-child {
    margin-bottom: 0;
}

.vehicle-form-section-content > .form-row:last-child > .form-group,
.vehicle-form-section-content > .form-group:last-child {
    margin-bottom: 0;
}

.modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem 1.5rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

body.theme-test .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
    position: static;
    margin: 0;
    padding: 0.85rem 1.2rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    body.theme-test .modal.modal-side-panel.vehicle-form-modal .modal-content,
    .modal.modal-side-panel.vehicle-form-modal .modal-content {
        border-radius: 0;
    }

    .vehicle-form-context {
        padding-top: 0;
    }

    .vehicle-form-section {
        padding: 1rem 0;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions .btn {
        min-height: 44px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .vehicle-form-section-heading {
        grid-template-columns: 1.75rem minmax(0, 1fr);
        gap: 0.6rem;
    }

    .vehicle-form-section-number {
        width: 1.75rem;
        height: 1.75rem;
    }

    .modal.vehicle-form-modal .modal-footer .vehicle-form-footer-actions {
        gap: 0.5rem;
    }
}
