/* ResearchFinds News - Contact Form 7 presentation layer.
   Reproduces the form layout the site already used, so replacing the Elementor
   form widgets with CF7 changes nothing visually. Scoped to .wpcf7 throughout,
   so it cannot affect any other element on the site. */

.wpcf7 .elementor-form-fields-wrapper{display:flex;flex-wrap:wrap;margin:0 -8px;align-items:flex-start}
.wpcf7 .elementor-field-group{padding:0 8px;margin:0 0 16px;flex:0 0 100%;max-width:100%;min-width:0}
.wpcf7 .elementor-col-50{flex:0 0 50%;max-width:50%}
.wpcf7 .elementor-col-65{flex:0 0 65%;max-width:65%}
.wpcf7 .elementor-col-35{flex:0 0 35%;max-width:35%}
.wpcf7 .elementor-field-label{display:block;margin-bottom:6px;font-family:'IBM Plex Sans',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:#6E6A60}
.wpcf7 .elementor-field-required > .elementor-field-label:after{content:"*";margin-left:3px;color:#A02A20}
.wpcf7 .wpcf7-form-control-wrap{display:block;position:relative}
.wpcf7 .elementor-field-textual{width:100%;font-family:'IBM Plex Sans',sans-serif;font-size:14.5px;line-height:1.5;color:#1A2233;background:#FFFDF8;border:1px solid #D8CFB9;border-radius:2px;padding:11px 13px;box-shadow:none;transition:border-color .16s,box-shadow .16s}
.wpcf7 .elementor-field-textual::placeholder{color:#9A958A;opacity:1}
.wpcf7 .elementor-field-textual:focus{border-color:#A02A20;outline:none;box-shadow:0 0 0 3px rgba(160,42,32,.10)}
.wpcf7 select.elementor-field-textual{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,#6E6A60 50%),linear-gradient(135deg,#6E6A60 50%,transparent 50%);background-position:calc(100% - 18px) 52%,calc(100% - 13px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat;padding-right:36px}
.wpcf7 textarea.elementor-field-textual{min-height:150px;resize:vertical;display:block}
.wpcf7 .rfn-big textarea.elementor-field-textual{min-height:210px}

/* group headings and hints inside a form */
.wpcf7 .rfn-fgroup{display:flex;align-items:center;gap:11px;margin:0 0 2px;font-family:'IBM Plex Sans',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:#101A29}
.wpcf7 .rfn-fgroup:before{content:'';flex:0 0 18px;height:2px;background:#A02A20}
.wpcf7 .rfn-fgroup:after{content:'';flex:1 1 auto;height:1px;background:#E4DCC9}
.wpcf7 .rfn-fgroup-head{margin-bottom:10px;padding-top:8px}
.wpcf7 .elementor-form-fields-wrapper > .rfn-fgroup-head:first-child{padding-top:0}
.wpcf7 .rfn-fhint{margin:0 0 8px;font-family:'IBM Plex Sans',sans-serif;font-size:12.5px;line-height:1.6;color:#6E6A60}

/* file upload */
.wpcf7 input[type=file]{width:100%;padding:11px 13px;background:#FFFDF8;border:1px dashed #C9BC9C;border-radius:2px;font-family:'IBM Plex Sans',sans-serif;font-size:13px;color:#3B3A34;cursor:pointer}
.wpcf7 input[type=file]:focus{border-color:#A02A20;outline:none;box-shadow:0 0 0 3px rgba(160,42,32,.10)}

/* consent checkbox */
.wpcf7 .rfn-consent .wpcf7-list-item{margin:0;display:flex;gap:10px;align-items:flex-start}
.wpcf7 .rfn-consent .wpcf7-list-item-label{font-family:'IBM Plex Sans',sans-serif;font-size:13.5px;font-weight:400;letter-spacing:0;text-transform:none;line-height:1.6;color:#3B3A34}
.wpcf7 .rfn-consent input[type=checkbox]{margin-top:3px;width:15px;height:15px;flex:0 0 15px;accent-color:#A02A20}

/* submit button - matches the site button exactly */
.wpcf7 .elementor-field-group-submit{margin-top:6px}
.wpcf7 .elementor-button{display:inline-flex;align-items:center;justify-content:center;font-family:'IBM Plex Sans',sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.8px;text-transform:uppercase;color:#FFFFFF;background:#A02A20;border:0;border-radius:2px;padding:14px 26px;cursor:pointer;transition:background-color .16s,opacity .16s}
.wpcf7 .elementor-button:hover{background:#8A2118}
.wpcf7 .elementor-button:focus-visible{outline:2px solid #16243F;outline-offset:2px}
.wpcf7 form.submitting .elementor-button{opacity:.7;cursor:progress}
.wpcf7 .wpcf7-spinner{margin:0 0 0 12px;vertical-align:middle}

/* success / error / validation messaging */
.wpcf7 .wpcf7-response-output{font-family:'IBM Plex Sans',sans-serif;font-size:13.5px;line-height:1.65;margin:14px 0 0;padding:13px 15px;border-radius:2px;border:1px solid #D8CFB9;background:#F7F3E9;color:#3B3A34}
.wpcf7 form.sent .wpcf7-response-output{background:#EAF1EC;border:1px solid #CFE0D5;border-left:3px solid #1E4635;color:#1E4635}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.unaccepted .wpcf7-response-output,.wpcf7 form.payment-required .wpcf7-response-output{background:#FBF3E7;border:1px solid #E8DCC2;border-left:3px solid #E0A32C;color:#6B4E13}
.wpcf7 form.failed .wpcf7-response-output,.wpcf7 form.aborted .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output{background:#F6E5E3;border:1px solid #E9CFCC;border-left:3px solid #A02A20;color:#A02A20}
.wpcf7 .wpcf7-not-valid-tip{display:block;margin-top:5px;font-family:'IBM Plex Sans',sans-serif;font-size:12px;line-height:1.5;color:#A02A20}
.wpcf7 .wpcf7-not-valid.elementor-field-textual{border-color:#A02A20;background:#FDF7F6}

/* honeypot - invisible to people, reachable by nothing that matters */
.wpcf7 .rfn-hp{position:absolute!important;left:-9999px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* inline newsletter form keeps its one-line shape */
.wpcf7 .rfn-inline .elementor-form-fields-wrapper{flex-wrap:nowrap;gap:10px;margin:0;align-items:flex-end}
.wpcf7 .rfn-inline .elementor-field-group{padding:0;margin:0}
.wpcf7 .rfn-inline .elementor-field-group-email{flex:1 1 auto;max-width:none}
.wpcf7 .rfn-inline .elementor-field-group-submit{flex:0 0 auto;margin-top:0}
.wpcf7 .rfn-inline .elementor-field-label{display:none}
.wpcf7 .rfn-inline input[type=email]{min-width:200px}
.wpcf7 .rfn-inline .elementor-button{padding:12px 20px;white-space:nowrap}
@media(max-width:600px){.wpcf7 .rfn-inline .elementor-form-fields-wrapper{flex-wrap:wrap}.wpcf7 .rfn-inline .elementor-field-group{flex:0 0 100%}}

/* responsive - single column, comfortable touch targets, no iOS zoom */
@media(max-width:767px){
.wpcf7 .elementor-field-group{flex:0 0 100%!important;max-width:100%!important}
.wpcf7 .elementor-field-textual{font-size:16px}
.wpcf7 textarea.elementor-field-textual{min-height:140px}
.wpcf7 .rfn-big textarea.elementor-field-textual{min-height:180px}
.wpcf7 .elementor-field-group-submit .elementor-button{width:100%}
}

/* --- overrides that must beat theme defaults --- */
.wpcf7 .elementor-field-group > p{margin:0!important;padding:0!important}
.wpcf7 .elementor-field-required .elementor-field-label:after{content:"*";margin-left:3px;color:#A02A20}
.wpcf7 input[type=submit].elementor-button,
.wpcf7 .wpcf7-form input[type=submit].wpcf7-submit{background-color:#A02A20!important;background-image:none!important;color:#FFFFFF!important;border:0!important;border-radius:2px!important;font-family:'IBM Plex Sans',sans-serif!important;font-size:11.5px!important;font-weight:600!important;letter-spacing:.8px!important;text-transform:uppercase!important;padding:14px 26px!important;line-height:1.2!important;width:auto;text-shadow:none!important;box-shadow:none!important}
.wpcf7 input[type=submit].elementor-button:hover,
.wpcf7 .wpcf7-form input[type=submit].wpcf7-submit:hover{background-color:#8A2118!important;color:#FFFFFF!important}
.wpcf7 .rfn-inline input[type=submit].elementor-button{padding:12px 20px!important}
@media(max-width:767px){.wpcf7 .elementor-field-group-submit input[type=submit].elementor-button{width:100%!important}}
/* native date control should read like the other fields */
.wpcf7 input[type=date].elementor-field-textual{min-height:44px}

/* --- inline newsletter form: the .rfn-inline class sits ON the wrapper --- */
.wpcf7 .elementor-form-fields-wrapper.rfn-inline{flex-wrap:nowrap;gap:10px;margin:0;align-items:flex-end}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline > .elementor-field-group{padding:0;margin:0}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline > .elementor-field-group-email{flex:1 1 auto!important;width:auto!important;max-width:none!important}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline > .elementor-field-group-submit{flex:0 0 auto!important;width:auto!important;margin-top:0}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline .elementor-field-label{display:none}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline input[type=email]{min-width:200px}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline input[type=submit].elementor-button{padding:12px 20px!important;white-space:nowrap}
@media(max-width:600px){
.wpcf7 .elementor-form-fields-wrapper.rfn-inline{flex-wrap:wrap}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline > .elementor-field-group{flex:1 1 100%!important}
.wpcf7 .elementor-form-fields-wrapper.rfn-inline > .elementor-field-group-submit input[type=submit].elementor-button{width:100%!important}
}

/* neutralise browser/theme chrome that Contact Form 7's own wrappers pick up */
.wpcf7 form{border:0!important;margin:0;padding:0;background:none}
.wpcf7 fieldset.hidden-fields-container{border:0!important;margin:0!important;padding:0!important;min-inline-size:0}
.wpcf7 .screen-reader-response{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}
