(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,66712,e=>{"use strict";e.s(["Sparkles",()=>s],66712);let s=(0,e.i(4668).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},39602,68407,e=>{"use strict";e.s(["Mail",()=>r],39602);var s=e.i(4668);let r=(0,s.default)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]);e.s(["Users",()=>t],68407);let t=(0,s.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},88452,e=>{"use strict";e.s(["Heart",()=>s],88452);let s=(0,e.i(4668).default)("heart",[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]])},49482,35738,29753,e=>{"use strict";e.s(["CheckCircle2",()=>r],49482);var s=e.i(4668);let r=(0,s.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["AlertCircle",()=>t],35738);let t=(0,s.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["submitForm",()=>i],29753),e.i(82568);let a="https://forms-backend-eta.vercel.app",l="Something went wrong. Please try again later.";async function i(e,s){if(!a)return console.error("NEXT_PUBLIC_FORMS_API_URL is not configured"),{status:"error",message:l};try{let t=await fetch("".concat(a).concat(e),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}),i=await t.json().catch(()=>({}));if(!t.ok||"error"===i.status){var r;return{status:"error",message:null!=(r=i.message)?r:l,errors:i.errors}}return{status:"success",message:i.message}}catch(e){return console.error("Error submitting form:",e),{status:"error",message:l}}}},91150,e=>{"use strict";e.s(["default",()=>h]);var s=e.i(10725),r=e.i(72600),t=e.i(88452),a=e.i(39602),l=e.i(68407),i=e.i(66712),d=e.i(49482),n=e.i(35738),c=e.i(62950),o=e.i(74422),m=e.i(29753);function x(e){let{pending:r}=e,t=(0,o.useTranslations)("adopt.form");return(0,s.jsx)(c.Button,{type:"submit",disabled:r,className:"w-full bg-brand-blue text-brand-white hover:bg-brand-blue/90 py-6 text-lg font-semibold shadow-lg transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:t(r?"submitting":"submit")})}function h(){var e,c,h;let u=(0,o.useTranslations)("adopt"),[b,g]=(0,r.useState)({status:"idle"}),[p,j]=(0,r.useState)(!1);async function f(e){e.preventDefault();let s=e.currentTarget;j(!0);let r=new FormData(s),t=await (0,m.submitForm)("/api/adopt",{name:r.get("name"),email:r.get("email"),diocese:r.get("diocese"),country:r.get("country"),message:r.get("message")});g(t),j(!1),"success"===t.status&&s.reset()}return(0,r.useEffect)(()=>{if("success"===b.status){var e;window.scrollTo({top:null==(e=document.getElementById("form-section"))?void 0:e.offsetTop,behavior:"smooth"})}},[b.status]),(0,s.jsxs)("div",{className:"min-h-screen bg-white",children:[(0,s.jsxs)("section",{className:"relative min-h-[600px] md:min-h-[700px] bg-brand-light overflow-hidden",children:[(0,s.jsx)("div",{className:"absolute top-0 left-0 w-64 h-64 md:w-96 md:h-96 bg-brand-white rounded-full -translate-x-1/4 translate-y-1/4 animate-float-gentle"}),(0,s.jsx)("div",{className:"absolute bottom-0 right-0 w-80 h-80 md:w-[600px] md:h-[600px] bg-brand-white rounded-full -translate-x-1/2 translate-y-1/3 animate-float-gentle-delayed"}),(0,s.jsx)("div",{className:"container mx-auto px-4 py-16 md:py-24 pb-56 md:pb-80 relative z-10",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-8 md:gap-12 items-center max-w-6xl mx-auto",children:[(0,s.jsxs)("div",{className:"text-left",children:[(0,s.jsx)("h1",{className:"text-4xl md:text-5xl lg:text-6xl mb-6 text-brand-dark leading-tight",children:u("hero.title")}),(0,s.jsx)("p",{className:"text-xl md:text-2xl text-brand-gray leading-relaxed italic mb-6",children:u("hero.quote")}),(0,s.jsxs)("p",{className:"text-lg text-brand-gray mb-8",children:["— ",u("hero.quoteAuthor")]}),(0,s.jsx)("p",{className:"text-base text-brand-gray leading-relaxed",children:u("hero.description")})]}),(0,s.jsx)("div",{className:"flex items-center justify-center md:justify-end",children:(0,s.jsx)("img",{src:"/mother-teresa.webp",alt:"Mutter Teresa",className:"w-full max-w-md h-auto rounded-lg shadow-xl"})})]})}),(0,s.jsx)("div",{className:"absolute bottom-0 left-0 right-0",children:(0,s.jsx)("img",{src:"/banner.svg",alt:"",className:"w-full h-auto"})})]}),(0,s.jsx)("section",{className:"py-16 md:py-24 bg-brand-blue",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-3 gap-8 mb-16",children:[(0,s.jsxs)("div",{className:"text-center group",children:[(0,s.jsx)("div",{className:"w-20 h-20 bg-brand-white/20 rounded-full flex items-center justify-center mx-auto mb-4 group-hover:bg-brand-white/30 transition-colors",children:(0,s.jsx)(t.Heart,{className:"w-10 h-10 text-brand-white"})}),(0,s.jsx)("h3",{className:"text-xl font-headline text-brand-white mb-2",children:u("pillars.prayer.title")}),(0,s.jsx)("p",{className:"text-brand-white/80",children:u("pillars.prayer.description")})]}),(0,s.jsxs)("div",{className:"text-center group",children:[(0,s.jsx)("div",{className:"w-20 h-20 bg-brand-white/20 rounded-full flex items-center justify-center mx-auto mb-4 group-hover:bg-brand-white/30 transition-colors",children:(0,s.jsx)(i.Sparkles,{className:"w-10 h-10 text-brand-white"})}),(0,s.jsx)("h3",{className:"text-xl font-headline text-brand-white mb-2",children:u("pillars.sacrifice.title")}),(0,s.jsx)("p",{className:"text-brand-white/80",children:u("pillars.sacrifice.description")})]}),(0,s.jsxs)("div",{className:"text-center group",children:[(0,s.jsx)("div",{className:"w-20 h-20 bg-brand-white/20 rounded-full flex items-center justify-center mx-auto mb-4 group-hover:bg-brand-white/30 transition-colors",children:(0,s.jsx)(l.Users,{className:"w-10 h-10 text-brand-white"})}),(0,s.jsx)("h3",{className:"text-xl font-headline text-brand-white mb-2",children:u("pillars.unity.title")}),(0,s.jsx)("p",{className:"text-brand-white/80",children:u("pillars.unity.description")})]})]})})})}),(0,s.jsx)("section",{className:"py-16 md:py-24 bg-brand-light",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-3xl md:text-4xl text-brand-dark mb-6 font-headline",children:u("meaning.title")}),(0,s.jsxs)("div",{className:"space-y-4 text-brand-gray leading-relaxed",children:[(0,s.jsx)("p",{className:"text-lg",children:u.rich("meaning.text1",{strong:e=>(0,s.jsx)("strong",{children:e})})}),(0,s.jsx)("p",{children:u.rich("meaning.text2",{strong:e=>(0,s.jsx)("strong",{children:e})})})]})]}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("img",{src:"/gallery/mother-teresa-hands.jpg",alt:"Mutter Teresa",className:"w-full max-w-md h-auto rounded-lg shadow-lg"})})]})})})}),(0,s.jsx)("section",{className:"relative py-16 md:py-24 bg-white overflow-hidden",children:(0,s.jsx)("div",{className:"container mx-auto px-4 relative z-10",children:(0,s.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[(0,s.jsx)("div",{className:"order-2 md:order-1 flex justify-center",children:(0,s.jsx)("img",{src:"/teresa_pope.webp",alt:"Mutter Teresa mit Papst",className:"w-full max-w-md h-auto rounded-lg shadow-lg"})}),(0,s.jsxs)("div",{className:"order-1 md:order-2",children:[(0,s.jsx)("h2",{className:"text-3xl md:text-4xl text-brand-dark mb-8 font-headline",children:u("therese.title")}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsx)("p",{className:"text-brand-gray leading-relaxed",children:u("therese.quote1")}),(0,s.jsx)("p",{className:"text-brand-gray leading-relaxed",children:u.rich("therese.quote2",{strong:e=>(0,s.jsx)("strong",{children:e})})}),(0,s.jsxs)("p",{className:"text-brand-gray text-right italic",children:["— ",u("forPriests.quoteAuthor")]})]})]})]})})})}),(0,s.jsx)("section",{className:"py-16 md:py-24 bg-brand-light",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsx)("div",{className:"max-w-6xl mx-auto",children:(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-3xl md:text-4xl text-brand-dark mb-6 font-headline",children:u("forPriests.title")}),(0,s.jsxs)("div",{className:"bg-brand-white rounded-lg p-8 shadow-lg",children:[(0,s.jsx)("p",{className:"text-brand-gray leading-relaxed text-lg mb-6",children:u.rich("forPriests.text1",{strong:e=>(0,s.jsx)("strong",{children:e})})}),(0,s.jsx)("p",{className:"text-brand-gray leading-relaxed text-lg italic mb-4",children:u("forPriests.quote")}),(0,s.jsxs)("p",{className:"text-brand-gray mb-6",children:["— ",u("forPriests.quoteAuthor")]}),(0,s.jsx)("p",{className:"text-brand-dark font-semibold",children:u("forPriests.closing")})]})]}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("img",{src:"/teresa-praying.jpg",alt:"Mutter Teresa",className:"w-full max-w-md h-auto rounded-lg shadow-lg"})})]})})})}),(0,s.jsx)("section",{className:"py-16 md:py-24 bg-white",children:(0,s.jsx)("div",{className:"container mx-auto px-4",children:(0,s.jsxs)("div",{className:"max-w-2xl mx-auto",children:[(0,s.jsxs)("div",{className:"text-center mb-12",children:[(0,s.jsx)("div",{className:"flex justify-center mb-6",children:(0,s.jsx)("div",{className:"w-16 h-16 bg-brand-blue rounded-full flex items-center justify-center shadow-lg",children:(0,s.jsx)(a.Mail,{className:"w-8 h-8 text-brand-white"})})}),(0,s.jsx)("h2",{className:"text-3xl md:text-4xl text-brand-dark mb-4 font-headline",children:u("form.title")}),(0,s.jsx)("p",{className:"text-brand-gray text-lg",children:u("form.subtitle")})]}),(0,s.jsxs)("div",{className:"bg-brand-light rounded-lg shadow-lg p-8 md:p-12",id:"form-section",children:["success"===b.status&&(0,s.jsxs)("div",{className:"mb-6 p-4 bg-green-50 border border-green-200 rounded-lg flex items-start gap-3",children:[(0,s.jsx)(d.CheckCircle2,{className:"w-5 h-5 text-green-600 flex-shrink-0 mt-0.5"}),(0,s.jsx)("p",{className:"text-green-800",children:b.message})]}),"error"===b.status&&b.message&&(0,s.jsxs)("div",{className:"mb-6 p-4 bg-red-50 border border-red-200 rounded-lg flex items-start gap-3",children:[(0,s.jsx)(n.AlertCircle,{className:"w-5 h-5 text-red-600 flex-shrink-0 mt-0.5"}),(0,s.jsx)("p",{className:"text-red-800",children:b.message})]}),(0,s.jsxs)("form",{onSubmit:f,className:"space-y-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"name",className:"block text-sm font-semibold text-brand-dark mb-2",children:u("form.nameRequired")}),(0,s.jsx)("input",{type:"text",id:"name",name:"name",required:!0,className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all bg-white",placeholder:u("form.namePlaceholder")}),(null==(e=b.errors)?void 0:e.name)&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:b.errors.name[0]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"email",className:"block text-sm font-semibold text-brand-dark mb-2",children:u("form.emailRequired")}),(0,s.jsx)("input",{type:"email",id:"email",name:"email",required:!0,className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all bg-white",placeholder:u("form.emailPlaceholder")}),(null==(c=b.errors)?void 0:c.email)&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:b.errors.email[0]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"diocese",className:"block text-sm font-semibold text-brand-dark mb-2",children:u("form.diocese")}),(0,s.jsx)("input",{type:"text",id:"diocese",name:"diocese",className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all bg-white",placeholder:u("form.diocesePlaceholder")})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"country",className:"block text-sm font-semibold text-brand-dark mb-2",children:u("form.countryRequired")}),(0,s.jsx)("input",{type:"text",id:"country",name:"country",required:!0,className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all bg-white",placeholder:u("form.countryPlaceholder")}),(null==(h=b.errors)?void 0:h.country)&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600",children:b.errors.country[0]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{htmlFor:"message",className:"block text-sm font-semibold text-brand-dark mb-2",children:u("form.message")}),(0,s.jsx)("textarea",{id:"message",name:"message",rows:4,className:"w-full px-4 py-3 rounded-lg border border-brand-gray/30 focus:border-brand-blue focus:ring-2 focus:ring-brand-blue/20 outline-none transition-all resize-none bg-white",placeholder:u("form.messagePlaceholder")})]}),(0,s.jsx)(x,{pending:p}),(0,s.jsxs)("p",{className:"text-sm text-brand-gray text-center",children:[u("form.sentTo")," ",(0,s.jsx)("a",{href:"mailto:corpxti@gmail.com",className:"text-brand-blue hover:underline",children:"corpxti@gmail.com"})," "]})]})]})]})})})]})}}]);