/* Local overrides load after the inherited footer styles. Existing UI icon assets are reused. */
.site-footer.site-footer--contact{position:relative;isolation:isolate;background:#071a35;color:#e8f0fc;border-top:1px solid #254568}
.site-footer--contact .site-footer__picture{position:absolute;inset:0;z-index:-2;pointer-events:none}
.site-footer--contact .site-footer__background{position:static;width:100%;height:100%;object-fit:cover;object-position:center}
.site-footer.site-footer--contact::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(110deg,rgba(3,17,39,.35),rgba(5,36,72,.12));pointer-events:none}
.site-footer.site-footer--contact .footer-grid h3,.site-footer.site-footer--contact .footer-friendlinks h3{color:#fff}
.site-footer.site-footer--contact .footer-grid p,.site-footer.site-footer--contact .footer-grid a,.site-footer.site-footer--contact .footer-grid li,.site-footer.site-footer--contact .footer-social span,.site-footer.site-footer--contact .footer-bar,.site-footer.site-footer--contact .footer-bar a,.site-footer.site-footer--contact .footer-friendlinks a{color:#e8f0fc}
.site-footer.site-footer--contact .footer-social figcaption,.site-footer.site-footer--contact .footer-social figcaption b,.site-footer.site-footer--contact .footer-social a{color:#d5e6f3;opacity:1}
.site-footer.site-footer--contact .footer-bar,.site-footer.site-footer--contact .footer-social,.site-footer.site-footer--contact .footer-friendlinks{border-color:rgba(202,222,249,.24)}
.site-footer.site-footer--contact a{transition:color .18s ease,background-color .18s ease,transform .18s ease,opacity .18s ease}
.site-footer.site-footer--contact a:hover{color:#a9d4ff;opacity:1}
.site-footer.site-footer--contact a:active{transform:scale(.98)}
.site-footer.site-footer--contact .footer-enquiry{background:#155ca5;border-color:#70acdf;color:#fff}
.site-footer--contact .footer-contact{min-width:0;overflow-wrap:anywhere}
.site-footer--contact .footer-grid>div{animation:contact-reveal .35s ease both}
.contact-wechat{position:relative;font:inherit}
.contact-wechat summary{display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;list-style:none;transition:background-color .18s ease,transform .18s ease,color .18s ease}
.contact-wechat summary::-webkit-details-marker{display:none}
.contact-wechat--footer{margin:14px 0;max-width:240px}
.contact-wechat--footer summary{justify-content:flex-start;color:#fff;padding:9px 12px;border:1px solid #587698;border-radius:8px;background:#0c294c}
.contact-wechat--footer summary img{filter:brightness(0) invert(1)}
.contact-wechat__panel{position:absolute;z-index:210;bottom:calc(100% + 12px);left:0;width:280px;max-width:calc(100vw - 32px);padding:18px;background:#fff;color:#122d48;border:1px solid #d5e3f0;border-radius:12px;box-shadow:0 10px 38px #03162b40;animation:contact-reveal .18s ease both}
.site-footer.site-footer--contact .contact-wechat__panel p{color:#122d48}
.contact-wechat__panel p{margin:0 0 12px;font-size:14px;line-height:1.7}
.contact-wechat__panel label{display:grid;gap:7px;font-size:12px;color:#35516e}
.contact-wechat__panel input{display:block;box-sizing:border-box;width:100%;padding:11px;border:1px solid #a4bdd6;border-radius:5px;background:#f3f7fb;color:#102b48;font:600 16px/1.5 system-ui,sans-serif;user-select:text;-webkit-user-select:text;cursor:text}
.contact-wechat.is-closing .contact-wechat__panel{animation:contact-dismiss .16s ease both;pointer-events:none}
.m-dock.m-dock--contact{display:none}
.site-footer--contact a:focus-visible,.contact-wechat summary:focus-visible,.contact-wechat input:focus-visible,.m-dock--contact a:focus-visible{outline:3px solid #70b7ff;outline-offset:3px}
@keyframes contact-reveal{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes contact-dismiss{to{opacity:0;transform:translateY(8px)}}
@media(max-width:900px){
 body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
 .m-dock.m-dock--contact,.online-quote-page .m-dock.m-dock--contact{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);height:auto;min-height:66px;box-sizing:border-box;padding:0 0 env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #d4e1ef;box-shadow:0 -4px 24px #0a284516;animation:contact-reveal .28s ease both}
 .m-dock--contact>a,.m-dock--contact>.contact-wechat>summary{display:flex;flex:initial;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:65px;padding:7px 2px;box-sizing:border-box;color:#173f68;background:#fff;font:600 12px/1.35 system-ui,sans-serif;text-align:center;transition:background-color .18s ease,transform .18s ease,color .18s ease}
 .m-dock--contact img{width:24px;height:24px;object-fit:contain;pointer-events:none}
 .m-dock--contact>a.primary{color:#fff;background:#125fae}
 .m-dock--contact>a.primary img{filter:brightness(0) invert(1)}
 .m-dock--contact>a.primary img[src$="/quote.webp"]{content:url("../pcba/feedback-v1/quote.svg")}
 .m-dock--contact>a:hover,.m-dock--contact>.contact-wechat>summary:hover{background:#eaf3fc}
 .m-dock--contact>a.primary:hover{background:#0c4c90}
 .m-dock--contact>a:active,.m-dock--contact>.contact-wechat>summary:active{transform:scale(.96)}
 .m-dock--contact .contact-wechat__panel{position:fixed;left:16px;right:16px;bottom:calc(80px + env(safe-area-inset-bottom,0px));width:auto;max-width:420px;margin:0 auto}
 .site-footer.site-footer--contact{padding-bottom:24px}
 .back-top{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 /* Keep the final footer links clear of the fixed button in either direction. */
 .qipcba-language-page .site-footer--contact .footer-bar{padding-inline-end:44px}
 .qipcba-language-page .site-footer--contact .footer-bar a{display:inline-block}
 .m-dock--contact a:focus-visible,.m-dock--contact summary:focus-visible{outline-offset:-4px}
}
@media(max-width:389px){
 .site-header--localized>.container{padding-inline:12px;column-gap:8px}
 .site-header--localized .nav-toggle{flex-shrink:0}
}
@media(prefers-reduced-motion:reduce){
 .site-footer--contact .footer-grid>div,.m-dock.m-dock--contact,.contact-wechat__panel,.contact-wechat.is-closing .contact-wechat__panel{animation:none}
 .site-footer.site-footer--contact a,.contact-wechat summary,.m-dock--contact>a,.m-dock--contact>.contact-wechat>summary{transition:none}
 .site-footer.site-footer--contact a:active,.m-dock--contact>a:active,.m-dock--contact>.contact-wechat>summary:active{transform:none}
}
