/* Preserve Newave's feedback colors with Contact Form 7's current state classes. */
.wpcf7[id^="wpcf7-f5-"] form.invalid .wpcf7-response-output,
.wpcf7[id^="wpcf7-f5-"] form.unaccepted .wpcf7-response-output {
    background: #ff0000;
    border: 2px solid #ff0000;
    border-radius: 3px;
    color: #ffffff;
    text-align: center;
}

.wpcf7[id^="wpcf7-f5-"] form.sent .wpcf7-response-output {
    background: #398f14;
    border: 2px solid #398f14;
    border-radius: 3px;
    color: #ffffff;
    text-align: center;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

/* Feedback can make either floated column taller; consent stays below both. */
.wpcf7[id^="wpcf7-f5-"] #contact-formular > p {
    clear: both;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-acceptance label {
    font: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    text-align: left;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-acceptance input[type="checkbox"] {
    flex: 0 0 auto;
    margin: 0;
}

/* Keep feedback below its own field, without Newave's absolute offsets. */
.wpcf7[id^="wpcf7-f5-"] #contact-formular .one_half .wpcf7-form-control-wrap {
    display: block !important;
    margin-bottom: 20px;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .one_half input[type="text"],
.wpcf7[id^="wpcf7-f5-"] #contact-formular .one_half input[type="email"],
.wpcf7[id^="wpcf7-f5-"] #contact-formular .one_half textarea {
    display: block;
    margin-bottom: 0;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-not-valid-tip {
    position: static;
    inset: auto;
    display: block;
    width: auto;
    margin: 6px 0 0;
    text-align: center;
}

/* Modern CF7 removes two legacy empty lines between consent and submit. */
.wpcf7[id^="wpcf7-f5-"] #contact-formular > p[align="center"] {
    margin-top: 40px;
}

/* Keep the former loader's footprint beside the centered submit button. */
.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-spinner {
    width: 16px;
    height: 16px;
    margin: 0 0 0 4px;
    vertical-align: middle;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular .wpcf7-spinner::before {
    top: 3px;
    left: 3px;
    width: 4px;
    height: 4px;
    transform-origin: 5px 5px;
}

/* Distinguish entered text from examples in Agroborja's contact form only. */
.wpcf7[id^="wpcf7-f5-"] #contact-formular input[type="text"],
.wpcf7[id^="wpcf7-f5-"] #contact-formular input[type="email"],
.wpcf7[id^="wpcf7-f5-"] #contact-formular textarea {
    color: #303030;
}

.wpcf7[id^="wpcf7-f5-"] #contact-formular input[type="text"]::placeholder,
.wpcf7[id^="wpcf7-f5-"] #contact-formular input[type="email"]::placeholder,
.wpcf7[id^="wpcf7-f5-"] #contact-formular textarea::placeholder {
    color: #707070;
    opacity: 1;
}
