.districts-section {
    padding-left: 24px;
    padding-right: 24px;
}


.contact {
    .contact__content {
        width: 100%;
        flex-direction: column;
        margin-top: -40px;
        z-index: 2;

    
    }
}

:where(.footer .is-layout-flex) {
    gap: 0 !important;
}

.footer__form {
    background-color: var(--wp--preset--color--primary);
    padding: clamp(24px, 2.5vw, 48px) clamp(24px, 4.17vw, 80px);

    label {
        color: var(--wp--preset--color--white);
        font-weight: 400;
    }

    input[type="color"], 
    input[type="date"], 
    input[type="datetime-local"], 
    input[type="email"], 
    input[type="file"], 
    input[type="hidden"], 
    input[type="image"], 
    input[type="month"], 
    input[type="number"], 
    input[type="password"], 
    input[type="radio"], 
    input[type="range"], 
    input[type="reset"], 
    input[type="search"], 
    input[type="tel"], 
    input[type="text"], 
    input[type="time"], 
    input[type="url"], 
    input[type="week"], 
    select, 
    textarea {
        width: calc(100% - 32px);
        padding: 12px;
        padding-left: 0;
        background-color: transparent;
        border: none;
        border-bottom: 1px solid white;
        color: white;
        margin-top: 4px;
        margin-bottom: 24px;
        font-weight: 400;
        font-size: clamp(16px, 0.9375vw, 18px);
        border-radius: 0;
        font-family: var(--wp--preset--font-family--primary);
    }

    textarea {
        max-width: 100%;
        height: 100px;
    }
    
    input::placeholder, 
    textarea::placeholder {
        color: #DBD5BD;
    }

    select {
        width: calc(100% - 12px);
        cursor: pointer;
        margin-top: 12px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;

        option {
            color: black;
        }
    }

    .wpcf7-acceptance input {
        appearance: none;
        aspect-ratio: 1;
        background-color: transparent;
        border: 1px solid var(--wp--preset--color--black);
        cursor: pointer;
        height: 32px;
        margin-top: 0 !important;
        position: relative;
        width: 32px;
    }

    .wpcf7-acceptance {
        width: 100%;
        position: relative;
        left: -14px;
        font-weight: 300;
        top: 16px;
        font-size: 14px;

        .wpcf7-list-item-label {
            color: var(--wp--preset--color--white);
        }

        span label {
            width: 100%;
            display: flex;
            align-items: flex-start;
            gap: 1em;
        }

        a {
            color: var(--wp--preset--color--light-bg);
            text-decoration: underline;
        }
        
    }

}

.wpcf7-form-control-wrap[data-name="your-topic"]::before {
    display: inline-block;
    position: absolute;
    right: -12px;
    top: -14px;
    content: "";
    background-color: #F2EFEF;
    width: 12px;
    height: 45px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.footer__form .wpcf7-acceptance, 
.footer__form .plik {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.footer__form .plik img {
    width: 24px;
}

.footer__form .plik br {
    display: none;
}

.footer__form .plik input[type="file"] {
    color: transparent;
    border-bottom: 0;
    margin-bottom: 8px;
}

.footer__form .plik input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

.footer__form .plik input[type="file"]::before {
    position: relative;
    top: 3px;
    content: 'Dodaj załącznik';
    font-family: var(--wp--preset--font-family--primary);
    -webkit-user-select: none;
    color: var(--wp--preset--color--white);
}

.footer__form input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid var(--wp--preset--color--white);
    margin-right: 2px;
}

.footer__form input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--white);
}

.footer__form input[type="submit"] {
    position: relative;
    width: 100%;
    color: white;
    border: none;
    padding: 16px 24px;
    font-size: clamp(16px, 0.9375vw, 18px);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--primary);
    background-color: transparent;
    border: 1px solid var(--wp--preset--color--light-green);
    appearance: none;
    margin-top: 48px;
    text-align: left;
    border-radius: 60px;
    background-image: url("../../images/arrow.png");
    background-size: 64px;
    background-position: 90% 50%;
    background-repeat: no-repeat;
    transition: all .4s ease-in-out;
}

