/*
 * Core forms (EXT:form) in the look of the site's form components (.form__group/.form__label/.form__control,
 * .tov-button), like the former Powermail forms. EXT:form renders Bootstrap class names
 * (form-element, form-label, form-control, btn), which app.css does not know.
 * Scoped to the form content element so the booking forms are not affected.
 */
.frame-type-form_formframework form {
    max-width: 40rem;
    margin: 0 auto;
}

.frame-type-form_formframework fieldset {
    border: 0;
    margin: 0 0 .9375rem;
    padding: 0;
    min-width: 0;
}

.frame-type-form_formframework legend {
    display: block;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0 0 .625rem;
    border-bottom: 4px solid #fdcd0b;
    color: #2c3d51;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
}

.frame-type-form_formframework .form-element {
    width: 100%;
    margin: 0 0 .9375rem;
}

.frame-type-form_formframework .form-label {
    display: block;
    padding: 0 0 .1875rem;
    color: #2c3d51;
    font-size: .8125rem;
    font-weight: 700;
    line-height: 1.5;
}

.frame-type-form_formframework .required {
    color: #2c3d51;
}

.frame-type-form_formframework .form-control,
.frame-type-form_formframework .form-select {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: .8125rem .625rem;
    border: 1px solid #e2e2e2;
    border-radius: 0;
    background-color: #fff;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, .1);
    color: #314050;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .9375rem;
    font-weight: 700;
    line-height: 1.2;
}

.frame-type-form_formframework .form-control::placeholder {
    color: #8a96a3;
    font-weight: 400;
}

.frame-type-form_formframework textarea.form-control {
    min-height: 9rem;
    resize: vertical;
    line-height: 1.5;
}

.frame-type-form_formframework .form-control:hover,
.frame-type-form_formframework .form-select:hover {
    border-color: #2c3d51;
    color: #333;
}

.frame-type-form_formframework .form-control:focus,
.frame-type-form_formframework .form-select:focus {
    border-color: #2c3d51;
    outline: 2px solid #2c3d51;
    color: #333;
}

/* Checkboxes / radio buttons */
.frame-type-form_formframework .form-check {
    margin: 0 0 .375rem;
}

.frame-type-form_formframework .form-check-label {
    font-size: .9375rem;
    font-weight: 400;
    cursor: pointer;
}

.frame-type-form_formframework .form-check-input {
    margin: 0 .5rem 0 0;
    accent-color: #2c3d51;
    vertical-align: middle;
}

/* Validation (server side) */
.frame-type-form_formframework .is-invalid,
.frame-type-form_formframework .has-error .form-control {
    border-color: #e60000;
}

.frame-type-form_formframework .invalid-feedback,
.frame-type-form_formframework .help-block,
.frame-type-form_formframework .error {
    display: block;
    margin-top: .25rem;
    color: #e60000;
    font-size: .8125rem;
    font-weight: 700;
}

/* Submit button = .tov-button */
.frame-type-form_formframework .form-navigation .btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    margin: .75rem 0;
    padding: .75rem 1.625rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background-color: #fdcd0b;
    color: #2c3d51;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
    transition: all .2s ease 0s;
}

.frame-type-form_formframework .form-navigation .btn:hover,
.frame-type-form_formframework .form-navigation .btn:focus,
.frame-type-form_formframework .form-navigation .btn:active {
    background-color: #2c3d51;
    color: #fdcd0b;
}

.frame-type-form_formframework .form-navigation .btn:focus-visible {
    outline: 2px solid #2c3d51;
    outline-offset: 2px;
}

/* "Nach oben" link of the content element */
.frame-type-form_formframework > p:last-child {
    max-width: 40rem;
    margin: 0 auto;
    font-size: .8125rem;
}

@media only screen and (max-width: 40em) {
    .frame-type-form_formframework .form-navigation .btn {
        width: 100%;
    }
}
