/*
 * Form framework element inside a landingpage section (e.g. Split column).
 * The site's form template is built for full width (own headline, intro and a side image);
 * inside a section the neighbouring column carries the message, so the form becomes a compact card.
 * Only affects forms within .pk-section – the regular contact form is unchanged.
 */
.pk-section .form {
    padding: 0;
}

.pk-section .form .form_container {
    display: block;
    max-width: none;
}

.pk-section .form .form_container .form_content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    box-shadow: 0 .75rem 2rem rgba(32, 33, 38, .08);
    color: #202126;
}

/* Hard-coded intro and image of the full-width template */
.pk-section .form .form_image,
.pk-section .form .form_content > :is(h2:where(:not(.pk-heading)),:where(.pk-h2)),
.pk-section .form .form_content > .form_text {
    display: none;
}

/* Step indicator, compact */
.pk-section .form .form_container .form_content .form_status {
    margin: 0 0 1.75rem;
}

.pk-section .form .form_status .round {
    flex-basis: 2.25rem;
}

.pk-section .form .form_status .line {
    flex-grow: 1.5;
}

.pk-section .form .round {
    height: 2.25rem;
    line-height: 2.25rem;
    font-size: 1.35rem;
}

.pk-section .form .line {
    height: .15rem;
}

.pk-section .form .form_container .form_content .formular {
    padding-top: 0;
}

/* Page title of the multi-step form ("Persönliche Daten") */
.pk-section .form .form_container .form_content .formular :is(h2:where(:not(.pk-heading)),:where(.pk-h2)) {
    font-family: Montserrat-ExtraBold, sans-serif;
    font-size: 1.25rem;
    letter-spacing: .02em;
    color: #202126;
    margin: 0 0 1.25rem;
}

.pk-section .form .form-element {
    margin: 0 0 1.25rem;
}

.pk-section .form .form_container .form_content .formular label {
    display: block;
    margin: 0 0 .4rem;
    font-family: Montserrat-SemiBold, sans-serif;
    font-size: .9rem;
    color: #202126;
}

.pk-section .form .form_container .form_content .formular input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.pk-section .form .form_container .form_content .formular textarea,
.pk-section .form .form_container .form_content .formular select {
    display: block;
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: var(--pk-radius);
    background: #fff;
    font-family: Montserrat-Regular, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #202126;
    transition: border-color .15s, box-shadow .15s;
}

.pk-section .form .form_container .form_content .formular textarea {
    min-height: 8rem;
    height: auto;
}

.pk-section .form .form_container .form_content .formular input:focus,
.pk-section .form .form_container .form_content .formular textarea:focus,
.pk-section .form .form_container .form_content .formular select:focus {
    outline: 0;
    border-color: var(--pk-accent);
    box-shadow: 0 0 0 .2rem rgba(253, 51, 103, .25);
}

.pk-section .form .form_container .form_content .formular ::placeholder {
    color: #9aa0a6;
}

/* Validation messages of the form framework */
.pk-section .form .help-block,
.pk-section .form .invalid-feedback,
.pk-section .form .error {
    display: block;
    margin-top: .35rem;
    font-size: .85rem;
    color: #e21c34;
}

.pk-section .form .has-error input,
.pk-section .form .is-invalid {
    border-color: #e21c34 !important;
}

/* Navigation: previous / next / submit */
.pk-section .form .form-navigation .btn-toolbar,
.pk-section .form .form-navigation .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.pk-section .form .form-navigation .btn.btn-primary,
.pk-section .form .form-navigation .btn.btn-cancel,
.pk-section .form .form-navigation .btn {
    margin: .5rem 0 0;
    padding: .9rem 1.75rem;
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-radius: var(--pk-radius);
}

.pk-section .form .form-navigation .btn.btn-cancel,
.pk-section .form .form-navigation .previous .btn {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #202126;
}