.footer__form input[type="submit"]:hover {
    background-color: var(--wp--preset--color--light-bg) !important;
    color: var(--wp--preset--color--primary);
}

.footer__form p {
    margin-top: 0 !important;
}

.footer__form .wpcf7-select {
    margin-top: 1.3em;
}

.footer__form .wpcf7 form.invalid .wpcf7-response-output, .footer__form .wpcf7 form.unaccepted .wpcf7-response-output, .footer__form .wpcf7 form.payment-required .wpcf7-response-output {
    color: #ffb900;
    border-color: #ffb900;
}

.footer__form .wpcf7 form.failed .wpcf7-response-output {
    color: #dc3232;
}

.footer  {
    .footer__container {
    
        .wp-block-navigation__container {
            padding-bottom: 24px;
            
            li {
                border-bottom: 1px solid transparent;
                transition: all .4s ease-in-out;
                margin-bottom: 8px;

                &:hover {
                    border-color: white;
                }
            }
        }

        .footer__container-social {
            gap: 16px !important;
            padding-bottom: 32px;

            figure {
                width: 64px;
                height: 64px;
            }
        }

        a {
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: all .4s ease-in-out;
            
            &:hover {
                border-color: white;
            }
        }
    }

    .footer__container-social {
        width: 25%;
        gap: 20px !important;
        
        figure {
            transform-origin: center;
            transition: all .4s ease-in-out;
        
            &:hover {
                transform:scale(1.03);
            }
        }
    }

    .footer__container2 {
        padding-top: 32px;

        .wp-block-button {
            margin-bottom: 48px;

            a {
                display: flex;
                align-items: center;
                gap: 8px;
            }
        }

        .wp-block-contact-form-7-contact-form-selector {
            width: 50%;
        }

        form  {
            .contact__newsletter {
                p {
                    display: flex;
                    align-items: flex-end;  
                    gap: 8px; 
                }

                label {
                    font-size: clamp(18px, 1.125vw, 20px);
                    color: white;
                    margin-bottom: 0;
    
                    input {
                        margin-top: 16px;
                        padding: 16px;
                        border-radius: 32px;
                        border: none;
                        font-family: 'Poppins', sans-serif;
                    }
                }

                input[type="submit"] {
                    padding: 16px 32px;
                    border: 1px solid white;
                    border-radius: 32px;
                    background-color: transparent;
                    color: white;
                    font-family: 'Poppins', sans-serif;

                }
            }

            .wpcf7-list-item {
                margin-left: 0;
            }

            .wpcf7-acceptance {
                input[type="checkbox"] {
                    width: 24px;
                    height: 24px;
                    border: 1px solid var(--wp--preset--color--white);
                    margin-right: 2px;
                    background-color: transparent;
                }
                
                input[type="checkbox"]:checked {
                    background-color: var(--wp--preset--color--white);
                }

                label {
                    margin-top: 16px;
                    display: flex;
                    align-items: center;

                    span {
                        color: white;
                        padding-left: 8px;
                        font-size: 14px;
                    }
                }

            }

            .wpcf7-not-valid-tip {
                position: absolute;
            }

            &.sent .wpcf7-response-output {
                color: #46b450;
            }
        }
    }
    
    .toTop {
        display: flex;
        padding-top: 16px;
        gap: 16px !important;
    }
}



@media only screen and (max-width: 576px) {


    .contact {
        width: 100vw;
        overflow: hidden;

        .contact__top {
        
            img {
                margin-left: -77%;
                width: 250%;
                max-width: 250%;
                object-fit: contain;
                object-position: center;
            }
        }
    
    }


}


@media only screen and (min-width: 576px) and (max-width: 1200px){


    .contact {
        width: 100vw;
        overflow: hidden;

        .contact__top {
        
            img {
                margin-left: -51%;
                width: 200%;
                max-width: 200%;
                object-fit: contain;
                object-position: center;
            }
        }
    
    }


}

