/**
 * LAL Monatsprogramm – Formular-Styling
 *
 * Minimales Styling, Theme-kompatibel.
 * Prefix: lal-mp-
 */

/* =====================================================================
 * Formular-Wrap
 * ===================================================================== */

.lal-mp-form-wrap {
    max-width: 100%;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.5;
}

/* =====================================================================
 * 2-Spalten-Grid
 * ===================================================================== */

.lal-mp-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .lal-mp-row {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
 * Felder
 * ===================================================================== */

.lal-mp-field {
    margin-bottom: 5px;
}

.lal-mp-field label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0.25rem;
    color: inherit;
}

.lal-mp-field input[type='text'],
.lal-mp-field input[type='email'],
.lal-mp-field input[type='tel'],
.lal-mp-field select {
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    margin-bottom: 0;
    height: 40px !important;
    background-color: #fff !important;
    border: 1px solid #dddddd !important;
}

.lal-mp-req {
    color: var(--kulturcolor, #9b0000);
}

.lal-mp-hint {
    display: block;
    font-size: 0.8em;
    color: var(--lal-mp-hint-color, #888);
    margin-top: 0;
    line-height: 1.2;
}

/* =====================================================================
 * Radio-Gruppe
 * ===================================================================== */

.lal-mp-field--radio {
    margin-bottom: 1rem;
}

.lal-mp-field--radio fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.lal-mp-field--radio legend {
    display: block;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 0.5rem;
    color: inherit;
}

.lal-mp-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lal-mp-radio-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: normal;
    cursor: pointer;
    font-size: 15px;
}

.lal-mp-radio-label input[type='radio'] {
    margin: 0;
    width: auto !important;
    height: auto !important;
}

/* =====================================================================
 * Checkboxen
 * ===================================================================== */

.lal-mp-field--checkbox {
    margin-bottom: 1rem;
}

.lal-mp-field--checkbox .checkbox-container {
    font-size: 15px;
}

.lal-mp-description {
    margin: 0.25rem 0 0 24px !important;
    font-size: 15px;
    color: var(--lal-mp-desc-color, #555);
}

.lal-mp-description a {
    color: var(--lal-mp-link-color, inherit);
}

.lal-mp-recaptcha-info {
    font-size: 15px;
    color: var(--lal-mp-desc-color, #555);
    margin-bottom: 1rem;
}

.lal-mp-recaptcha-info a {
    color: var(--lal-mp-link-color, inherit);
}

.lal-mp-description--recaptcha {
    font-size: 0.8em;
    color: var(--lal-mp-desc-color, #888);
}

/* =====================================================================
 * Honeypot (unsichtbar)
 * ===================================================================== */

.lal-mp-hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

/* =====================================================================
 * Submit
 * ===================================================================== */

.lal-mp-field--submit {
    text-align: center;
    margin-top: 1.5rem;
}

.lal-mp-submit {
    background-color: var(--kulturcolor) !important;
    border-color: var(--kulturcolor) !important;
    color: #fff;
    font-size: 16px;
}

.lal-mp-submit:hover {
    background-color: #333333 !important;
    border-color: #333333 !important;
}

/* =====================================================================
 * Feld-Fehler
 * ===================================================================== */

.lal-mp-field-error {
    color: var(--lal-mp-error-color, #dc3545);
    font-size: 0.85em;
    margin-top: 0.2rem;
}

.lal-mp-field--has-error input,
.lal-mp-field--has-error select {
    border-color: var(--lal-mp-error-color, #dc3545) !important;
}

/* =====================================================================
 * Meldungen
 * ===================================================================== */

.lal-mp-message {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 1em;
}

.lal-mp-message--success {
    background: var(--lal-mp-success-bg, #d4edda);
    color: var(--lal-mp-success-color, #155724);
    border: 1px solid var(--lal-mp-success-border, #c3e6cb);
}

.lal-mp-message--error {
    background: var(--lal-mp-error-bg, #f8d7da);
    color: var(--lal-mp-error-text, #721c24);
    border: 1px solid var(--lal-mp-error-border, #f5c6cb);
}

/* =====================================================================
 * Loading-State
 * ===================================================================== */

.lal-mp-submit--loading {
    opacity: 0.6;
    pointer-events: none;
}
