/* Interactive enquiry form: floating labels, live ticks, progress, and a thank-you moment.
   Layered over the plain form in index.html by enquiry-ui.js. Without the script the form still works. */
#enquiry.enq{position:relative;padding-top:6px}
#enquiry.enq h3{font-size:clamp(26px,3vw,34px);letter-spacing:-1px;line-height:1.1;margin:0 0 14px}

/* progress */
.enq-progress{display:flex;align-items:center;gap:14px;margin:0 0 26px}
.enq-bar{flex:1;height:5px;background:rgba(0,0,0,.16);overflow:hidden}
.enq-bar i{display:block;height:100%;width:0;background:#000;transition:width .5s cubic-bezier(.2,.8,.2,1)}
.enq-count{font-size:12px;font-weight:700;letter-spacing:.3px;min-width:74px;text-align:right;font-variant-numeric:tabular-nums}
.enq.complete .enq-count{animation:enqPop .5s cubic-bezier(.3,1.6,.5,1)}

/* fields */
#enquiry.enq .form-row{gap:0 34px;margin-bottom:0}
.enq .ff{position:relative;display:block;margin:0 0 32px;padding:22px 34px 0 0;font-size:inherit}
.enq .ff::before{content:'';position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(0,0,0,.5)}
.enq .ff::after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:#000;transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.enq .ff:focus-within::after{transform:scaleX(1)}
.enq .ff-t{position:absolute;left:0;top:27px;font-size:16px;font-weight:600;line-height:1.2;color:rgba(0,0,0,.72);pointer-events:none;transform-origin:left top;transition:transform .22s cubic-bezier(.2,.8,.2,1),color .2s,letter-spacing .2s;white-space:nowrap}
.enq .ff:focus-within .ff-t,.enq .ff.filled .ff-t{transform:translateY(-22px) scale(.66);letter-spacing:.9px;text-transform:uppercase;color:#000;font-weight:700}
.enq .ff input,.enq .ff textarea{display:block;width:100%;background:transparent;border:0;outline:0;border-radius:0;padding:8px 0 11px;margin:0;font-size:17px;line-height:1.4;color:#000;font-weight:600}
.enq .ff textarea{min-height:92px;resize:vertical;padding-top:10px}
.enq .ff input::placeholder,.enq .ff textarea::placeholder{color:transparent;transition:color .2s}
.enq .ff:focus-within input::placeholder,.enq .ff:focus-within textarea::placeholder{color:rgba(0,0,0,.45)}
.enq .ff.area{padding-right:34px}

/* the tick */
.enq .ff .tick{position:absolute;right:2px;top:31px;width:22px;height:22px;border-radius:50%;background:#000;transform:scale(0) rotate(-40deg);opacity:0;transition:transform .35s cubic-bezier(.3,1.7,.5,1),opacity .2s}
.enq .ff .tick::before{content:'';position:absolute;left:7px;top:5px;width:6px;height:10px;border:solid #ffc721;border-width:0 2px 2px 0;transform:rotate(45deg)}
.enq .ff.ok .tick{transform:none;opacity:1}
.enq .ff.area .tick{top:27px}
.enq .ff.bad::before{background:#a2271b;height:2px}
.enq .ff-msg{position:absolute;left:0;top:100%;margin-top:4px;font-size:12px;line-height:1.3;color:#7a160c;font-weight:600;opacity:0;transform:translateY(-4px);transition:opacity .2s,transform .2s;pointer-events:none}
.enq .ff.bad .ff-msg{opacity:1;transform:none}
.enq .ff.shake{animation:enqShake .4s}

/* consent + button + notes */
#enquiry.enq #selectedText{font-size:13px;line-height:1.5;margin:22px 0 16px;color:rgba(0,0,0,.72)}
.enq .ws-checkbox{display:flex;gap:12px;align-items:flex-start;font-size:13px;line-height:1.5;margin:0 0 20px;cursor:pointer}
#enquiry.enq .ws-checkbox input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:none;width:24px;min-width:24px;height:24px;padding:0;margin:0;border-radius:0;border:2px solid #000;background:#fff;display:grid;place-items:center;cursor:pointer;transition:background .2s,transform .2s}
.enq .ws-checkbox input[type=checkbox]::after{content:'';width:6px;height:11px;border:solid #ffc721;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) scale(0);transition:transform .25s cubic-bezier(.3,1.7,.5,1);margin-top:-2px}
.enq .ws-checkbox input[type=checkbox]:checked{background:#000}
.enq .ws-checkbox input[type=checkbox]:checked::after{transform:rotate(45deg) scale(1)}
.enq .ws-checkbox input:focus-visible,.enq .ff input:focus-visible{outline:3px solid #000;outline-offset:3px}
.enq .ws-checkbox:hover input{transform:scale(1.06)}
.enq button[type=submit]{position:relative;display:flex;width:100%;justify-content:space-between;align-items:center;font-size:15px;padding:22px 26px;transition:background .25s,transform .15s,box-shadow .25s}
.enq button[type=submit]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 10px 0 -4px rgba(0,0,0,.25)}
.enq button[type=submit]:disabled{opacity:.7;cursor:progress}
.enq.complete button[type=submit] span{animation:enqNudge 1.5s ease-in-out infinite}
.enq .fineprint{font-size:12px;line-height:1.6;margin-top:16px;color:rgba(0,0,0,.7)}
.enq .fineprint.err{color:#7a160c;font-weight:700}

/* thank you */
#enquiry.enq.sent>*:not(.enq-done){display:none}
.enq-done{padding:26px 0 8px;animation:enqRise .6s cubic-bezier(.2,.8,.2,1) both}
.enq-done svg{width:76px;height:76px;display:block;margin-bottom:18px}
.enq-done circle{fill:#000;transform-origin:center;animation:enqPop .6s cubic-bezier(.3,1.6,.5,1) both}
.enq-done path{fill:none;stroke:#ffc721;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:50;stroke-dashoffset:50;animation:enqDraw .5s .35s ease-out forwards}
.enq-done h3{font-size:clamp(30px,4vw,44px);letter-spacing:-1.4px;line-height:1.05;margin:0 0 12px}
.enq-done p{font-size:15px;line-height:1.6;margin:0 0 8px;max-width:420px}
.enq-done .ref{display:inline-block;margin:6px 0 14px;font-size:12px;letter-spacing:1.6px;font-weight:700;background:#000;color:#ffc721;padding:6px 12px}
.enq-done button{margin-top:18px;background:transparent;border:2px solid #000;color:#000;font-size:14px;padding:14px 22px;cursor:pointer}
.enq-done button:hover{background:#000;color:#ffc721}

@keyframes enqShake{0%,100%{transform:none}20%{transform:translateX(-7px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@keyframes enqPop{0%{transform:scale(.6)}100%{transform:scale(1)}}
@keyframes enqNudge{0%,100%{transform:none}50%{transform:translate(4px,-4px)}}
@keyframes enqDraw{to{stroke-dashoffset:0}}
@keyframes enqRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(max-width:640px){#enquiry.enq .form-row{grid-template-columns:1fr}.enq .ff-t{font-size:15px}.enq .ff input,.enq .ff textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){.enq .ff-t,.enq .ff::after,.enq .ff .tick,.enq-bar i,.enq .ws-checkbox input[type=checkbox]::after{transition:none}.enq.complete button[type=submit] span,.enq .ff.shake,.enq-done,.enq-done circle,.enq-done path{animation:none}.enq-done path{stroke-dashoffset:0}}
