(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,41680,e=>{"use strict";var t=e.i(43476),r=e.i(71645),s=e.i(75254);let a=(0,s.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),n=(0,s.default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),i=["1:1 Coaching","Group Programme","Family Sessions","Safeguarding Support","Not sure yet"],o=["5–7 years","8–11 years","12–14 years","15–18 years","Multiple children / family"];e.s(["ContactForm",0,function(){let[e,s]=(0,r.useState)("idle"),[l,d]=(0,r.useState)(!1),c=async e=>{e.preventDefault(),l&&(s("loading"),await new Promise(e=>setTimeout(e,1400)),s("success"))};return"success"===e?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 text-center gap-4",children:[(0,t.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-100",children:(0,t.jsx)(a,{className:"h-8 w-8 text-green-600","aria-hidden":"true"})}),(0,t.jsx)("h3",{className:"text-2xl font-bold text-foreground",style:{fontFamily:"var(--font-heading)"},children:"Message received!"}),(0,t.jsx)("p",{className:"text-muted-foreground max-w-sm leading-relaxed",children:"Thank you for getting in touch. A member of the Startnova team will contact you within one working day."})]}):(0,t.jsxs)("form",{onSubmit:c,noValidate:!0,"aria-label":"Contact Startnova form",children:[(0,t.jsxs)("div",{className:"grid sm:grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"name",className:"text-sm font-medium text-foreground",children:["Full name ",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),(0,t.jsx)("input",{id:"name",name:"name",type:"text",required:!0,autoComplete:"name",className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow min-h-[44px]",placeholder:"Jane Smith"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"email",className:"text-sm font-medium text-foreground",children:["Email address ",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),(0,t.jsx)("input",{id:"email",name:"email",type:"email",required:!0,autoComplete:"email",className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow min-h-[44px]",placeholder:"jane@example.com"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsx)("label",{htmlFor:"phone",className:"text-sm font-medium text-foreground",children:"Phone number"}),(0,t.jsx)("input",{id:"phone",name:"phone",type:"tel",autoComplete:"tel",className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow min-h-[44px]",placeholder:"+44 7700 000000"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,t.jsxs)("label",{htmlFor:"age",className:"text-sm font-medium text-foreground",children:["Child's age range ",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("select",{id:"age",name:"age",required:!0,className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow min-h-[44px] cursor-pointer",children:[(0,t.jsx)("option",{value:"",disabled:!0,selected:!0,children:"Select an age range"}),o.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 sm:col-span-2",children:[(0,t.jsxs)("label",{htmlFor:"service",className:"text-sm font-medium text-foreground",children:["Service of interest ",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]}),(0,t.jsxs)("select",{id:"service",name:"service",required:!0,className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow min-h-[44px] cursor-pointer",children:[(0,t.jsx)("option",{value:"",disabled:!0,selected:!0,children:"Which service are you interested in?"}),i.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-1.5 sm:col-span-2",children:[(0,t.jsxs)("label",{htmlFor:"message",className:"text-sm font-medium text-foreground",children:["Tell us a little about your child and what support you're looking for",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:" *"})]}),(0,t.jsx)("textarea",{id:"message",name:"message",required:!0,rows:5,className:"rounded-xl border border-input bg-background px-4 py-3 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring transition-shadow resize-none",placeholder:"E.g. My daughter is 10 and has been struggling with anxiety at school..."}),(0,t.jsx)("p",{className:"text-xs text-muted-foreground",children:"Everything you share is strictly confidential and handled in line with our privacy policy."})]}),(0,t.jsx)("div",{className:"sm:col-span-2",children:(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer",children:[(0,t.jsx)("input",{type:"checkbox",required:!0,checked:l,onChange:e=>d(e.target.checked),className:"mt-0.5 h-4 w-4 rounded border-input accent-primary cursor-pointer","aria-describedby":"gdpr-description"}),(0,t.jsxs)("span",{id:"gdpr-description",className:"text-sm text-muted-foreground leading-relaxed",children:["I consent to Startnova storing and using the information submitted above to respond to my enquiry, in accordance with the"," ",(0,t.jsx)("a",{href:"#",className:"underline text-primary hover:opacity-70 transition-opacity",children:"Privacy Policy"})," ","and UK GDPR."," ",(0,t.jsx)("span",{className:"text-destructive","aria-hidden":"true",children:"*"})]})]})})]}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("button",{type:"submit",disabled:"loading"===e||!l,className:"inline-flex w-full sm:w-auto items-center justify-center gap-2 rounded-full bg-primary px-8 py-3.5 text-sm font-semibold text-primary-foreground shadow-md hover:opacity-90 transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer min-h-[44px]",children:"loading"===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}),"Sending…"]}):"Send Message"}),(0,t.jsxs)("p",{className:"mt-3 text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"text-destructive",children:"*"})," Required fields"]})]})]})}],41680)}]);