/*
 * form.css — tokens live in theme.css (ADR 0004). No raw hex values in this file.
 *
 * Online-Formular (template/html/form.phtml) und seine Erfolgsseite (form_success.phtml).
 *
 * BA-0242: öffentliche Seite im Aussehen der Node-Konsole. Hell/Dunkel folgt der
 * Systemeinstellung (theme.js wie im Portal; vorher ohne data-theme immer dunkel).
 * Der Inhalt steht in einer flachen Karte auf --ba-bg; Felder und Knöpfe aus
 * theme.css, für das Telefon etwas größer (Schrift 16 px, Felder 44 px).
 * Das Markup trägt noch Bootstraps `text-white`/`border-white` aus der dunklen
 * Zeit; hier auf die Textfarbe der Fassung gesetzt (beide sind !important).
 */

html,
body {
    background-color: var(--ba-bg);
}

body {
    color: var(--ba-text);
    font-size: 1rem;
    letter-spacing: 0;
}

.form-section {
    padding: 3rem 0;
    border-bottom: none;
}

/* Inhalt als Karte */
.form-section > .container > .row > .mx-auto {
    padding: 28px 32px;
    background-color: var(--ba-card);
    border: 1px solid var(--ba-border);
    border-radius: var(--ba-radius);
}

@media (max-width: 575.98px) {
    .form-section {
        padding: 1rem 1rem 2rem !important;   /* 16 px Rand wie /pass und die Hinweisseiten (Prüfung RC 3 K3) */
    }

    .form-section > .container > .row > .mx-auto {
        padding: 20px 16px;
    }
}

.form-section .text-white {
    color: var(--ba-text) !important;
}

.form-section .border-white {
    border-color: var(--ba-border) !important;
}

.form-section .font-weight-bold {
    font-weight: var(--fw-medium) !important;
}

.form-section h2 {
    font-size: var(--fs-title);
    font-weight: var(--fw-medium);
    color: var(--ba-heading) !important;
}

.form-section .mb-5 {
    margin-bottom: 1.5rem !important;
}

.form-section p {
    color: var(--ba-text);
}

.form-section a {
    color: var(--ba-primary-text);
    font-weight: var(--fw-medium);
    text-decoration-line: underline;
    text-underline-offset: .15em;
}

.form-section a:hover {
    color: var(--ba-primary-text);
}

.form-section .col-form-label {
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: .9375rem;
    font-weight: var(--fw-medium);
    color: var(--ba-text);
}

.form-section .form-control {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 1rem;
    line-height: 22px;
}

.form-section select.form-control {
    padding-right: 2.2rem;
}

/* Knöpfe (nicht die Teile des beschrifteten Schalters bootstrap4-toggle) */
.form-section .btn:not([class*="toggle"]) {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    text-transform: none;
}

/* Unterschriftsfeld: Papier mit Rand */
.form-section #sig-canvas {
    max-width: 100%;
    border: 1px solid var(--ba-field-border);
    border-radius: var(--ba-radius);
}
