/* Enquiry forms (home "Get in Touch" + contact page). Works with enquiry.js. */
.fx-form[hidden]{display:none!important}
.fx-form .fx{display:block;position:relative;margin-top:8px}
.fx-form .fx>input,.fx-form .fx>textarea{margin-top:0!important;width:100%;box-sizing:border-box;transition:border-color .18s,box-shadow .18s,background-color .18s}
.fx-form .fx>input:hover,.fx-form .fx>textarea:hover{border-color:#b9d1fb}
.fx-form .fx>input:focus,.fx-form .fx>textarea:focus{outline:none;border-color:#005cff;box-shadow:0 0 0 4px #005cff1f;background-color:#fff}
.fx-form label:focus-within{color:#0050e0}

/* valid / invalid states */
.fx-ok{position:absolute;right:14px;top:50%;width:22px;height:22px;margin-top:-11px;border-radius:50%;background:#16a35a;opacity:0;transform:scale(.4);transition:opacity .2s,transform .25s cubic-bezier(.3,1.6,.5,1);pointer-events:none}
.fx-ok:after{content:'';position:absolute;left:7px;top:4px;width:6px;height:10px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg)}
.fx:has(textarea) .fx-ok{top:22px}
.fx.is-valid .fx-ok{opacity:1;transform:scale(1)}
.fx.is-valid>input,.fx.is-valid>textarea{border-color:#9fdcb9;padding-right:46px}
.fx.is-invalid>input,.fx.is-invalid>textarea{border-color:#e5484d;box-shadow:0 0 0 4px #e5484d14;background-color:#fffafa}
.fx-err{display:block;min-height:0;font-size:13px;font-weight:600;color:#c62a2f;margin-top:6px;line-height:1.35}
.fx-err:empty{display:none}
.fx-err:not(:empty):before{content:'!';display:inline-grid;place-items:center;width:16px;height:16px;border-radius:50%;background:#e5484d;color:#fff;font-size:11px;font-weight:800;margin-right:6px;vertical-align:-2px}
.fx-count{position:absolute;right:14px;bottom:10px;font-size:12px;color:#8a97b3;pointer-events:none;background:#ffffffd9;padding:0 4px;border-radius:4px}
.fx-form .fx>textarea{resize:none;min-height:116px;padding-bottom:30px!important;overflow-y:auto}

/* "what do you need" chips */
.fx-needs{display:grid;gap:10px;margin-bottom:4px}
.fx-needs-label{font-size:inherit;font-weight:inherit;color:inherit}
#project-enquiry .fx-needs-label{font-size:20px}
.fx-needs-label small{font-weight:400;color:#8a97b3;font-size:.75em}
.fx-chips{display:flex;flex-wrap:wrap;gap:8px}
.fx-chips button{border:1.5px solid #d6e4fd;background:#fff;color:#33456b;font:inherit;font-size:14px;font-weight:600;padding:9px 14px;border-radius:999px;cursor:pointer;transition:all .15s}
.fx-chips button:hover{border-color:#9cc0ff;color:#0050e0;transform:translateY(-1px)}
.fx-chips button[aria-checked=true]{background:#005cff;border-color:#005cff;color:#fff;box-shadow:0 6px 16px #005cff40}
.fx-chips button[aria-checked=true]:before{content:'✓ '}
.fx-chips button:focus-visible{outline:3px solid #005cff55;outline-offset:2px}

/* submit */
.fx-form [type=submit]{transition:transform .15s,box-shadow .15s,opacity .15s;cursor:pointer}
.fx-form [type=submit]:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 16px 32px #005cff40}
.fx-form [type=submit]:not(:disabled):hover span{transform:translateX(4px)}
.fx-form [type=submit] span{display:inline-block;transition:transform .2s}
.fx-form [type=submit].is-loading{opacity:.85;cursor:progress}
.fx-spin{display:inline-block;width:18px;height:18px;border:2.5px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:fx-rot .7s linear infinite;vertical-align:-3px;margin-right:6px}
@keyframes fx-rot{to{transform:rotate(360deg)}}
.fx-shake{animation:fx-shake .4s ease}
@keyframes fx-shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
.fx-alert{margin:4px 0 0;padding:12px 14px;border-radius:12px;background:#fff4f4;border:1px solid #f5c2c4;color:#7a1d21;font-size:14px;line-height:1.45}
.fx-alert a{color:#005cff;font-weight:700}

/* success card */
.fx-success{text-align:left;padding:8px 4px 4px;animation:fx-pop .45s cubic-bezier(.2,.8,.2,1) both;outline:none}
@keyframes fx-pop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.fx-check{width:64px;height:64px;display:block;margin-bottom:14px}
.fx-check circle{fill:#e8f8ef;stroke:#16a35a;stroke-width:2.5;stroke-dasharray:151;stroke-dashoffset:151;animation:fx-draw .6s .1s ease forwards}
.fx-check path{fill:none;stroke:#16a35a;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:36;stroke-dashoffset:36;animation:fx-draw .4s .55s ease forwards}
@keyframes fx-draw{to{stroke-dashoffset:0}}
.fx-success h3{font-size:clamp(22px,1.8vw,30px);margin:0 0 8px;color:#070e43;letter-spacing:-.5px}
.fx-success>p{margin:0 0 18px;color:#46557a;font-size:16px;line-height:1.5}
.fx-steps{list-style:none;counter-reset:s;margin:0 0 22px;padding:0;display:grid;gap:12px}
.fx-steps li{counter-increment:s;display:grid;grid-template-columns:34px 1fr;gap:2px 12px;align-items:start}
.fx-steps li:before{content:counter(s);grid-row:1/span 2;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e8f1ff;color:#0050e0;font-weight:800;font-size:14px}
.fx-steps b{font-size:15px;color:#070e43}
.fx-steps span{font-size:14px;color:#5b6b8c;line-height:1.45}
.fx-success-actions{display:flex;gap:12px;flex-wrap:wrap}
.fx-success-actions .btn{font-size:15px!important;padding:13px 20px!important;border-radius:12px!important;cursor:pointer;text-decoration:none}
.fx-again{margin-top:14px;border:0;background:none;color:#5b6b8c;font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;padding:0}

/* keep the floating assistant clear of the WhatsApp button */
@media(min-width:601px){.whatsapp-strip{padding-right:max(5%,110px)!important}}
@media(max-width:600px){.whatsapp-strip{padding-bottom:84px!important}}

@media(prefers-reduced-motion:reduce){
  .fx-success,.fx-shake,.fx-check *{animation:none!important;stroke-dashoffset:0!important}
}
