#footer-form-cf7 {
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    max-width: 36rem;
    margin: 0 auto;
}


#footer-form-cf7 .footer-form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

#footer-form-cf7 .footer-form-input-wrapper p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

#footer-form-cf7 .footer-form-title {
    text-align: center;
    margin-bottom: 0;
}

#footer-form-cf7 .footer-form-input input {
    font-size: 1rem;
    border: 1px solid var(--dark-green);
    border-radius: 48px;
    color: var(--dark-green);
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-md);
    background-color: white;
    text-align: center;
    line-height: 1;
    height: auto;
}

#footer-form-cf7 .footer-form-input input:focus-visible {
    outline: 1px solid var(--dark-green);
}

#footer-form-cf7 input[type="submit"].footer-form-submit {
    font-size: 1rem !important;
    border-radius: 48px;
    color: white;
    padding: 0.75rem 2rem;
    box-shadow: var(--shadow-md) !important;
    background-color: var(--dark-green) !important;
    text-align: center;
    width: 100%;
    min-height: auto;
    transition: background-color 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
    font-weight: 400 !important;
}

#footer-form-cf7 input[type="submit"].footer-form-submit:hover,
#footer-form-cf7 input[type="submit"].footer-form-submit:focus {
    background-color: white !important;
    color: var(--dark-green) !important;
    border-color: var(--dark-green);
}

#footer-form-cf7 .wpcf7-not-valid-tip {
    font-size: 0.75rem;
}

form.sent:has(#footer-form-cf7) .wpcf7-response-output {
    text-align: center;
    padding-inline: 0 !important;
    display: flex !important;
    visibility: visible !important;
    padding: 0;
    background-color: var(--light-green);
    position: absolute;
    inset: 0;
    height: 100% !important;
    border-radius: 0 !important;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--dark-gray);

}

form.failed:has(#footer-form-cf7) .wpcf7-response-output{
    text-align: right;
    padding-inline: 0 !important;
    display: flex !important;
    visibility: visible !important;
    padding: 0;
    color: #F00;
    background-color: transparent;
    height: 1.75rem !important;
    min-height: 1.375rem !important;
    border-radius: 0 !important;
    font-size: 1rem;
    gap: 0.3rem;
    direction: rtl;
    align-items: center;
    line-height: normal !important;
    max-width: 63rem;
    margin: 0 auto !important;
}

form.failed:has(#footer-form-cf7) .wpcf7-response-output:before {
    position: unset !important;
}

form.sent:has(#footer-form-cf7) .wpcf7-response-output:before {
    content: none;
}

form.sent:has(#footer-form-cf7) {
    position: relative;
}

@media screen and (min-width: 768px) {
    #footer-form-cf7 {
        max-width: 48rem;
    }

}

@media screen and (min-width: 1024px) {
    #footer-form-cf7 {
        max-width: 63rem;
    }

    #footer-form-cf7 .footer-form-title {
        font-size: 2.5rem;
    }

    #footer-form-cf7 .footer-form-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
    }

    #footer-form-cf7 .footer-form-input-wrapper {
        flex: 2;
    }

    #footer-form-cf7 .footer-form-input-wrapper p {
        gap: 1.5rem;
    }

    #footer-form-cf7 p:has(.footer-form-submit) {
        flex: 1;
    }

    #footer-form-cf7 .footer-form-input input {
        font-size: 1.125rem;

    }

    #footer-form-cf7 input[type="submit"].footer-form-submit {
        font-size: 1.125rem !important;
    }

    #footer-form-cf7 .wpcf7-not-valid-tip {
        font-size: 0.875rem;
    }

    form.sent:has(#footer-form-cf7) .wpcf7-response-output {
        font-size: 2.25rem;
    }
}