.custom-form__section {
    background: #ebe8e1;
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    margin-top: 30px;
}
.custom-form__section--dark {
    background: #2a2a2a;
}
.custom-form__section--dark label,
.custom-form__section--dark .custom-form__title,
.custom-form__section--dark .custom-form__section-supline,
.custom-form__section--dark .custom-form__section-headline,
.custom-form__section--dark .custom-form__section-paragraph {
    color: #fff;
}
.custom-form__section-supline {
    font-size: 18px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    color: #000;
}
.custom-form__section-headline {
    font-size: 50px;
    font-family: "Montserrat", sans-serif;
    font-weight: 800;
    color: #000;
}
.custom-form__section-paragraph {
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #000;
    margin-bottom: 100px;
}
.custom-form__row {
    width: 100%;
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    /* align-items: center; */
}
.custom-form__row--narrow {
    max-width: 845px;
}
.custom-form__row--align-center {
    align-items: center;
}
.custom-form__row--narrow .custom-form__col {
    padding-inline: 15px;
    flex: 1;
}
.custom-form__row--narrow .custom-form__col:last-child {
    flex: 0 0 auto;
}
.custom-form__row--has-bg-color {
    background: #f8ff96;
    padding: 50px 60px;
    border-radius: 28px;
}
.custom-form__col {
    padding-inline: 50px;
    text-align: left;
    flex-basis: 50%;
    max-width: 50%;
}
.custom-form__col--centered {
    max-width: 80%;
    flex-basis: 80%;
    justify-self: center;
    text-align: center;
    margin-inline: auto;
}
.custom-form__col--fullwidth {
    max-width: unset;
    flex-basis: 100%;
}
.custom-form__label {
    display: inline-block;
    text-align: left;
    color: #2a2a2a;
}
.custom-form__main-label {
    font-family: "Playfair Display", serif;
    font-size: 32px;
    font-weight: 800;
    font-style: italic;
}
.custom-form__additional-info {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 500;
}
.custom-form__title {
    font-size: 20px;
    font-weight: 500;
    font-family: "Montserrat", sans-serif;
}
.custom-form__input {
    height: 50px;
    width: 100%;
    border-radius: 9px;
    border: 1px #000 solid;
    outline: none;
    font-size: 17px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    box-shadow: inset 4px 4px 4px rgba(0, 0, 0, 0.2);
    padding-inline: 15px !important;
}
.custom-form__checkbox {
    width: 21px;
    height: 21px;
}
.custom-form label {
    margin-top: 20px;
    display: block;
}
.custom-form__special-input {
    height: 50px;
    border: none !important;
    outline: none !important;
    border-radius: 7px;
    box-shadow: inset 3px 3px 4px rgba(0, 0, 0, 0.2);
    padding-inline: 15px !important;
    max-width: 278px;
    width: 100%;
    font-size: 22px;
    font-family: "Montserrat", sans-serif;
}
.custom-form__symbol {
    font-size: 150px;
    font-family: "Playfair Display", serif;
    font-weight: 800;
    color: #2a2a2a;
    font-style: italic;
    display: block;
}
.custom-form__button {
    padding: 9px 30px;
    background: #F8FF96;
    color: #2A2A2A;
    border-radius: 10px;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    font-style: italic;
    font-weight: 800;
    outline: none;
    appearance: none;
    border: none;
    cursor: pointer;
    transition: .2s ease-in-out;
    margin-top: 40px;
}
.custom-form__button:not(:disabled):hover {
    box-shadow: 6px 6px 4px 0 rgba(0,0,0, .25);
}
/* ===============================
   Basis-Setup
   =============================== */
.custom-form__special-radio-button {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 80px;

    --rotation-1: -4deg;
    --rotation-2: 2deg;
    --rotation-3: -1deg;
}

/* ===============================
   Einzelne Karten
   =============================== */
.custom-form__special-radio-button .wpcf7-list-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
}

