#pk_flex_content .flex_layout.form_switcher {
    padding: unset;
    max-width: 100%;
}

#pk_flex_content .flex_layout.form_switcher .flex_container_inner {
    position: relative;
}

#pk_flex_content .flex_layout.form_switcher .form_switcher_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-inline: max(40px, calc((100vw - 1350px) / 2));
    padding-block: 80px 120px;
    position: relative;
    z-index: 1;
}

#pk_flex_content
    .flex_layout.form_switcher
    .flex_container_inner.lightpink_wave::before,
#pk_flex_content
    .flex_layout.form_switcher
    .flex_container_inner.pink_wave::before {
    content: "";
    position: absolute;
    inset: 0;
    height: 70%;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: 0;
}

#pk_flex_content
    .flex_layout.form_switcher
    .flex_container_inner.pink_wave::before {
    background-image: url("/wp-content/uploads/2025/10/form_switcher_pink_shape.svg");
}

#pk_flex_content
    .flex_layout.form_switcher
    .flex_container_inner.lightpink_wave::before {
    background-image: url("/wp-content/uploads/2025/10/form_switcher_lightpink_shape.svg");
}

#pk_flex_content .flex_layout.form_switcher .flex_container_inner::after {
    content: "";
    background-image: url("/wp-content/uploads/2025/10/form_switcher_block_shape.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 40%;
    max-width: 145px;
    aspect-ratio: 145/137;
    position: absolute;
    bottom: 80px;
    right: max(40px, calc((100vw - 1350px) / 2));
    transform: translateY(30%);
    z-index: 1;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .tab_wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .tab_container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--tab-count), 1fr);
    max-width: 800px;
    margin-inline: auto;
    background-color: #ffbfd5;
    border-radius: 48px;
    padding: 8px;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .tab_container.many-tabs {
    max-width: unset;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper.light_shape
    .tab_container {
    background-color: var(--zgem-flex-pink);
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .tab_container
    .indicator {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 100px;
    height: calc(100% - 16px);
    background-color: #2b422d;
    border-radius: 40px;
}

#pk_flex_content .flex_layout.form_switcher .form_switcher_wrapper .tab {
    cursor: pointer;
    position: relative;
    isolation: isolate;
    text-align: center;
    border-radius: 40px;
    color: var(--zgem-flex-black);
    line-height: 1.3;
    font-size: clamp(18px, 1.62vw, 22px);
    font-weight: bold;
    padding: 12px 24px;
    transition: color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pk_flex_content .flex_layout.form_switcher .form_switcher_wrapper .tab.active {
    color: var(--zgem-flex-white);
}

#pk_flex_content .flex_layout.form_switcher .form_switcher_wrapper .swiper {
    width: 100%;
    max-width: 1000px;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .swiper-slide
    .title {
    display: block;
    font-size: clamp(
        32px,
        32px + (42 - 32) * ((100vw - 350px) / (1390 - 350)),
        42px
    );
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .swiper-slide
    .title,
#pk_flex_content
    .flex_layout.form_switcher
    .form_switcher_wrapper
    .swiper-slide
    .text {
    flex: 1;
}

#pk_flex_content .flex_layout.form_switcher .swiper-slide .text p a {
    text-decoration: underline;
}


@media only screen and (max-width: 992px) {
    #pk_flex_content
        .flex_layout.form_switcher
        .form_switcher_wrapper
        .swiper-slide {
        gap: 40px;
        padding: 60px;
    }

    #pk_flex_content
        #pk_flex_content
        .flex_layout.form_switcher
        .flex_container_inner::after {
        max-width: 100px;
        bottom: 40px;
    }

    #pk_flex_content
        .flex_layout.form_switcher
        .form_switcher_wrapper
        .tab_container {
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        gap: 40px;
    }

    #pk_flex_content
        .flex_layout.form_switcher
        .form_switcher_wrapper
        .tab_container
        .tab {
        flex-shrink: 0;
        min-width: 200px;
    }
}

@media only screen and (max-width: 767px) {
    #pk_flex_content .flex_layout.form_switcher .form_switcher_wrapper {
        padding: 60px 20px;
    }

    #pk_flex_content
        .flex_layout.form_switcher
        .form_switcher_wrapper
        .tab_container {
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        gap: 10px;
    }

    #pk_flex_content
        .flex_layout.form_switcher
        .form_switcher_wrapper
        .tab_container
        .tab {
        min-width: fit-content;
    }
}
