/* Native P4YE contact/referral form: no third-party embed required. */
.p4ye-enquiry-form{background:#f4f6ed;border:1px solid #dce5cd;border-radius:10px;padding:clamp(16px,2vw,22px);max-width:820px;width:100%;color:#111a12;container-type:inline-size}
.p4ye-enquiry-heading h3{font-size:clamp(22px,2.2vw,27px);line-height:1.14;margin:4px 0 7px}
.p4ye-enquiry-heading p:not(.eyebrow){font-size:14px;line-height:1.45;color:#53614f;margin-bottom:10px}
.p4ye-enquiry-fields{display:grid;gap:5px}
.p4ye-enquiry-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 14px;margin:2px 0 0;align-items:end}
.p4ye-enquiry-field{display:flex;flex-direction:column;min-width:0}
.p4ye-enquiry-field>label{font-size:13px;font-weight:700;line-height:1.35;margin-bottom:4px}
.p4ye-enquiry-fields>label:not(.p4ye-enquiry-consent){font-size:13px;font-weight:700;margin-top:3px;line-height:1.35}
.p4ye-enquiry-field>input,.p4ye-enquiry-field>select,.p4ye-enquiry-fields>input:not([type=hidden]),.p4ye-enquiry-fields>select,.p4ye-enquiry-fields>textarea{display:block;width:100%;box-sizing:border-box;padding:9px 12px;font:inherit;font-size:16px;line-height:1.5;min-height:44px;border:1px solid #c6cfbf;border-radius:6px;background:#fff;color:#111a12;min-width:0}
.p4ye-enquiry-field>input:focus-visible,.p4ye-enquiry-field>select:focus-visible,.p4ye-enquiry-fields>input:focus-visible,.p4ye-enquiry-fields>select:focus-visible,.p4ye-enquiry-fields>textarea:focus-visible{outline:3px solid #b0c955;outline-offset:2px}
.p4ye-enquiry-fields textarea{resize:vertical;min-height:64px;}
.p4ye-enquiry-fields [aria-invalid=true]{border-color:#b91c1c}
.p4ye-enquiry-field-error{color:#9f1239;font-size:12px;line-height:1.3}
.p4ye-enquiry-field>.p4ye-enquiry-field-error{margin-top:5px}
.p4ye-enquiry-privacy-note,.p4ye-enquiry-footnote{font-size:12px;line-height:1.45;color:#56634f;margin:4px 0}
.p4ye-enquiry-consent{display:flex;align-items:flex-start;gap:8px;line-height:1.4;font-size:13px;cursor:pointer}
.p4ye-enquiry-consent input{margin-top:5px;flex-shrink:0;width:18px;height:18px;accent-color:#758c13}
.p4ye-enquiry-consent a{text-decoration:underline;text-underline-offset:2px;color:#445b0f}
.p4ye-enquiry-submit{width:fit-content;min-height:44px;cursor:pointer;font-weight:700;border:0;padding:10px 18px;display:inline-flex;gap:20px;align-items:center;margin-top:3px}
.p4ye-enquiry-success{padding:20px;border:1px solid #a7bc7b;background:#fff;border-radius:8px;font-size:15px}
.p4ye-enquiry-success strong{display:block}
.p4ye-enquiry-success p{margin-top:7px}
.p4ye-enquiry-errors{padding:12px 14px;background:#fff;border:1px solid #b91c1c;border-radius:7px;color:#9f1239;font-size:13px}
.p4ye-honeypot{position:absolute;left:-9999px;height:1px;width:1px;overflow:hidden;white-space:nowrap}
.flow-enquiry-placement{margin:24px 0 0}
.flow-enquiry-placement .p4ye-enquiry-form{max-width:820px;margin-inline:auto}
.flow-split .p4ye-enquiry-form{max-width:none}
.page-refer #organisation-referral .flow-links{border-top:0}
.page-refer .flow-signup-card{min-height:94px;padding:18px 20px;margin-bottom:12px;border:1px solid #c9d697;border-inline-start:4px solid var(--green);border-radius:10px;background:#f0f5dd;transition:background-color .18s,border-color .18s}
.page-refer .flow-signup-card:hover{background:#e6efc5;border-color:#98af45}
@media(max-width:760px){.page-refer .flow-signup-card{padding:16px;gap:12px}}
/* Keep the real select and browser keyboard/validation behaviour. Browsers without
   customizable selects continue using their native scrolling option picker. */
@supports (appearance:base-select){
 .p4ye-enquiry-field>select,.p4ye-enquiry-field>select::picker(select){appearance:base-select}
 .p4ye-enquiry-field>select{display:flex;align-items:center;justify-content:space-between;gap:8px}
 .p4ye-enquiry-field>select::picker(select){max-block-size:min(300px,50dvh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;max-inline-size:calc(100vw - 32px);margin-block:5px;padding:4px;border:1px solid #c6cfbf;border-radius:8px;background:#fff;color:#111a12;box-shadow:0 10px 28px #172e2526}
 .p4ye-enquiry-field>select option{display:flex;align-items:center;gap:8px;white-space:normal;overflow-wrap:anywhere;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.45;border-radius:4px;cursor:pointer}
 .p4ye-enquiry-field>select option:checked{background:#edf3de;color:#344b17;font-weight:600}
 .p4ye-enquiry-field>select option:hover,.p4ye-enquiry-field>select option:focus-visible{background:#e7efd5;outline:0;color:#243b13}
 .p4ye-enquiry-field>select::picker-icon{color:#536b22;margin-inline-start:auto;flex-shrink:0}
}
@container (max-width:380px){.p4ye-enquiry-top-grid{grid-template-columns:1fr}}
@media(max-width:760px){.p4ye-enquiry-top-grid{grid-template-columns:1fr}.p4ye-enquiry-form{padding:16px}.flow-enquiry-placement{margin-top:18px}.p4ye-enquiry-fields>input,.p4ye-enquiry-fields>select,.p4ye-enquiry-fields>textarea{font-size:16px}}

/* Contact and Referral: coordinated columns. The left information follows the visitor
   while the longer form scrolls, then releases before the next section/footer. */
.page-contact .flow-contact-aside .flow-section-head{margin-bottom:20px}
.page-contact .flow-enquiry-split>.p4ye-enquiry-form{max-width:none}
@media (min-width:761px) and (min-height:651px){
 .page-refer #organisation-referral .flow-reading,
 .page-contact .flow-contact-aside{position:sticky;top:105px;align-self:start}
}
@media (max-width:760px), (max-height:650px){
 .page-refer #organisation-referral .flow-reading,
 .page-contact .flow-contact-aside{position:static}
}