/* Standard: alle Karten kleiner */
.custom-form__special-radio-button .wpcf7-list-item {
    transform: scale(0.8);
    margin-left: 0;
}

/* Rotation Desktop */
.custom-form__special-radio-button .wpcf7-list-item:first-child {
    transform: rotate(var(--rotation-1)) scale(0.8);
}
.custom-form__special-radio-button .wpcf7-list-item:nth-child(2) {
    transform: rotate(var(--rotation-2)) scale(0.8);
}
.custom-form__special-radio-button .wpcf7-list-item:last-child {
    transform: rotate(var(--rotation-3)) scale(0.8);
}

.custom-form__special-radio-button .wpcf7-list-item:hover {
    transform: scale(0.85);
    z-index: 2;
}

/* Aktive Karte */
.custom-form__special-radio-button .wpcf7-list-item:has(input:checked) {
    transform: scale(1);
}

.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):first-child {
    transform: rotate(0) scale(1);
}
.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):nth-child(2) {
    transform: rotate(0) scale(1);
}
.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):last-child {
    transform: rotate(0) scale(1);
}

/* ===============================
   Gelber Kreis (Selection Glow)
   =============================== */
.custom-form__special-radio-button .wpcf7-list-item::before {
    content: "";
    position: absolute;
    top: calc(50% - 50px);
    left: 50%;
    width: 280px;
    height: 280px;
    background-color: #F8FF96;
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.35s ease;
}

.custom-form__special-radio-button .wpcf7-list-item:has(input:checked)::before {
    transform: translate(-50%, -50%) scale(1);
}

/* ===============================
   Label als Karten-Container
   =============================== */
.custom-form__special-radio-button .wpcf7-list-item label {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 202px;
    border-radius: 8px;
    cursor: pointer;
}

/* Bildfläche */
.custom-form__special-radio-button .wpcf7-list-item label::before {
    content: "";
    display: block;
    width: 202px;
    height: 289px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* Bilder pro Karte */
.custom-form__special-radio-button .wpcf7-list-item:first-child label::before {
    background-image: url('https://placehold.co/259x365/333/FFF');
}
.custom-form__special-radio-button .wpcf7-list-item:nth-child(2) label::before {
    background-image: url('https://placehold.co/259x365/888/FFF');
}
.custom-form__special-radio-button .wpcf7-list-item:last-child label::before {
    background-image: url('https://placehold.co/259x365/444/FFF');
}

/* ===============================
   Radio Button Styling
   =============================== */
.custom-form__special-radio-button input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 26px;
    height: 26px;
    border: 1px solid #000;
    border-radius: 50%;
    background-color: #fff;
    display: grid;
    place-content: center;
    cursor: pointer;
    margin-top: 50px;
    position: relative;
    background-color .2s ease,
    border-color .2s ease,
    transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Innerer Punkt */
.custom-form__special-radio-button input[type="radio"]::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: #F8FF96;
    border: 1px #000 solid;
    left: 2px;
    position: absolute;
    top: 2px;
}

/* Checked State */
.custom-form__special-radio-button input[type="radio"]:checked::before {
    transform: scale(1);
}

.custom-form__special-radio-button input[type="radio"]:active {
    transform: scale(0.92);
}

.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):first-child,
.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):nth-child(2),
.custom-form__special-radio-button .wpcf7-list-item:has(input:checked):nth-child(3) {
    transform: scale(1) rotate(0deg);
}

/* ===============================
   Label Text Styling
   =============================== */
.custom-form__special-radio-button .wpcf7-list-item-label {
    display: block;
    margin-top: 6px;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    color: #000;
    text-align: center;
}

/* ===============================
   Allgemeines Radio Button Styling
   =============================== */
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 26px;
    height: 26px;
    border: 1px solid #000;
    border-radius: 50%;
    background-color: #fff;

    display: grid;
    place-content: center;
    cursor: pointer;
    margin-top: 50px;
    position: relative;

    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Innerer Punkt */
