/*
 * EMB Baggerkonfigurator
 * Frontend-Kundendatenformular
 * Seit Version 2.05.53 aus frontend-finish.css ausgelagert.
 *
 * Dieses Modul verwendet bewusst keine erzwungenen Prioritätsregeln.
 */

body.app-body--frontend #abschluss #customer.customer-form-shell {
    display: none;
    margin-top: 16px;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(223, 230, 235, .95);
    border-radius: 15px;
    background: #f8fbfc;
    box-sizing: border-box;
}

body.app-body--frontend #abschluss #customer.customer-form-shell.active {
    display: block;
}

body.app-body--frontend #abschluss #customer form.customer-form {
    width: 100%;
    height: auto;
    margin: 0;
}

body.app-body--frontend #abschluss .customer-form__required-note {
    margin: 0 0 18px;
    color: var(--fe-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.app-body--frontend #abschluss .customer-form__required-note span {
    color: #b10505;
    font-weight: 800;
}

body.app-body--frontend #abschluss .customer-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

body.app-body--frontend #abschluss .customer-form__field {
    min-width: 0;
}

body.app-body--frontend #abschluss .customer-form__field--wide {
    grid-column: 1 / -1;
}

body.app-body--frontend #abschluss .customer-form label {
    float: none;
    clear: none;
    display: block;
    width: auto;
    margin: 0 0 8px;
    color: var(--fe-ink);
    font-weight: 700;
    line-height: 1.35;
}

body.app-body--frontend #abschluss .customer-form label.required::after {
    content: " *";
    color: #b10505;
}

body.app-body--frontend #abschluss .customer-form input,
body.app-body--frontend #abschluss .customer-form select,
body.app-body--frontend #abschluss .customer-form textarea {
    float: none;
    clear: none;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(208, 218, 226, 1);
    border-radius: 12px;
    background: #fff;
    color: var(--fe-ink);
    font: 400 16px/1.4 Arial, Helvetica, sans-serif;
    outline: none;
    box-sizing: border-box;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.app-body--frontend #abschluss .customer-form select {
    min-height: 50px;
}

body.app-body--frontend #abschluss .customer-form textarea {
    min-height: 140px;
    resize: vertical;
}

body.app-body--frontend #abschluss .customer-form input:focus,
body.app-body--frontend #abschluss .customer-form select:focus,
body.app-body--frontend #abschluss .customer-form textarea:focus {
    border-color: rgba(34, 170, 184, .72);
    box-shadow: 0 0 0 4px rgba(34, 170, 184, .12);
}

body.app-body--frontend #abschluss .customer-form input.error,
body.app-body--frontend #abschluss .customer-form select.error,
body.app-body--frontend #abschluss .customer-form textarea.error {
    border-color: rgba(177, 5, 5, .72);
    background: rgba(177, 5, 5, .025);
}

body.app-body--frontend #abschluss .customer-form label.error {
    margin: 7px 0 0;
    color: #b10505;
    font-size: 13px;
    font-weight: 700;
}

body.app-body--frontend #abschluss .customer-form__hint {
    margin: 8px 0 0;
    color: var(--fe-muted);
    font-size: 14px;
    line-height: 1.5;
}

body.app-body--frontend #abschluss #angebot .customer-form__field--position,
body.app-body--frontend #abschluss #angebot .customer-form__field--mobile {
    display: none;
}

body.app-body--frontend #abschluss .customer-form__notice-label--demo {
    display: none;
}

body.app-body--frontend #abschluss #vorfuehrung .customer-form__notice-label--offer {
    display: none;
}

body.app-body--frontend #abschluss #vorfuehrung .customer-form__notice-label--demo {
    display: inline;
}

body.app-body--frontend #abschluss .customer-form__message {
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(46, 151, 0, .24);
    border-radius: 12px;
    background: rgba(46, 151, 0, .07);
    color: #276f09;
    font-weight: 700;
    line-height: 1.5;
}

body.app-body--frontend #abschluss .customer-form__message:empty {
    display: none;
}

body.app-body--frontend #abschluss .customer-form__message.error {
    border-color: rgba(177, 5, 5, .24);
    background: rgba(177, 5, 5, .06);
    color: #9a0909;
}

body.app-body--frontend #abschluss .customer-form__actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px;
}

body.app-body--frontend #abschluss #sendCustomer {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    width: auto;
    min-height: 50px;
    height: auto;
    padding: 12px 22px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--fe-accent), #4db8c6);
    color: #fff;
    font: 800 16px/1.25 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

body.app-body--frontend #abschluss #sendCustomer:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
    box-shadow: 0 12px 22px rgba(34, 170, 184, .2);
}

body.app-body--frontend #abschluss #sendCustomer:focus-visible {
    outline: 3px solid rgba(34, 170, 184, .28);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    body.app-body--frontend #abschluss .customer-form__grid {
        grid-template-columns: 1fr;
    }

    body.app-body--frontend #abschluss .customer-form__field--wide {
        grid-column: auto;
    }

    body.app-body--frontend #abschluss .customer-form__actions {
        justify-content: stretch;
    }

    body.app-body--frontend #abschluss #sendCustomer {
        width: 100%;
    }
}

@media (max-width: 560px) {
    body.app-body--frontend #abschluss #customer.customer-form-shell {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.app-body--frontend #abschluss .customer-form input,
    body.app-body--frontend #abschluss .customer-form select,
    body.app-body--frontend #abschluss .customer-form textarea,
    body.app-body--frontend #abschluss #sendCustomer {
        transition: none;
    }
}
