
.contact {
    h2 {
        margin: 0 0 24px !important;
    }
}

:where(.footer .is-layout-flex) {
    gap: 0 !important;
}

footer .map iframe {
    border-radius: 12px;
    filter: grayscale(1);
    width: 100%;
    height: 100%;
    aspect-ratio: 3/2;
}


.footer__form-content {
    margin-top: 32px;
    max-width: 1920px !important;

    .wp-block-columns {
        gap: 48px !important;
        justify-content: space-between;
    }

}

.footer__form-data {

    label {
        color: var(--wp--preset--color--dark-text);
        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% - 56px);
        padding: 18px 24px;
        background-color: white;
        color: var(--wp--preset--color--dark-text);
        margin-top: 4px;
        font-weight: 400;
        font-size: clamp(16px, 0.9375vw, 18px);
        border-radius: 8px;
        font-family: var(--wp--preset--font-family--primary);
        border: 1px solid #CAD2DA;
        margin-top: 8px;
    }

    textarea {
        max-width: 100%;
        height: 100px;
        margin-bottom: 24px;
    }
    
    input::placeholder, 
    textarea::placeholder {
        color: #788594;   
    }

    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 {
        accent-color: white !important;
        color: white !important;
        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--dark-text);
        }

        span label {
            width: 100%;
            display: flex;
            align-items: flex-start;
            gap: 1em;
        }

        a {
            color: var(--wp--preset--color--light-bg);
            text-decoration: underline;
        }
        
    }

}

.footer__form-inputs p {
    display: flex;
    gap: 24px;

    br {
        display: none;
    }   
}

.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-data .wpcf7-acceptance, 
.footer__form-data .plik {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -2em;
    margin-bottom: 1em;
}

.footer__form-data .plik img {
    width: 24px;
}

.footer__form-data .plik br {
    display: none;
}

.footer__form-data .plik input[type="file"] {
    color: transparent;
    border-bottom: 0;
    margin-bottom: 8px;
}

.footer__form-data .plik input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

.footer__form-data .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-data input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid var(--wp--preset--color--white);
    margin-right: 2px;
}

/* .footer__form-data input[type="checkbox"]:checked {
    background-color: var(--wp--preset--color--white);
    transform-origin: bottom left;
    border: 1px solid white !important;
} */

.footer__form-data input[type="submit"] {
    position: relative;
    width: 240px;
    color: white;
    border: none;
    padding: 18px 24px;
    font-size: clamp(16px, 0.9375vw, 18px);
    font-weight: 400;
    font-family: var(--wp--preset--font-family--primary);
    background: var(--wp--preset--gradient--red-gradient) !important;
    cursor: pointer;
    margin-top: 8px;
    appearance: none;
    text-align: center;
    border-radius: 60px;
    background-size: 64px;
    background-position: 90% 50%;
    background-repeat: no-repeat;
    transition: all .4s ease-in-out;
    margin-top: 24px;
}

.footer__form-data input[type="submit"]:hover {
    background: var(--wp--preset--color--primary) !important;
}

.footer__form-data p {
    margin-top: 0 !important;
}

.footer__form-data .wpcf7-select {
    margin-top: 1.3em;
}

.footer__form-data .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-data .wpcf7 form.failed .wpcf7-response-output {
    color: #dc3232;
}

.inputs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    p {
        width: 100%;
    }

    p:nth-child(2), 
    p:nth-child(3) {
        width: 48%;
    }
}

.footer  {
    .footer__container {
        max-width: 1920px !important;

        ul {
            list-style: none;
            padding-left: 0;

            li {
                margin-bottom: 0.25em;
            }
        }

        .wpcf7-form {

        }
    
        .wp-block-navigation__container {
            padding-bottom: 24px;
            
            li {
                border-bottom: 1px solid transparent;
                transition: all .4s ease-in-out;

                &: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 {
                color: var(--wp--preset--color--accent);
            }
        }
    }

    .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: var(--wp--preset--color--dark-text);
                        padding-left: 8px;
                        font-size: 14px;
                    }
                }

            }

            .wpcf7-not-valid-tip {
                position: absolute;
            }

            &.sent .wpcf7-response-output {
                color: #46b450 !important;
            }
        }
    }

    .toTop {
        display: flex;

        p {
            text-align: right;
        }

        img {
            transition: all .4s ease-in-out;
        }

        &:hover {

            img {
                transform: translateY(-8px);
            }
        }
    }
}