input[type="radio"]::before {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: #F8FF96;
    border: 1px #000 solid;
    left: 2px;
    position: absolute;
    top: 2px;
}

/* Checked State */
input[type="radio"]:checked::before {
    transform: scale(1);
}

input[type="radio"]:active {
    transform: scale(0.92);
}

/* ===============================
   Inline Radio Button Styling
   =============================== */
.custom-form__inline-radio-button label {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

.custom-form__inline-radio-button input[type="radio"] {
    margin-top: 0;
    flex-shrink: 0;
}

.custom-form__inline-radio-button .wpcf7-list-item {
    margin: 0
}

.custom-form__inline-radio-button .wpcf7-list-item-label {
    text-align: left;
}

/* =========================================
   CF7 Fehlermeldungen - schönes Styling
   ========================================= */
/* Fehlermeldung zentriert unter den Karten */
.custom-form__special-radio-button + .wpcf7-not-valid-tip,
.custom-form__special-radio-button ~ .wpcf7-not-valid-tip,
.custom-form__special-radio-button .wpcf7-not-valid-tip {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: -30px auto 30px auto;
    padding: 12px 20px;
    background: #ffe5e5;
    color: #a10000;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0,0,0,0.05);
    animation: cf7ErrorFadeIn 0.3s ease-out;
}


/* Kleine Einblend-Animation */
@keyframes cf7ErrorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-form__special-radio-button:has(+ .wpcf7-not-valid-tip) .wpcf7-list-item label::before {
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.3);
    border-radius: 12px;
}

/* =========================================
   CF7 Success Message – Custom UI
   ========================================= */
.wpcf7 form .wpcf7-response-output {
    border: none !important;
}
.wpcf7 form.sent .wpcf7-response-output {
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
    padding: 22px 26px;
    background: #F8FF96;
    color: #2A2A2A;
    border: none;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 12px 35px rgba(42,42,42,0.12);
    position: absolute;
    left: 50%;
    bottom: 390px;
    transform: translate(-50%);
    animation: cf7SuccessFade 0.4s ease-out;
}
/* Kleine Success Animation */
@keyframes cf7SuccessFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   Mobile Anpassungen
   =============================== */
@media (max-width: 768px) {

    .custom-form__section {
        padding: 40px 10px;
    }

    .custom-form__row--has-bg-color {
        padding: 15px 20px;
    }

    .custom-form__col {
        padding-inline: 10px;
        flex-basis: 100%;
        max-width: 100%;
    }

    .custom-form__row--narrow .custom-form__col {
        padding-inline: 10px;
        flex-basis: 100%;
        max-width: 100%;
    }

    .custom-form__row--narrow .custom-form__col:last-child {
        padding-inline: 10px;
        flex-basis: 100%;
        max-width: 100%;
    }

    .custom-form__section-headline {
        font-size: 30px;
    }

    .custom-form__col + .custom-form__col {
        margin-top: 30px;
    }

    .custom-form__symbol {
        display: none;
    }

    .custom-form__special-input {
        max-width: unset;
        width: 100%;
    }

    .custom-form__special-radio-button {
        flex-direction: column;
        align-items: center;
    }

    .custom-form__special-radio-button input[type="radio"] {
        margin-top: 20px;
    }

    .custom-form__special-radio-button .wpcf7-list-item {
        width: auto;
        transform: scale(1) !important;
        margin-bottom: 0;
        margin-left: 0;
    }

    .custom-form__button {
        font-size: 22px;
    }

    .custom-form__special-radio-button .wpcf7-list-item::before {
        width: 260px;
        height: 260px;
    }

    .custom-form__special-radio-button .wpcf7-list-item label::before {
        width: 100%;
        max-width: 240px;
        height: auto;
        aspect-ratio: 259 / 365;
    }

    .wpcf7 form.sent .wpcf7-response-output {
        width: 80%;
    }
}