/* Scoped styles for the public inquiry form. Theme layout rules stay untouched. */
.liverlebnis-anfrage-form,
.contact-form[data-lps-enhanced="1"] {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

/* The enhanced form occupies the full contact content area, without changing
 * the site's outer shell or any other page section. */
.contact-grid > .contact-form[data-lps-enhanced="1"] {
    grid-column: 1 / -1;
}

.liverlebnis-anfrage-form *,
.contact-form[data-lps-enhanced="1"] * {
    box-sizing: border-box;
}

.liverlebnis-anfrage-form fieldset,
.contact-form[data-lps-enhanced="1"] fieldset {
    border: 0;
    border-top: 1px solid #d1ccc4;
    margin: 28px 0 0;
    min-width: 0;
    padding: 22px 0 0;
}

.liverlebnis-anfrage-form legend,
.contact-form[data-lps-enhanced="1"] legend {
    color: #858078;
    font: 600 10px/1.3 var(--font-geist-mono, monospace);
    letter-spacing: .11em;
    padding: 0 12px 0 0;
    text-transform: uppercase;
}

.liverlebnis-anfrage-form input,
.liverlebnis-anfrage-form select,
.liverlebnis-anfrage-form textarea,
.contact-form[data-lps-enhanced="1"] input,
.contact-form[data-lps-enhanced="1"] select,
.contact-form[data-lps-enhanced="1"] textarea {
    min-width: 0;
}

.liverlebnis-anfrage-form select[multiple],
.contact-form[data-lps-enhanced="1"] select[multiple] {
    min-height: 190px;
    padding: 10px 12px;
}

.lps-requested-help {
    display: block;
    color: #858078;
    font-size: 10px;
    line-height: 1.5;
    margin-top: -10px;
}

.liverlebnis-anfrage-form fieldset > label,
.contact-form[data-lps-enhanced="1"] fieldset > label {
    min-width: 0;
}

.contact-form[data-lps-enhanced="1"] fieldset > .form-row {
    grid-column: 1 / -1;
}

.liverlebnis-anfrage-form .liverlebnis-anfrage-honeypot,
.contact-form[data-lps-enhanced="1"] .liverlebnis-anfrage-honeypot {
    margin: 0;
}

@media (max-width: 620px) {
    .contact-grid > .contact-form[data-lps-enhanced="1"] {
        grid-column: auto;
    }
}