.contact__content-image {
    .wp-block-group-is-layout-grid {
        gap: 32px;

        figure {
            img {
                width: clamp(64px, 4.17vw, 80px) !important;
                height: clamp(64px, 4.17vw, 80px) !important;
            }
        }
    }
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #46b450;
    color: #46b450;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #ffb900;
    color: #ffb900;
}

.footer {
    .socials {
        display: flex;
        align-items: center;
        gap: 12px !important;
    }

    .send-msg a {
        display: flex;
        align-items: center;
        gap: 12px;
        border: 1px solid var(--wp--preset--color--light-blue);
        border-radius: 64px;
        padding: 4px;
        padding-right: 24px;
        width: fit-content;
    }
}


.footer__bottom { 
    max-width: 1920px !important;
}

@media only screen and (max-width: 1300px) {

    .toTop {
        gap: 12px !important;

        p {
            font-size: 13px !important;
        }

        figure {
            img {
                width: 48px !important;
                height: 48px !important;
            }
        }
    }

    .footer__bottom {
        p {
            font-size: 13px !important;
        }
    }

    .footer__container {
        gap: 32px;

        p,a  {
            font-size: 14px !important;
        }
    }
}

@media only screen and (max-width: 1100px) {

    .contact >  .wp-block-group-is-layout-grid {
        grid-template-columns: 1.75fr 1fr;

        & > div {
            padding-left: 48px !important;
            padding-right: 48px !important;
        }

        & > div:nth-child(2) {
            padding-left: 24px !important;
            padding-right: 32px !important;
        }
    }

    .contact__content-image {

        .wp-block-group-is-layout-grid {
            grid-template-columns: 1fr;
        }
    }

    .footer__container,
    .footer__bottom {
        padding-left: 48px !important;
        padding-right: 48px !important;
    }

    .footer__container {
        grid-template-columns: 1fr 1fr !important;
    }

    .footer__bottom  {
        flex-wrap: wrap !important;
        gap: 32px !important;
        justify-content: center !important;
    }
 
}

@media only screen and (max-width: 576px) {

    .contact  {
        padding-left: 24px !important;
        padding-right: 24px !important;

        .footer__form-content {
            padding: 48px 24px 24px !important;
            border-radius: 24px !important;

            .wp-block-columns {
                gap: 24px !important;
                margin-bottom: 0 !important;

                h2 {
                    margin-bottom: 0 !important;
                }

                .map {
                    padding-left: 0 !important;
                    padding-right: 0 !important;
                }

                .inputs {
                    p:nth-child(2), p:nth-child(3) {
                        width: 100% !important;
                    }
                }
            }
        }

        .footer__form-data {
            padding: 0 !important;
            border-radius: 24px !important;

        }

        .footer__form-data input[type="submit"] {
            width: 100% !important;
        }
    }

    .contact > .wp-block-group-is-layout-grid {
        grid-template-columns: 1fr;
    }

    .footer__container {
        padding-left: 24px !important;
        padding-right: 24px !important;
        grid-template-columns: 1fr !important;
    }

    .contact > .wp-block-group-is-layout-grid > div { 
        padding: 48px 32px !important;
    }
    

    .footer__form-inputs p {
        display: flex;
        flex-direction: column !important;
    }

    .footer__container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    .footer__bottom {
        & > div {
            display: flex;
            flex-direction: column;
            align-items: center;

            figure {
                margin: 0 !important;
            }

            p {
                text-align: center !important;
            }
        }
    }

    .footer__bottom { 
        gap: 20px !important;
        
        p {
            text-align: center !important;
        }
    }

    .toTop {
        flex-direction: column-reverse !important;
    }
}

