#footer {
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

#footer:before,
#footer:after {
    content: "";
    position: absolute;
}

#footer:before {
    background: url(../../images/icons/ca-stars-2-icon.svg) no-repeat;
    width: 160px;
    height: 171px;
    background-size: 160px 171px;
    top: 64px;
    right: 10%;
}

#footer:after {
    background: url(../../images/icons/ca-heart-icon.svg) no-repeat;
    width: 60px;
    height: 51px;
    background-size: 60px 51px;
    bottom: 128px;
    left: 2%;
}

.footer-wrapper {
    margin: -2px 0;
    background-color: var(--primary-color);
    background-image: url(../../../assets/images/render/ca-map.webp);
    background-repeat: no-repeat;
    background-position: top center;
}

.footer-top {
    display: flex;
    align-items: center;
    gap: 64px;
}

.footer-top > div {
    flex: 1 1 0;
}

.footer-top__form .h1 {
    font-size: var(--font-size-title);
    color: var(--white);
    margin-bottom: 0;
}

.footer-top__form .subtitle {
    font-size: var(--font-size-h4);
    font-weight: 600;
    padding: 16px 0;
}

.footer-top__form .wpcf7-text,
.footer-top__form .wpcf7-textarea {
    font-family: "Titillium Web", serif;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--text-color);
    background: #fff;
    border-radius: 20px;
    border: 0;
    padding: 12px 24px;
    width: 100%;
    resize: none;
}

.footer-top__form .form-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-top__form .form-row > div {
    flex: 1 1 0;
}

.footer-top__form .form-group {
    padding: 8px 0;
}

.footer-top__form .form-consent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.footer-top__form .wpcf7-acceptance input[type=checkbox] {
    visibility: hidden;
    min-width: 18px;
    height: 18px;
    top: 0;
    left: 0;
    position: absolute;
}

.footer-top__form .wpcf7-acceptance input[type=checkbox] + span:before {
    display: block;
    position: absolute;
    content: '';
    height: 18px;
    min-width: 18px;
    top: 0;
    left: 0;
    border-radius: 4px;
    background: #fff;
}

.footer-top__form .wpcf7-acceptance input[type=checkbox] + span:after {
    display: block;
    position: absolute;
    content: "\2713";
    height: 18px;
    width: 18px;
    color: var(--secondary-color);
    top: 0;
    left: 0;
    visibility: hidden;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    line-height: 16px;
}

.footer-top__form .wpcf7-acceptance input[type=checkbox]:checked + span:before {
    background: var(--white);
}

.footer-top__form .wpcf7-acceptance input[type=checkbox]:checked + span:after {
    visibility: visible;
}

.footer-top__form .wpcf7-list-item {
    position: relative;
    margin: 0;
}

.footer-top__form .wpcf7-list-item-label {
    display: inline-block;
    cursor: pointer;
}

.footer-top__form .wpcf7-list-item .wpcf7-list-item-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    margin-left: 28px;
    line-height: 1.5;
}

.footer-top__form .wpcf7-not-valid-tip {
    color: var(--white);
    font-size: 12px;
    margin-top: 4px;
    text-align: center;
}

.footer-top__form .form-submit {
    text-align: right;
    padding-top: 16px;
    position: relative;
}

.footer-top__form .form-submit .button {
    min-width: 220px;
}

.footer-top__form .form-submit .button:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.footer-top__form .wpcf7-spinner {
    position: absolute;
    top: 30px;
    right: -16px;
}

.footer-top__form .wpcf7 form .wpcf7-response-output {
    border: 2px dashed var(--secondary-color);
    border-radius: 32px;
    margin: 32px 0 0 0;
    text-align: center;
    padding: 16px 32px;
}

.footer-top__form form.sent .wpcf7-response-output  {
    border: 2px dashed var(--green-color);
}

.footer-top__contact {
    text-align: center;
}

.footer-top__contact > div {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-top__contact .contact-title {
    color: var(--white);
}

.footer-top__contact .name {
    font-size: var(--font-size-h5);
    padding-bottom: 16px;
}

.footer-top__contact ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 32px;
}

.footer-top__contact li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-top__contact li span {
    width: 30px;
    height: auto;
}

.footer-top__contact li a {
    font-size: var(--font-size-h5);
    font-weight: 600;
    color: var(--white);
}

.footer-separator {
    padding-top: 64px;
    margin-left: calc(-50vw + 50%);
    width: 95vw;
    height: 100%;
    overflow: hidden;
}

.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    padding-bottom: 64px;
}

.footer-bottom .panel {
    flex: 1 1 0;
}

.footer-bottom .panel div {
    position: relative;
}

.footer-bottom .panel div:before {
    content: "";
    width: 3px;
    height: 100%;
    background: var(--secondary-color);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(5deg);
}

.footer-bottom .panel div {
    padding-left: 32px;
}

.footer-bottom .footer-title {
    color: var(--white);
    margin-bottom: 32px;
}

.footer-bottom .footer-title:after {
    content: "";
    width: 45px;
    height: 3px;
    border-radius: 20px;
    background: var(--white);
    display: block;
    margin: 16px 0;
}

.footer-bottom ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.footer-bottom li svg {
    height: 40px;
    width: auto;
    fill: var(--white);
    transition: all 300ms ease-out 0s;
}

.footer-bottom li a:hover svg {
    fill: var(--secondary-color);
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
}

.footer-copyright ul {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-copyright li a {
    color: var(--white)
}

@media (max-width: 1440px) {}

@media (max-width: 1367px) {
    #footer:before {
        width: 112px;
        height: 120px;
        background-size: 112px 120px;
        top: 32px;
        right: 64px;
    }

    #footer:after {
        display: none;
    }
}

@media (max-width: 992px) {
    #footer:before {
        width: 67px;
        height: 72px;
        background-size: 67px 72px;
        top: -24px;
        right: 8px;
    }


    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .footer-top__form .form-submit .button {
        width: 100%;
    }

    .footer-top__contact li span {
        width: 20px;
    }

    .footer-bottom {
        padding-bottom: 32px;
    }

    .footer-bottom .footer-title {
        font-size: var(--font-size-h3);
    }

    .footer-copyright {
        flex-direction: column;
        gap: 8px;
    }

    .footer-separator {
        padding-top: 32px;
        margin-bottom: -32px;
    }
}

@media (max-width: 768px) {
    .footer-top__form .form-row {
        flex-direction: column;
        gap: 0
    }

    .footer-separator {
        padding-top: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom ul {
        justify-content: center;
    }

    .footer-copyright p,
    .footer-copyright a {
        font-size: 12px;
    }
}