/* Visforms in Helix Ultimate: schmal, zentriert, saubere Abstände */

/* Container: max. 35 % Breite, zentriert, angepasste Abstände */
.visforms_form {
    max-width: 35vw;
    width: 100%;
    margin: 1.5rem auto 2rem auto;      /* etwas mehr Abstand als helix‑default forms */
    padding: 1.25rem;                    /* ca. 20 px – passt zu helix‑spacing */
    box-sizing: border-box;
    border-radius: 6px;                  /* rund, modern */
    background-color: #f8f9fa;           /* helix‑ähnlicher Hintergrund */
    border: 1px solid #dee2e6;           /* Bootstrap‑light, aber Template‑übergreifend ok */
}

/* Feldcontainer: passt zu sp‑module‑Abständen */
.visforms_field {
    width: 100%;
    margin-bottom: 1rem;                 /* 16 px – typisch für Helix */
}

/* Labels: Schrift wie Helix (robust, 100 % Line‑Height) */
.visforms_label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;                  /* ca. 14–15 px */
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

/* Textfelder, E‑Mail, Textarea – Baustil wie Helix */
input.visforms_text,
input.visforms_email,
textarea.visforms_textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;          /* ca. 10–12 px innen */
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Select (Dropdown) – same look */
select.visforms_select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Captcha-Bereich */
.visforms_captcha {
    margin-bottom: 1rem;
}

/* Captcha-Input: schmal, aber nicht zu klein */
.visforms_captcha input {
    width: 100%;
    max-width: 150px;
    padding: 0.5rem 0.6rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Submit-Button im Helix‑Button‑Stil */
button.visforms_button_submit {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.4;
    border-radius: 4px;
    border: none;
    background-color: #0066cc;           /* primär, wie helix‑primary */
    color: #fff;
    cursor: pointer;
    margin-top: 0.5rem;
}

button.visforms_button_submit:hover {
    background-color: #005aad;
}

/* Responsive: auf Mobil 100 % Breite, etwas kompakter */
@media (max-width: 767px) {
    .visforms_form {
        max-width: 100%;
        padding: 1rem;
        margin: 1rem auto 1.5rem auto;
    }

    .visforms_captcha input {
        max-width: none;
        width: 100%;
    }
}