{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "contact-4",
  "dependencies": [
    "lucide-react",
    "react-icons"
  ],
  "registryDependencies": [
    "badge",
    "button",
    "card",
    "input",
    "label",
    "select",
    "separator",
    "textarea"
  ],
  "files": [
    {
      "path": "src/components/watermelon-ui/contact-4.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Input } from \"@/components/ui/input\";\nimport { Textarea } from \"@/components/ui/textarea\";\nimport { Button } from \"@/components/ui/button\";\nimport { Label } from \"@/components/ui/label\";\nimport {\n  Select,\n  SelectContent,\n  SelectItem,\n  SelectTrigger,\n  SelectValue,\n} from \"@/components/ui/select\";\nimport { Card, CardContent } from \"@/components/ui/card\";\nimport { Separator } from \"@/components/ui/separator\";\nimport { Badge } from \"@/components/ui/badge\";\nimport {\n  FaEnvelope,\n  FaPhoneAlt,\n  FaArrowRight,\n  FaSeedling,\n} from \"react-icons/fa\";\n\ninterface ContactInfo {\n  email: string;\n  phone: string;\n}\n\ninterface ServiceOption {\n  value: string;\n  label: string;\n}\n\ninterface ContactFormProps {\n  badge?: string;\n  headline: string;\n  headlineAccent: string;\n  subheadline: string;\n  contactInfo: ContactInfo;\n  serviceOptions: ServiceOption[];\n  ctaLabel: string;\n  onSubmit?: (data: FormData) => void;\n}\n\ninterface FormData {\n  fullName: string;\n  email: string;\n  service: string;\n  message: string;\n}\n\nconst defaultProps: ContactFormProps = {\n  badge: \"Sustainable Futures\",\n  headline: \"Grow Your\",\n  headlineAccent: \"Green Business\",\n  subheadline:\n    \"We partner with founders and enterprises to design eco-forward strategies that drive measurable impact.\",\n  contactInfo: {\n    email: \"hello@watermelon.studio\",\n    phone: \"+91 98765 43210\",\n  },\n  serviceOptions: [\n    { value: \"strategy\", label: \"Sustainability Strategy\" },\n    { value: \"audit\", label: \"Carbon Audit & Reporting\" },\n    { value: \"supply\", label: \"Supply Chain Consulting\" },\n    { value: \"branding\", label: \"Green Branding\" },\n    { value: \"other\", label: \"Something Else\" },\n  ],\n  ctaLabel: \"Send My Request\",\n  onSubmit: (data) => console.log(\"Submitted:\", data),\n};\n\nexport default function ContactSolutionForm(\n  props: ContactFormProps = defaultProps,\n) {\n  const {\n    badge,\n    headline,\n    headlineAccent,\n    subheadline,\n    contactInfo,\n    serviceOptions,\n    ctaLabel,\n    onSubmit,\n  } = { ...defaultProps, ...props };\n\n  const [form, setForm] = useState<FormData>({\n    fullName: \"\",\n    email: \"\",\n    service: \"\",\n    message: \"\",\n  });\n\n  const handleChange = (field: keyof FormData, value: string) => {\n    setForm((prev) => ({ ...prev, [field]: value }));\n  };\n\n  const handleSubmit = () => {\n    onSubmit?.(form);\n  };\n\n  return (\n    <section className=\"bg-background flex h-full items-center justify-center px-4 py-16\">\n      <div className=\"grid w-full max-w-5xl grid-cols-1 items-center gap-12 md:grid-cols-2\">\n        <div className=\"flex flex-col gap-6\">\n          {badge && (\n            <Badge>\n              <FaSeedling className=\"text-primary-foreground\" />\n              {badge}\n            </Badge>\n          )}\n\n          <h1 className=\"text-foreground text-4xl leading-tight font-extrabold tracking-tight sm:text-5xl\">\n            {headline}{\" \"}\n            <span className=\"text-primary block\">{headlineAccent}</span>\n          </h1>\n\n          <p className=\"text-muted-foreground max-w-sm text-base leading-relaxed\">\n            {subheadline}\n          </p>\n\n          <Separator className=\"border-primary/40 my-2 w-16\" />\n\n          <div className=\"flex flex-col gap-4 sm:flex-row\">\n            <div className=\"bg-muted flex items-center gap-3 rounded-2xl p-1\">\n              <div className=\"bg-card flex size-12 shrink-0 items-center justify-center rounded-xl\">\n                <FaEnvelope className=\"text-primary text-sm\" />\n              </div>\n              <div>\n                <p className=\"text-muted-foreground dark:text-foreground/80 text-sm font-medium tracking-wider\">\n                  Email\n                </p>\n                <p className=\"text-foreground text-md pr-2 font-semibold\">\n                  {contactInfo.email}\n                </p>\n              </div>\n            </div>\n\n            <div className=\"bg-muted flex items-center gap-3 rounded-2xl p-1\">\n              <div className=\"bg-card flex size-12 shrink-0 items-center justify-center rounded-xl\">\n                <FaPhoneAlt className=\"text-primary text-sm\" />\n              </div>\n              <div>\n                <p className=\"text-muted-foreground dark:text-foreground/80 text-sm font-medium tracking-wider\">\n                  Phone\n                </p>\n                <p className=\"text-foreground text-md pr-2 font-semibold\">\n                  {contactInfo.phone}\n                </p>\n              </div>\n            </div>\n          </div>\n        </div>\n\n        <Card className=\"bg-muted rounded-4xl shadow-sm ring-0\">\n          <CardContent className=\"flex flex-col gap-5 p-8\">\n            <div className=\"flex flex-col gap-0.5\">\n              <Label\n                htmlFor=\"fullName\"\n                className=\"text-foreground text-sm font-medium\"\n              >\n                Full Name\n              </Label>\n              <Input\n                id=\"fullName\"\n                placeholder=\"Alex Rivera\"\n                value={form.fullName}\n                onChange={(e) => handleChange(\"fullName\", e.target.value)}\n                className=\"bg-input focus-visible:ring-primary rounded-xl border-0 text-sm shadow-[inset_0_1px_0_0_rgba(255,255,255,1)] focus-visible:ring-1 dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)]\"\n              />\n            </div>\n\n            <div className=\"flex flex-col gap-0.5\">\n              <Label\n                htmlFor=\"email\"\n                className=\"text-foreground text-sm font-medium\"\n              >\n                Work Email\n              </Label>\n              <Input\n                id=\"email\"\n                type=\"email\"\n                placeholder=\"alex@company.com\"\n                value={form.email}\n                onChange={(e) => handleChange(\"email\", e.target.value)}\n                className=\"bg-input focus-visible:ring-primary rounded-xl border-0 text-sm shadow-[inset_0_1px_0_0_rgba(255,255,255,1)] focus-visible:ring-1 dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)]\"\n              />\n            </div>\n\n            <div className=\"flex flex-col gap-0.5\">\n              <Label\n                htmlFor=\"service\"\n                className=\"text-foreground text-sm font-medium\"\n              >\n                Area of Interest\n              </Label>\n              <Select\n                value={form.service}\n                onValueChange={(val) => handleChange(\"service\", val)}\n              >\n                <SelectTrigger\n                  id=\"service\"\n                  className=\"bg-input focus:ring-primary text-muted-foreground rounded-xl border-0 text-sm shadow-[inset_0_1px_0_0_rgba(255,255,255,1)] focus:ring-1 dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)]\"\n                >\n                  <SelectValue placeholder=\"Choose a service…\" />\n                </SelectTrigger>\n                <SelectContent className=\"rounded-xl\">\n                  {serviceOptions.map((opt) => (\n                    <SelectItem\n                      key={opt.value}\n                      value={opt.value}\n                      className=\"text-sm\"\n                    >\n                      {opt.label}\n                    </SelectItem>\n                  ))}\n                </SelectContent>\n              </Select>\n            </div>\n            <div className=\"flex flex-col gap-0.5\">\n              <Label\n                htmlFor=\"message\"\n                className=\"text-foreground text-sm font-medium\"\n              >\n                Message\n              </Label>\n              <Textarea\n                id=\"message\"\n                placeholder=\"Tell us about your goals or challenges…\"\n                rows={4}\n                value={form.message}\n                onChange={(e) => handleChange(\"message\", e.target.value)}\n                className=\"bg-input focus-visible:ring-primary resize-none rounded-xl border-0 text-sm shadow-[inset_0_1px_0_0_rgba(255,255,255,1)] focus-visible:ring-1 dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.2)]\"\n              />\n            </div>\n\n            <Button\n              onClick={handleSubmit}\n              className=\"bg-primary text-primary-foreground hover:bg-primary/90 group mt-1 w-full rounded-xl py-5 text-sm font-semibold shadow-[inset_0_2px_0_0_rgba(255,255,255,0.5),inset_0_-2px_0_0_rgba(0,0,0,0.2)] transition-all dark:shadow-[inset_0_2px_0_0_rgba(255,255,255,0.2)]\"\n            >\n              {ctaLabel}\n              <FaArrowRight className=\"ml-2 text-xs transition-transform group-hover:translate-x-1\" />\n            </Button>\n          </CardContent>\n        </Card>\n      </div>\n    </section>\n  );\n}\n",
      "type": "registry:ui",
      "target": "components/ui/contact-4.tsx"
    }
  ],
  "type": "registry:ui"
}
