/* =========================================
   Forms – MM Stimme Modern
   ========================================= */

/* === Grundstil für alle Formelemente === */
input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: var(--font-base);
    color: var(--ci-primary);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
    box-sizing: border-box;
}

/* === Placeholder === */
input::placeholder,
textarea::placeholder {
    color: var(--ci-gray);
    opacity: 0.7;
}

/* === Fokuszustand === */
input:focus,
textarea:focus,
select:focus {
    border-color: var(--ci-accent);
    box-shadow: 0 0 0 3px rgba(170, 7, 224, 0.2);
}

/* === Textarea === */
textarea {
    min-height: 140px;
    resize: vertical;
}

/* === Select === */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23797979' height='20' width='20' viewBox='0 0 20 20'><path d='M5.516 7.548l4.484 4.484 4.484-4.484L16 8.548l-6 6-6-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* === Checkbox & Radio === */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 8px;
    accent-color: var(--ci-accent);
}

/* === Label === */
label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ci-primary);
}

/* === Fehlermeldungen === */
.form-error {
    color: #d9534f;
    font-size: 14px;
    margin-top: 6px;
}

/* === Erfolgszustand === */
.form-success {
    color: #28a745;
    font-size: 14px;
    margin-top: 6px;
}

/* === Formulargruppen === */
.form-group {
    margin-bottom: 20px;
}

/* === Kontaktformular Buttons === */
form .c_btn {
    margin-top: 10px;
}

/* === Disabled === */
input:disabled,
textarea:disabled,
select:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

/* === Inline-Formulare (optional) === */
.form-inline {
    display: flex;
    gap: 15px;
    align-items: center;
}
.form-inline .form-group {
    margin-bottom: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }
}
