/*
 * CMS Phinit – Formulare des Cores (Kontaktseite /contact, /contact/<schlüssel>, Editor.js-Block „Formular“)
 *
 * Der Core liefert Markup, Prüfung und Grundstil (`assets/css/forms-public.css`). Dieses Stylesheet passt die
 * Formulare an das Phinit-Design an: Navy/Teal/Gold, Space-Grotesk-Überschriften, ruhige Felder mit klarem
 * Fokusring. Alle Regeln beginnen mit `body`, damit sie den Grundstil des Cores (wird je nach Seite vor oder
 * nach dem Theme-CSS ausgegeben) und die Fließtext-Regeln aus `rich-content.css` (`.page-content p`, `h2` …)
 * unabhängig von der Ladereihenfolge überschreiben.
 *
 * Akzentfarbe und Radius aus „Inhalte → Formulare → Einstellungen“ setzt der Core als Inline-Variablen am
 * Wrapper; sie gewinnen weiterhin gegenüber den Theme-Standardwerten.
 */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
body .cms-form {
    --cms-form-accent: #0f766e;
    --cms-form-link: #0f766e;
    --cms-form-button: var(--primary-color, #1e3a5f);
    --cms-form-button-ink: #fff;
    /* Wie im Core 8px: Der Core setzt --cms-form-radius nur bei einem anderen Wert als 8 inline. */
    --cms-form-radius: var(--radius, 8px);
    --cms-form-ink: var(--text-primary, #1e293b);
    --cms-form-muted: var(--text-muted, #64748b);
    --cms-form-border: #8193a8;
    --cms-form-border-soft: var(--border-color, #e2e8f0);
    --cms-form-surface: #ffffff;
    --cms-form-field-bg: #f8fafc;
    --cms-form-panel: var(--bg-secondary, #f1f5f9);
    --cms-form-gold: var(--accent-color, #e8a838);
    --cms-form-error: #b42318;
    --cms-form-success: #146c43;
    /* Fokusring und Auswahl folgen der Akzentfarbe aus den Formular-Einstellungen. */
    --cms-form-ring: color-mix(in srgb, var(--cms-form-accent) 20%, transparent);
    --cms-form-tint: color-mix(in srgb, var(--cms-form-accent) 8%, transparent);
    position: relative;
    margin: 0 0 1.5rem;
    color: var(--cms-form-ink);
    font-family: var(--font-ui, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 1rem;
    line-height: 1.55;
}

body .cms-form > :last-child {
    margin-bottom: 0;
}

/* Als Editor.js-Block mitten im Beitrag/auf einer Seite: eigene, ruhige Fläche. */
body .cms-form--block {
    margin: 2rem 0;
    padding: 26px 28px 28px;
    border: 1px solid var(--cms-form-border-soft);
    border-top: 3px solid var(--cms-form-gold);
    border-radius: calc(var(--cms-form-radius) * 1.5);
    background: var(--cms-form-panel);
}

/* ── Kopf: Überschrift, Einleitung, Fußtext ──────────────────────────────── */
body .cms-form .cms-form__heading {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    font-family: var(--font-brand, 'Space Grotesk', 'Inter', sans-serif);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    line-height: 1.2;
    letter-spacing: var(--ls-display-3, -0.028em);
    color: var(--cms-form-ink);
}

body .cms-form .cms-form__heading::before {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin: 0 0 .75rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cms-form-gold), var(--accent-teal, #0d9488));
}

body .cms-form .cms-form__heading + .cms-form__intro {
    margin-top: -.5rem;
}

body .cms-form .cms-form__intro {
    max-width: 62ch;
    margin: 0 0 1.5rem;
    color: var(--cms-form-muted);
    font-size: .98rem;
    line-height: 1.65;
}

body .cms-form .cms-form__intro p,
body .cms-form .cms-form__footer p,
body .cms-form .cms-form__static--text p {
    margin: 0 0 .5rem;
}

body .cms-form .cms-form__intro > :last-child,
body .cms-form .cms-form__footer > :last-child,
body .cms-form .cms-form__static--text > :last-child {
    margin-bottom: 0;
}

body .cms-form .cms-form__footer {
    margin: 1.5rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--cms-form-border-soft);
    color: var(--cms-form-muted);
    font-size: .85rem;
}

/* ── Raster & Felder ─────────────────────────────────────────────────────── */
body .cms-form .cms-form__grid {
    gap: 18px 20px;
}

body .cms-form .cms-form__label {
    display: block;
    margin: 0 0 .4rem;
    padding: 0;
    color: var(--cms-form-ink);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .005em;
}

body .cms-form .cms-form__req {
    margin-left: .1rem;
    color: var(--cms-form-error);
}

body .cms-form .cms-form__input {
    min-height: 2.85rem;
    padding: .65rem .85rem;
    border: 1px solid var(--cms-form-border);
    border-radius: var(--cms-form-radius);
    background: var(--cms-form-field-bg);
    color: var(--cms-form-ink);
    font: inherit;
    font-size: .97rem;
    line-height: 1.45;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

body .cms-form .cms-form__input::placeholder {
    color: #7b8aa0;
    opacity: 1;
}

body .cms-form .cms-form__input:hover {
    border-color: var(--primary-light, #2d547a);
}

body .cms-form .cms-form__input:focus,
body .cms-form .cms-form__input:focus-visible {
    outline: 2px solid var(--cms-form-accent);
    outline-offset: 1px;
    border-color: var(--cms-form-accent);
    background: var(--cms-form-surface);
    box-shadow: 0 0 0 5px var(--cms-form-ring);
}

body .cms-form textarea.cms-form__input {
    min-height: 9.5rem;
    resize: vertical;
}

body .cms-form select.cms-form__input {
    cursor: pointer;
}

body .cms-form input[type="file"].cms-form__input {
    min-height: 3.4rem;
    padding: .6rem;
    border-style: dashed;
    background: var(--cms-form-surface);
    cursor: pointer;
}

body .cms-form input[type="file"].cms-form__input::file-selector-button {
    margin-right: .85rem;
    padding: .45rem .95rem;
    border: 0;
    border-radius: max(0px, calc(var(--cms-form-radius) - 3px));
    background: var(--cms-form-button);
    color: var(--cms-form-button-ink);
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
}

body .cms-form .cms-form__input:disabled {
    opacity: .65;
    cursor: not-allowed;
}

body .cms-form .cms-form__help {
    margin: .4rem 0 0;
    color: var(--cms-form-muted);
    font-size: .8rem;
    line-height: 1.45;
}

body .cms-form .cms-form__error {
    display: flex;
    gap: .35rem;
    align-items: flex-start;
    margin: .4rem 0 0;
    color: var(--cms-form-error);
    font-size: .82rem;
    font-weight: 600;
    line-height: 1.4;
}

body .cms-form .cms-form__error::before {
    content: "!";
    content: "!" / "";
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: .05rem;
    border-radius: 50%;
    background: var(--cms-form-error);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
}

body .cms-form .cms-form__error[hidden] {
    display: none;
}

body .cms-form .cms-form__field.has-error .cms-form__input {
    border-color: var(--cms-form-error);
    background: #fffafa;
}

body .cms-form .cms-form__field.has-error .cms-form__input:focus {
    outline-color: var(--cms-form-error);
    box-shadow: 0 0 0 5px rgba(180, 35, 24, .14);
}

/* Zwischenüberschriften und Hinweistexte im Formular */
body .cms-form .cms-form__static--heading {
    margin-top: .5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cms-form-border-soft);
}

body .cms-form .cms-form__static--heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

body .cms-form .cms-form__section-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--font-brand, 'Space Grotesk', 'Inter', sans-serif);
    font-size: 1.08rem;
    line-height: 1.3;
    color: var(--cms-form-ink);
}

body .cms-form .cms-form__static--text {
    color: var(--cms-form-muted);
    font-size: .9rem;
}

/* ── Auswahlfelder (Radio, Checkbox-Gruppe, Einzel-Checkbox, Einwilligung) ── */
body .cms-form .cms-form__group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body .cms-form .cms-form__group > legend {
    width: 100%;
    float: left;
}

body .cms-form .cms-form__choice {
    flex: 1 1 200px;
    gap: .6rem;
    align-items: center;
    margin: 0;
    padding: .6rem .8rem;
    border: 1px solid var(--cms-form-border-soft);
    border-radius: var(--cms-form-radius);
    background: var(--cms-form-surface);
    font-size: .93rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

body .cms-form .cms-form__choice:hover {
    border-color: var(--cms-form-border);
}

body .cms-form .cms-form__choice:has(input:checked) {
    border-color: var(--cms-form-accent);
    background: var(--cms-form-tint);
}

body .cms-form .cms-form__choice:has(input:focus-visible) {
    outline: 2px solid var(--cms-form-accent);
    outline-offset: 2px;
}

body .cms-form .cms-form__choice input,
body .cms-form .cms-form__check input {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--cms-form-accent);
    cursor: pointer;
}

body .cms-form .cms-form__check {
    gap: .65rem;
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

body .cms-form .cms-form__check input {
    margin-top: .17rem;
}

body .cms-form .cms-form__field--consent .cms-form__check {
    padding: .8rem .95rem;
    border: 1px solid var(--cms-form-border-soft);
    border-radius: var(--cms-form-radius);
    background: var(--cms-form-panel);
}

body .cms-form--block .cms-form__field--consent .cms-form__check {
    background: var(--cms-form-surface);
}

body .cms-form .cms-form__check-label {
    color: var(--cms-form-ink);
    font-weight: 400;
    cursor: pointer;
}

body .cms-form .cms-form__check-label a,
body .cms-form .cms-form__static a,
body .cms-form .cms-form__intro a,
body .cms-form .cms-form__footer a {
    color: var(--cms-form-link);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ── Sicherheitsfrage (Antispam-Stufe „hoch“) ────────────────────────────────
 * Der Core setzt sie hinter das Feldraster (.cms-form__grid), der Rasterabstand greift dort nicht: ohne eigene
 * Regel klebte sie an der Einwilligung und am Pflichtfeld-Hinweis/Absenden. Eigener, abgesetzter Bereich mit
 * schmalem Antwortfeld.
 */
body .cms-form .cms-form__field--captcha {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    align-items: center;
    margin: 1.75rem 0 0;
    padding: 1rem 1.15rem;
    border: 1px solid var(--cms-form-border-soft);
    border-left: 3px solid var(--cms-form-accent);
    border-radius: var(--cms-form-radius);
    background: var(--cms-form-panel);
}

body .cms-form .cms-form__field--captcha .cms-form__label {
    flex: 0 1 auto;
    margin: 0;
}

body .cms-form .cms-form__field--captcha .cms-form__input {
    flex: 0 0 8rem;
    width: 8rem;
    background: var(--cms-form-surface);
    text-align: center;
}

body .cms-form .cms-form__field--captcha .cms-form__error {
    flex-basis: 100%;
    margin: 0;
}

body .cms-form .cms-form__field--captcha.has-error {
    border-left-color: var(--cms-form-error);
}

body .cms-form--block .cms-form__field--captcha {
    background: var(--cms-form-surface);
}

body .cms-form--compact .cms-form__field--captcha {
    margin-top: 1.25rem;
    padding: .75rem .9rem;
}

/* ── Abschluss: Pflichtfeld-Hinweis & Senden ─────────────────────────────── */
body .cms-form .cms-form__required-note {
    margin: 1.5rem 0 0;
    color: var(--cms-form-muted);
    font-size: .78rem;
}

body .cms-form .cms-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    margin: 1rem 0 0;
}

body .cms-form .cms-form__submit {
    gap: .55rem;
    min-height: 3rem;
    padding: .7rem 1.75rem;
    border: 0;
    border-radius: var(--cms-form-radius);
    /* Farbe aus den Formular-Einstellungen (Akzentfarbe), darüber ein leichter Glanz. */
    background-color: var(--cms-form-button);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .14) 100%);
    color: var(--cms-form-button-ink);
    font-family: var(--font-ui, 'Inter', sans-serif);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    box-shadow: 0 6px 16px rgba(15, 34, 64, .18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

body .cms-form .cms-form__submit::after {
    content: "→";
    content: "→" / "";
    font-weight: 700;
    transition: transform .15s ease;
}

body .cms-form .cms-form__submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(15, 34, 64, .22);
}

body .cms-form .cms-form__submit:hover::after {
    transform: translateX(3px);
}

body .cms-form .cms-form__submit:focus-visible {
    outline: 3px solid var(--cms-form-gold);
    outline-offset: 3px;
}

body .cms-form .cms-form__submit[disabled],
body .cms-form .cms-form__submit[aria-busy="true"] {
    opacity: .7;
    transform: none;
    cursor: progress;
}

/* ── Meldungen (Erfolg, Fehlerübersicht, Hinweis) ────────────────────────── */
body .cms-form .cms-form__notice {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem 1rem 3.1rem;
    border: 1px solid currentColor;
    border-left-width: 4px;
    border-radius: var(--cms-form-radius);
    font-size: .93rem;
    line-height: 1.55;
}

body .cms-form .cms-form__notice::before {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    place-items: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--cms-form-notice, var(--cms-form-muted));
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
}

body .cms-form .cms-form__notice--success::before { content: "✓"; content: "✓" / ""; }
body .cms-form .cms-form__notice--error::before { content: "!"; content: "!" / ""; }
body .cms-form .cms-form__notice--info::before { content: "i"; content: "i" / ""; }

body .cms-form .cms-form__notice p {
    margin: 0;
}

body .cms-form .cms-form__notice p + p,
body .cms-form .cms-form__notice ul {
    margin: .5rem 0 0;
}

body .cms-form .cms-form__notice ul {
    margin-left: 0;
    padding-left: 1.1rem;
}

body .cms-form .cms-form__notice li {
    margin: 0 0 .2rem;
}

body .cms-form .cms-form__notice a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body .cms-form .cms-form__notice:focus {
    outline: 2px solid var(--cms-form-accent);
    outline-offset: 2px;
}

body .cms-form .cms-form__notice--success {
    --cms-form-notice: var(--cms-form-success);
    color: var(--cms-form-success);
    background: #edf7f0;
}

body .cms-form .cms-form__notice--error {
    --cms-form-notice: var(--cms-form-error);
    color: var(--cms-form-error);
    background: #fdf0ef;
}

body .cms-form .cms-form__notice--info {
    --cms-form-notice: var(--cms-form-muted);
    color: var(--cms-form-muted);
    background: var(--cms-form-panel);
}

body .cms-form .cms-form__notice--success p:first-child {
    font-weight: 600;
}

body .cms-form .cms-form__again {
    font-size: .85rem;
}

/* ── Layout „Mit Kontaktdaten“ (split) ───────────────────────────────────── */
body .cms-form .cms-form__split {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 32px;
}

body .cms-form .cms-form__aside {
    position: sticky;
    top: calc(var(--header-h, 56px) + var(--quicklinks-h, 38px) + 20px);
    overflow: hidden;
    padding: 24px 24px 22px;
    border: 0;
    border-radius: calc(var(--cms-form-radius) * 1.5);
    background: linear-gradient(160deg, var(--primary-dark, #0f2240) 0%, var(--primary-color, #1e3a5f) 100%);
    color: #e2e8f0;
    font-size: .92rem;
    box-shadow: var(--shadow, 0 4px 14px rgba(0, 0, 0, .09));
}

body .cms-form .cms-form__aside::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--cms-form-gold), var(--accent-teal-light, #14b8a6));
}

body .cms-form .cms-form__aside-title {
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    color: #fff;
    font-family: var(--font-brand, 'Space Grotesk', 'Inter', sans-serif);
    font-size: 1.1rem;
    line-height: 1.3;
}

body .cms-form .cms-form__aside dl {
    margin: 0;
}

body .cms-form .cms-form__aside dt {
    margin: .9rem 0 .15rem;
    color: #b8c4d4;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .cms-form .cms-form__aside dt:first-child {
    margin-top: 0;
}

body .cms-form .cms-form__aside dd {
    margin: 0;
    color: #f1f5f9;
    line-height: 1.55;
}

body .cms-form .cms-form__aside p {
    margin: 1.1rem 0 0;
}

body .cms-form .cms-form__aside a {
    color: #93c5fd;
    font-weight: 600;
    text-decoration: none;
}

body .cms-form .cms-form__aside a:hover {
    color: #fff;
    text-decoration: underline;
}

body .cms-form .cms-form__aside a:focus-visible {
    outline: 2px solid var(--cms-form-gold);
    outline-offset: 2px;
}

/* ── Layouts (Inhalte → Formulare → Formular → Layout) ───────────────────────
 * Standard: Formular in lesbarer Spaltenbreite.
 * Kompakt:  schmaler, kleinere Felder und Abstände.
 * Breit:    volle Breite des Inhaltsbereichs.
 * Geteilt:  Formular und Kontaktangaben nebeneinander (ohne Kontaktangaben wie „Breit“).
 */
body .cms-form--standard .cms-form__form {
    max-width: 46rem;
}

body .cms-form--compact .cms-form__form {
    max-width: 36rem;
}

body .cms-form--wide .cms-form__form,
body .cms-form--split .cms-form__form {
    max-width: none;
}

body .cms-form--compact .cms-form__heading {
    font-size: clamp(1.15rem, 2vw, 1.35rem);
}

body .cms-form--compact .cms-form__intro {
    margin-bottom: 1.1rem;
    font-size: .92rem;
}

body .cms-form--compact .cms-form__grid {
    gap: 12px 16px;
}

body .cms-form--compact .cms-form__label {
    margin-bottom: .3rem;
    font-size: .8rem;
}

body .cms-form--compact .cms-form__input {
    min-height: 2.35rem;
    padding: .45rem .7rem;
    font-size: .92rem;
}

body .cms-form--compact textarea.cms-form__input {
    min-height: 6.5rem;
}

body .cms-form--compact .cms-form__choice {
    flex-basis: 150px;
    padding: .45rem .65rem;
    font-size: .88rem;
}

body .cms-form--compact .cms-form__field--consent .cms-form__check {
    padding: .6rem .75rem;
    font-size: .85rem;
}

body .cms-form--compact .cms-form__required-note {
    margin-top: .9rem;
}

body .cms-form--compact .cms-form__submit {
    min-height: 2.6rem;
    padding: .55rem 1.35rem;
    font-size: .9rem;
}

/* ── Formularseiten (/contact, /contact/<schlüssel>, Seiten mit Formular) ───
 * Seitenbreite folgt dem Formular-Layout: Standard/Kompakt schmal, Breit/Geteilt volle Containerbreite.
 */
.page-shell--form:has(.cms-form--standard),
.page-shell--form:has(.cms-form--compact) {
    max-width: 960px;
}

.page-shell--form:has(.cms-form--compact) {
    max-width: 760px;
}

.page-shell--form .page-content {
    padding: 32px 36px 36px;
}

/* ── Dark Mode ───────────────────────────────────────────────────────────── */
body.dark-mode .cms-form {
    --cms-form-accent: #5eead4;
    --cms-form-link: #93c5fd;
    --cms-form-ink: var(--text-primary, #f1f5f9);
    --cms-form-muted: var(--text-muted, #cbd5e1);
    --cms-form-border: #5b6f88;
    --cms-form-border-soft: var(--border-color, #2a3a4d);
    --cms-form-surface: #111827;
    --cms-form-field-bg: #111827;
    --cms-form-panel: #162030;
    --cms-form-error: #fca5a5;
    --cms-form-success: #86efac;
    /* Navy verschwindet auf dunklem Grund: Gold wie `.btn-accent`, solange keine Akzentfarbe eingestellt ist. */
    --cms-form-button: var(--cms-form-gold);
    --cms-form-button-ink: #1a1a1a;
}

/* Akzentfarbe eingestellt (Core setzt --cms-form-button inline): heller Text wie im Core. */
body.dark-mode .cms-form[style*="--cms-form-button"] {
    --cms-form-button-ink: #fff;
}

body.dark-mode .cms-form .cms-form__input {
    box-shadow: none;
}

body.dark-mode .cms-form .cms-form__input:hover {
    border-color: #7b8fa8;
}

body.dark-mode .cms-form .cms-form__input:focus,
body.dark-mode .cms-form .cms-form__input:focus-visible {
    box-shadow: 0 0 0 5px var(--cms-form-ring);
}

body.dark-mode .cms-form .cms-form__input::placeholder {
    color: #8a9bb2;
}

body.dark-mode .cms-form .cms-form__field.has-error .cms-form__input {
    background: rgba(180, 35, 24, .12);
}

body.dark-mode .cms-form .cms-form__error::before {
    color: #1a2332;
}

body.dark-mode .cms-form .cms-form__submit {
    background-image: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}

body.dark-mode .cms-form .cms-form__submit:focus-visible {
    outline-color: #f8fafc;
}

body.dark-mode .cms-form .cms-form__notice::before {
    color: #1a2332;
}

body.dark-mode .cms-form .cms-form__notice a {
    color: inherit;
}

body.dark-mode .cms-form .cms-form__notice--success {
    background: rgba(20, 108, 67, .18);
}

body.dark-mode .cms-form .cms-form__notice--error {
    background: rgba(180, 35, 24, .18);
}

body.dark-mode .cms-form .cms-form__aside {
    background: linear-gradient(160deg, #0a0f1a 0%, #162030 100%);
    box-shadow: inset 0 0 0 1px var(--border-color, #2a3a4d);
}

/* ── Mobil ───────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
    body .cms-form .cms-form__split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body .cms-form .cms-form__aside {
        position: static;
    }
}

@media (max-width: 640px) {
    body .cms-form--block {
        padding: 20px 18px 22px;
    }

    .page-shell--form .page-content {
        padding: 22px 18px 24px;
    }

    body .cms-form .cms-form__choice {
        flex-basis: 100%;
    }

    body .cms-form .cms-form__submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .cms-form .cms-form__input,
    body .cms-form .cms-form__choice,
    body .cms-form .cms-form__submit,
    body .cms-form .cms-form__submit::after {
        transition: none;
    }

    body .cms-form .cms-form__submit:hover,
    body .cms-form .cms-form__submit:hover::after {
        transform: none;
    }
}
