footer#footer {
    padding: 70px 0 100px;
    background: var(--primary)
}

@media(max-width: 575px) {
    footer#footer {
        padding: 55px 0
    }
}

footer#footer .et-container {
    width: min(80%, 1120px)
}

footer#footer .button-set--buttons {
    margin-top: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

footer#footer .button-set--buttons>* {
    font-size: 10px;
    line-height: 1.6;
    padding: 15px;
    min-width: unset;
    border: 1px solid #7aa9c2 !important;
    border-radius: 8px;
    width: unset !important;
    text-transform: uppercase;
}
@media(max-width: 767px) {
    footer#footer .button-set--buttons>* { padding: 6px 10px 3px; }
}

footer#footer .newsletter {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-left: 48px;
    margin: auto;
    margin-bottom: 60px
}

@media(max-width: 1099px) {
    footer#footer .newsletter {
        flex-direction: column;
        gap: 30px
    }
}

@media(max-width: 767px) {
    footer#footer .newsletter {
        padding-left: 0px
    }
}

@media(max-width: 575px) {
    footer#footer .newsletter {
        margin-bottom: 40px
    }
}

footer#footer .newsletter .title {
    max-width: 410px
}

@media(max-width: 1099px) {
    footer#footer .newsletter .title {
        max-width: unset
    }
}

@media(max-width: 369px) {
    footer#footer .newsletter .title {
        font-size: 50px
    }
}

footer#footer .newsletter .title span {
    isolation: isolate;
    position: relative
}

footer#footer .newsletter .title span:after {
    position: absolute;
    content: "";
    left: 0;
    height: 25px;
    width: 100%;
    background: #f4fdf5;
    z-index: -1;
    bottom: 4px
}

footer#footer .newsletter .form-wrapper {
    max-width: 450px
}

footer#footer .newsletter .form-wrapper form {
    display: flex;
    flex-direction: column;
    gap: 32px
}

@media(max-width: 575px) {
    footer#footer .newsletter .form-wrapper form {
        gap: 24px
    }
}

footer#footer .newsletter .form-wrapper p {
    display: contents
}

footer#footer .newsletter .form-wrapper .upper-block {
    display: flex;
    gap: 32px
}

@media(max-width: 575px) {
    footer#footer .newsletter .form-wrapper .upper-block {
        gap: 24px
    }
}

@media(max-width: 499px) {
    footer#footer .newsletter .form-wrapper .upper-block {
        flex-direction: column
    }
}

footer#footer .newsletter .form-wrapper .form-block {
    position: relative
}

footer#footer .newsletter .form-wrapper .form-block .label {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    z-index: 1;
    transition: .3s ease;
    font-size: 16px;
    line-height: 1.5;
    color: var(--subtext);
    font-weight: 400
}

footer#footer .newsletter .form-wrapper .form-block.active .label {
    top: -28px;
    left: 0;
    transform: translateY(0);
    color: var(--text)
}

footer#footer .newsletter .form-wrapper .wpcf7-spinner {
    position: absolute;
    margin: 0;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0);
    width: 100%;
    height: 100%;
    opacity: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: opacity .3s ease, visibility 0s
}

footer#footer .newsletter .form-wrapper .wpcf7-spinner:before {
    z-index: 2;
    top: calc(50% - 6px);
    left: calc(50% - 6px)
}

footer#footer .newsletter .form-wrapper .wpcf7-spinner:after {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: #0b2737
}

footer#footer .newsletter .form-wrapper .wpcf7-acceptance label {
    display: flex;
    gap: 16px;
    align-items: flex-start
}

footer#footer .newsletter .form-wrapper .wpcf7-acceptance label input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 5px;
    background-color: #fffefc;
    cursor: pointer;
    transition: .3s ease;
    border: 1px solid rgba(0, 0, 0, 0)
}

footer#footer .newsletter .form-wrapper .wpcf7-acceptance label input:checked {
    background-image: url("/wp-content/themes/ergotree/assets/img/check.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px
}

footer#footer .newsletter .form-wrapper .wpcf7-acceptance label [aria-invalid=true] {
    border: 1px solid #ef4444;
    background-color: #fef1f1
}

footer#footer .newsletter .form-wrapper .wpcf7-acceptance label span {
    color: #6a9db9;
    font-size: 14px;
    line-height: 16px;
    font-weight: 400;
    cursor: pointer
}

footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap {
    display: contents
}

footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap input {
    margin: 0;
    padding: 16px 20px 18px;
    border: none;
    background: #fffefc;
    border-radius: 5px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 375;
    transition: .3s;
    border: 1px solid rgba(0, 0, 0, 0);
    width: 100%
}

footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap input:focus,
footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap input:focus-visible,
footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap input:focus-within,
footer#footer .newsletter .form-wrapper .wpcf7-form-control-wrap input:active {
    outline: none
}

footer#footer .newsletter .form-wrapper .wpcf7-list-item {
    margin-left: 0
}

footer#footer .newsletter .form-wrapper .wpcf7-submit {
    min-width: unset;
    width: 160px
}

@media(max-width: 450px) {
    footer#footer .newsletter .form-wrapper .wpcf7-submit {
        min-width: unset;
        width: 100%
    }
}

footer#footer .newsletter .form-wrapper input.wpcf7-not-valid {
    background: #fef1f1;
    border: 1px solid #ef4444
}

footer#footer .newsletter .form-wrapper .wpcf7-not-valid-tip {
    margin-top: 5px;
    position: absolute;
    font-size: 12px;
    line-height: 14px;
    color: #d83658;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    top: 100%
}

footer#footer .newsletter .form-wrapper .wpcf7-not-valid-tip:before {
    margin-top: 1px;
    content: "";
    display: flex;
    background-image: url(/wp-content/themes/ergotree/assets/img/warning.svg);
    background-repeat: no-repeat;
    width: 13px;
    min-width: 13px;
    height: 12px
}

footer#footer .newsletter .form-wrapper .wpcf7-response-output {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 12px;
    line-height: 14px;
    margin-top: 20px
}

footer#footer .newsletter .form-wrapper .invalid .wpcf7-response-output {
    color: #d83658
}

footer#footer .newsletter .form-wrapper .submitting .wpcf7-submit {
    color: rgba(0, 0, 0, 0) !important
}

footer#footer .newsletter .form-wrapper .submitting .wpcf7-spinner {
    opacity: 1;
    visibility: visible
}

footer#footer .global-wrapper {
    padding-top: 24px;
    border-top: 1px solid #84b1c9;
    display: flex;
    gap: 45px;
    justify-content: space-between
}

@media(max-width: 575px) {
    footer#footer .global-wrapper {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 80px
    }
}

footer#footer .info-wrapper {
    display: flex;
    gap: 60px;
    flex-wrap: wrap
}

@media(max-width: 575px) {
    footer#footer .info-wrapper {
        gap: 30px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }
}

footer#footer .info-wrapper .label {
    color: #7aa9c2
}

footer#footer .info-wrapper .main-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
}

footer#footer .info-wrapper .main-info .logo img,
footer#footer .info-wrapper .main-info .logo svg {
    width: 128px
}

footer#footer .info-wrapper .main-info .info {
    display: flex;
    flex-direction: column;
    gap: 10px
}

footer#footer .info-wrapper .main-info .info * {
    color: #747474;
    text-decoration: none
}

footer#footer .info-wrapper .main-info .info span {
    color: #050505
}

footer#footer .info-wrapper .finances-info {
    display: flex;
    flex-direction: column;
    gap: 10px
}

@media(max-width: 575px) {
    footer#footer .info-wrapper .finances-info {
        margin-bottom: 16px
    }
}

footer#footer .info-wrapper .finances-info .info {
    display: flex;
    flex-direction: column;
    gap: 10px
}

footer#footer .info-wrapper .finances-info .info * {
    color: #747474;
    text-decoration: none
}

footer#footer .info-wrapper .finances-info .privacy-policy {
    text-decoration: none
}

footer#footer .info-wrapper .primary,
footer#footer .info-wrapper .secondary {
    display: flex;
    flex-direction: column;
    gap: 10px
}

footer#footer .info-wrapper .primary ul,
footer#footer .info-wrapper .secondary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

footer#footer .info-wrapper .primary ul li a,
footer#footer .info-wrapper .secondary ul li a {
    text-decoration: none;
    color: #747474;
    font-size: 14px;
    line-height: 16px
}

footer#footer .socials {
    display: flex;
    gap: 16px;
    flex-direction: column
}

@media(max-width: 575px) {
    footer#footer .socials {
        margin: auto
    }
}

footer#footer .socials .label {
    color: #7aa9c2;
    white-space: nowrap
}

@media(max-width: 575px) {
    footer#footer .socials .label {
        text-align: center
    }
}

footer#footer .socials .icons {
    display: flex;
    transform: translateX(-10px)
}

@media(max-width: 575px) {
    footer#footer .socials .icons {
        transform: translateX(0)
    }
}

footer#footer .socials .icons svg {
    width: 32px;
    min-width: 32px
}

footer#footer .info-wrapper ul.footer-menu-cols {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px 30px;
    grid-template-columns: repeat(3, 1fr)
}
@media(max-width: 575px) {
    footer#footer .info-wrapper ul.footer-menu-cols {
        grid-template-columns: repeat(1, 1fr)
    }
}