/*
 * Fluent Forms (Kontaktformular u. a.): Gear-Dock-Stil statt Plugin-Standard.
 * Wird nur geladen, wenn Fluent Forms aktiv ist. Selektoren mit "body", damit sie das Plugin-CSS übersteuern.
 */
body .fluentform .ff-el-group {
    margin-bottom: 20px;
}
body .fluentform .ff-el-input--label label {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
}
body .fluentform .ff-el-input--label.ff-el-is-required.asterisk-right label::after,
body .fluentform .ff-el-input--label.ff-el-is-required.asterisk-left label::before {
    color: var(--lime);
}
body .fluentform .ff-el-form-control {
    min-height: 55px;
    padding: 0 16px;
    border: 1px solid var(--card-line);
    border-radius: var(--radius-input);
    background-color: var(--field);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
body .fluentform textarea.ff-el-form-control {
    min-height: 140px;
    padding: 16px;
}
body .fluentform .ff-el-form-control::placeholder {
    color: var(--muted);
    opacity: 1;
}
body .fluentform .ff-el-form-control:focus {
    border-color: var(--lime);
    background-color: var(--field);
    color: var(--white);
    box-shadow: 0 0 0 1px var(--lime);
    outline: 0;
}

/* Checkbox (Datenschutz) */
body .fluentform .ff-el-form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--white);
    font-size: 14px;
    line-height: 1.5;
}
body .fluentform .ff-el-form-check-label a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
}
body .fluentform .ff-el-form-check-input {
    margin-top: 2px;
}
/* Pflicht-Checkbox (Datenschutz): Sternchen wie bei den Pflichtfeldern */
body .fluentform .ff-el-form-check-label:has(.ff-el-form-check-input[aria-required="true"]) > span::after {
    content: " *";
    color: var(--lime);
}

/* Absenden */
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius-pill);
    background-color: var(--lime);
    color: var(--ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition: filter 0.15s ease, transform 0.15s ease;
}
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style):hover,
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style):focus {
    background-color: var(--lime);
    color: var(--ink);
    filter: brightness(1.1);
    transform: translateY(-1px);
}
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style):active {
    background-color: var(--lime-dark);
    color: var(--lime);
    transform: none;
    filter: none;
}
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style):disabled,
body .fluentform form .ff-btn-submit.ff-btn-submit:not(.ff_btn_no_style).disabled {
    opacity: 0.4;
    pointer-events: none;
}
body .fluentform .ff-btn-submit.ff-working::before,
body .fluentform .ff-btn-submit .ff-loader {
    border-color: var(--ink);
}

/* Fehler */
body .fluentform .ff-el-is-error .ff-el-form-control {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red);
}
body .fluentform .ff-el-is-error .ff-el-form-control:focus {
    box-shadow: 0 0 0 1px var(--red), 0 0 0 4px rgb(251 54 64 / 0.3);
}
body .fluentform .ff-el-is-error label,
body .fluentform .error.text-danger,
body .fluentform .text-danger {
    color: var(--red);
    font-size: 14px;
}
body .fluentform .error.text-danger {
    margin-top: 8px;
}
body .fluentform .ff-errors-in-stack,
body .fluentform .ff-message-error {
    margin: 0 0 16px;
    padding: 14px 20px;
    border: 0;
    border-left: 5px solid var(--red);
    border-radius: var(--radius-sm);
    background: var(--red-dark);
    color: var(--white);
    font-size: 14px;
}

/* Erfolgsmeldung */
body .ff-message-success,
body .fluentform .ff-message-success {
    margin: 0 0 16px;
    padding: 14px 20px;
    border: 0;
    border-left: 5px solid var(--lime);
    border-radius: var(--radius-sm);
    background: var(--lime-dark);
    color: var(--white);
    font-size: 14px;
    box-shadow: none;
}
