/* Huayun Equestrian v0.9: isolated brand/footer additions */
header .brand.he-brand{display:flex;align-items:center;width:205px;max-width:34vw;flex-shrink:0;text-decoration:none}
header .brand.he-brand img{width:100%;height:auto;max-height:72px;object-fit:contain;display:block}
footer.he-footer{display:block;background:#123b30;color:#f4f0e6;padding:55px max(24px,calc((100vw - 1320px)/2)) 25px;font:14px/1.6 Arial,sans-serif}
.he-footer a{color:#f4f0e6;text-decoration:none}.he-footer a:hover{text-decoration:underline}
.he-footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1.1fr 1.5fr;gap:38px}
.he-footer-logo{display:block;width:min(330px,100%);height:auto;margin:0 0 18px;object-fit:contain}
.he-footer h3{font:600 15px/1.4 Arial,sans-serif;margin:0 0 18px;color:#fff}
.he-footer p{margin:0 0 10px;color:#e4e5dc}.he-footer .he-links{display:flex;flex-direction:column;gap:9px}
.he-footer .he-legal-bottom{border-top:1px solid #527367;margin-top:35px;padding-top:20px;display:flex;gap:16px;justify-content:space-between;flex-wrap:wrap;font-size:12px;color:#dfe1d7}
.he-footer .he-legal-bottom a{margin-right:14px}
.he-footer .he-company{font-size:13px}.he-footer .he-plain-phone{white-space:nowrap}
.he-legal-page{min-height:70vh;max-width:900px;margin:auto;padding:65px 24px 90px;color:#183b31}
.he-legal-page h1{font:normal clamp(34px,4vw,52px)/1.15 Georgia,serif;margin:20px 0}
.he-legal-page h2{font:normal 27px Georgia,serif;margin-top:42px}
.he-legal-page p{font:16px/1.9 Arial,sans-serif;color:#40564c}
@media(max-width:900px){.he-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}header .brand.he-brand{width:160px;max-width:36vw}}
@media(max-width:550px){.he-footer-grid{grid-template-columns:1fr;gap:26px}header .brand.he-brand{width:135px;max-width:37vw}.he-footer{padding:38px 24px 22px}}

/* v0.9.1: guide buyers before filling out the enquiry form */
.he-no-product{background:#eceee5;padding:18px 20px;margin:16px 0 22px;border-left:3px solid #174634}.he-no-product[hidden]{display:none!important}.he-no-product h3{font:600 18px/1.3 Georgia,serif;color:#123c2f;margin:0 0 8px}.he-no-product p{font-size:14px;line-height:1.6;margin:0 0 12px;color:#34564b}.he-browse-button{background:transparent;border:1px solid #174634;color:#174634;padding:10px 14px;cursor:pointer;font:inherit}.he-browse-button:hover{background:#174634;color:white}

/* v0.9.2: feedback and confirmation */
.he-required{color:#a04430;font-weight:700}.he-required[hidden]{display:none!important}
#quote-form-view[hidden],#quote-success[hidden]{display:none!important}
#quote.he-confirmed > :not(.close):not(#quote-success){display:none!important}
#quote .he-field-error{display:block;min-height:0;font-size:12px;line-height:1.4;color:#aa3030;margin:5px 0 0}
#quote [aria-invalid="true"]{border-color:#aa3030!important;outline-color:#aa3030!important}
.he-quote-success{padding:28px 8px 16px;text-align:center;color:#173d30}
.he-success-symbol{display:inline-grid;place-items:center;background:#e2ede5;color:#126244;border-radius:50%;width:70px;height:70px;font-size:36px;margin-bottom:18px}
.he-quote-success h2{font:normal clamp(27px,4vw,42px)/1.2 Georgia,serif;margin:10px 0 18px}
.he-quote-success p{line-height:1.75;font-size:16px;color:#53665e;max-width:580px;margin:0 auto 22px}
.he-reference-box{padding:20px;background:#eceee7;display:flex;flex-direction:column;gap:8px;align-items:center;margin:20px auto;max-width:470px;overflow-wrap:anywhere}
.he-reference-box span{text-transform:uppercase;letter-spacing:.12em;font-size:12px}.he-reference-box strong{font-size:20px}
.he-success-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:25px}
.he-success-actions button{min-width:175px;cursor:pointer}

/* v0.9.3: place required markers on the same text line, never underneath */
#quote label > span[data-t],#quote label > span.he-required{display:inline!important;vertical-align:baseline}
#quote label > span.he-required[hidden]{display:none!important}
/* Force the form-area (including headings and guides) out of the completed state */
#quote.he-confirmed > :not(.close):not(#quote-success){display:none!important}
#quote.he-confirmed{max-height:min(90vh,760px);overflow:auto}
#quote.he-confirmed #quote-success{display:block!important}
#quote.he-confirmed .he-quote-success{padding:24px 10px 12px}