@media only screen and (max-width: 767px) {

    .footer  {
        .footer__container {
            grid-template-columns: repeat(1, minmax(0, 1fr));

            .footer__container-social {    
                figure {
                    width: 64px;
                    height: 64px;
                }
            }
        }
    }

    .contact,
    .footer__container,
    .footer__bottom {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    .footer__bottom {
        flex-direction: column;
        gap: 16px !important;


    }
}

@media only screen and (min-width: 768px) and (max-width: 1200px) {

    .footer {
        & .footer__content {
            .footer__form-address {
                width: 100%;
                padding: 64px;
            }

            .footer__form {
                padding-top: 64px;
                padding-left: 64px;
                padding-right: 64px;
            }
        }
    }

    .footer  {
        .footer__container {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }


    .footer__form input[type="submit"] {
        width: 320px;
    }

    .end { 
        .end__columns {
            flex-direction: row;
            flex-wrap: wrap;
    
            .end__columns-column {
                width: 48%;
            }
        }
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px !important;

        .toTop {
            display: flex;
            padding-top: 32px;
            gap: 16px !important;
        }
    }

}

@media only screen and (min-width: 900px) {

    .end { 
        .end__columns {    
            .end__columns-column {
                width: 30%;
            }
        }
    }
}

@media only screen and (max-width: 1400px) {
    .custom-logo-link {
        width: 200px;
    }

    .footer {
        & .footer__container2 {
            & .wp-block-button {
                a {
                    img {
                        width: 16px !important;
                    }

                    font-size: 12px;
                }
            }
        }
    }
}

@media only screen and (max-width: 1200px) {
    .footer__container2 {
        flex-direction: column;
        align-items: flex-start !important;

        .wp-block-contact-form-7-contact-form-selector {
            padding-top: 32px;
        }
    }

}

@media only screen and (max-width: 576px) {
 


    .footer__container2 {
        padding-left: 24px;
        padding-right: 24px;
        
        .footer__container-social {
            width: 100%;

            figure {
                width: 56px;
                height: 56px;
            }
        }

        .wp-block-contact-form-7-contact-form-selector {
            width: 100% !important;
        }

        .contact__newsletter {
            p {
                width: 100%;
                gap: 4px !important;
            }

            & label {
                input {
                    width: 167px;
                }
            }
        
            input[type="submit"] {
                padding: 16px !important;
            }
        }
    }
}

@media only screen and (min-width: 1200px) {
    /* --wp--style--global--content-size: calc(100vw - 2* clamp(30px, 8.4vw, 164px)); */
    .contact {
        .contact__content {
            flex-direction: row;
            align-items: flex-start;
            justify-content: space-between;

            .contact__content-image {
                width: 33vw;

                h2 {
                    margin-top: 0;
                }
            }
        }
    }

    .footer__form {
        width: 40vw;
        display: flex;
        flex-wrap: wrap;
        gap: 16px 32px;

        p {
            width: calc(50% - 16px);
            margin-bottom: 0;
        }

        p:nth-child(5),
        p:nth-child(8),
        p:nth-child(9) {
            width: 100%;
        }

        input[type="submit"] {
            margin-top: 24px;
        }
    }

    .footer {
        & .footer__container {
            & .footer__container-social {
                figure {
                    width: 80px;
                    height: 80px;
                }
            }
        }
    }

    .end {
        & .end__columns {
            flex-wrap: nowrap;
            justify-content: space-between;

            .end__columns-column {
                width: 25%;
            }

            .end__columns-social {
                width: 20%;
            }

        }

        .end__copyright {
            flex-direction: row;
            padding-top: 32px;

            .scrollToTop {
                cursor: pointer;
            }
        }
    }
}


@media only screen and (min-width: 1800px) {
    .footer {
        & .footer__content {
            .footer__form-address {
                padding: 128px 96px 128px 160px;

                .footer__form-address-logo {
                    width: 250px;
                }
            }

            .footer__form {
                padding-top: 108px;
                padding-right: 160px;
                padding-left: 128px;

                .plik {
                    margin: 1.5em 0;

                    img {
                        width: 40px;
                        height: 40px;
                    }
                }
            }
        }
    }

    .footer {
        & .footer__container {
            & .footer__container-social {
                figure {
                    width: 100px;
                    height: 100px;
                }
            }
        }
    }
}
