{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "form-booking",
  "type": "registry:component",
  "title": "Booking Form",
  "description": "Pick a day from a strip with availability marks, choose a free slot, then add your details. Confirms with a perforated ticket and an Add to calendar file.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "forms",
    "form",
    "booking",
    "calendar",
    "scheduling",
    "appointment",
    "time slots"
  ],
  "docs": "https://hyperblur.dev/effects/form-booking",
  "files": [
    {
      "path": "registry/hyperblur/form-booking.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/form-booking.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport interface FormBookingValues {\n  date: string;\n  start: string;\n  end: string;\n  duration: number;\n  name: string;\n  email: string;\n  notes: string;\n}\n\nexport interface FormBookingProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"onSubmit\" | \"title\"> {\n  host?: string;\n  title?: string;\n  startDate?: string;\n  days?: number;\n  openHour?: number;\n  closeHour?: number;\n  durations?: number[];\n  timeZoneLabel?: string;\n  accent?: string;\n  delay?: number;\n  onSubmit?: (values: FormBookingValues) => void | Promise<void>;\n}\n\nconst css = `\n.hb-xh9 {\n  --hb-xh9-a: #22c3ee;\n  box-sizing: border-box;\n  width: 100%;\n  max-width: 440px;\n  margin: 0 auto;\n  font-family: inherit;\n  color: #ededed;\n}\n.hb-xh9 *, .hb-xh9 *::before, .hb-xh9 *::after { box-sizing: border-box; }\n.hb-xh9-card { overflow: hidden; border: 1px solid #262626; border-radius: 18px; background: #0f0f0f; box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 28px 56px -28px rgba(0,0,0,0.85); }\n.hb-xh9-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid #1d1d1d; }\n.hb-xh9-av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #22c3ee, #6366f1); color: #fff; font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }\n.hb-xh9-who { display: grid; gap: 1px; min-width: 0; flex: 1; }\n.hb-xh9-who b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }\n.hb-xh9-who span { font-size: 12px; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-xh9-dur { display: inline-flex; flex: none; padding: 2px; border: 1px solid #262626; border-radius: 9px; background: #0a0a0a; }\n.hb-xh9-dur button { height: 26px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: #808080; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }\n.hb-xh9-dur button[aria-checked=\"true\"] { background: #1f1f1f; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.06); }\n.hb-xh9-dur button:focus-visible { outline: 2px solid var(--hb-xh9-a); }\n.hb-xh9-body { padding: 14px 16px 16px; }\n.hb-xh9-month { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; font-weight: 600; }\n.hb-xh9-month span { font-size: 11.5px; font-weight: 400; color: #6f6f6f; }\n.hb-xh9-days { display: grid; grid-template-columns: repeat(var(--hb-xh9-n), 1fr); gap: 5px; margin-bottom: 14px; }\n.hb-xh9-day { position: relative; display: grid; justify-items: center; gap: 2px; padding: 7px 0 9px; border: 1px solid #222; border-radius: 11px; background: #131313; color: #d6d6d6; font: inherit; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }\n.hb-xh9-day small { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #737373; }\n.hb-xh9-day b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }\n.hb-xh9-day i { position: absolute; bottom: 4px; width: 14px; height: 2px; border-radius: 2px; background: var(--hb-xh9-a); opacity: var(--hb-xh9-o); }\n.hb-xh9-day:hover:not(:disabled) { border-color: #353535; transform: translateY(-1px); }\n.hb-xh9-day[aria-pressed=\"true\"] { border-color: var(--hb-xh9-a); background: color-mix(in srgb, var(--hb-xh9-a) 12%, #131313); }\n.hb-xh9-day[aria-pressed=\"true\"] small { color: var(--hb-xh9-a); }\n.hb-xh9-day:disabled { cursor: not-allowed; color: #4a4a4a; background: repeating-linear-gradient(135deg, #111 0 4px, #0d0d0d 4px 8px); }\n.hb-xh9-day:disabled small { color: #3d3d3d; }\n.hb-xh9-day:focus-visible { outline: 2px solid var(--hb-xh9-a); outline-offset: 2px; }\n.hb-xh9-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; animation: hb-xh9-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }\n.hb-xh9-slot { position: relative; height: 34px; border: 1px solid #262626; border-radius: 9px; background: #121212; color: #e0e0e0; font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; overflow: hidden; transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }\n.hb-xh9-slot:hover:not(:disabled) { border-color: var(--hb-xh9-a); color: #fff; }\n.hb-xh9-slot:disabled { color: #4a4a4a; text-decoration: line-through; cursor: not-allowed; background: #0e0e0e; }\n.hb-xh9-slot[aria-pressed=\"true\"] { border-color: var(--hb-xh9-a); background: var(--hb-xh9-a); color: #04161c; font-weight: 600; }\n.hb-xh9-slot:focus-visible { outline: 2px solid var(--hb-xh9-a); outline-offset: 2px; }\n.hb-xh9-none { grid-column: 1 / -1; margin: 0; padding: 18px 0; text-align: center; font-size: 12.5px; color: #6f6f6f; border: 1px dashed #262626; border-radius: 10px; }\n.hb-xh9-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--hb-xh9-a) 35%, #262626); border-radius: 11px; background: color-mix(in srgb, var(--hb-xh9-a) 7%, #111); font-size: 13px; animation: hb-xh9-in 0.35s cubic-bezier(0.22, 1, 0.36, 1); }\n.hb-xh9-sum span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }\n.hb-xh9-sum svg { width: 15px; height: 15px; flex: none; color: var(--hb-xh9-a); }\n.hb-xh9-sum b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.hb-xh9-link { flex: none; padding: 3px 6px; border: 0; border-radius: 6px; background: none; color: var(--hb-xh9-a); font: inherit; font-size: 12px; cursor: pointer; }\n.hb-xh9-link:hover { background: color-mix(in srgb, var(--hb-xh9-a) 12%, transparent); }\n.hb-xh9-link:focus-visible { outline: 2px solid var(--hb-xh9-a); }\n.hb-xh9-form { display: grid; gap: 10px; animation: hb-xh9-in 0.4s cubic-bezier(0.22, 1, 0.36, 1); }\n.hb-xh9-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }\n.hb-xh9-f { display: grid; gap: 5px; min-width: 0; }\n.hb-xh9-f label { font-size: 11.5px; font-weight: 500; color: #a6a6a6; }\n.hb-xh9-in { width: 100%; height: 38px; padding: 0 11px; border: 1px solid #272727; border-radius: 9px; background: #0a0a0a; color: #ededed; font: inherit; font-size: 13.5px; outline: none; transition: border-color 0.18s ease, box-shadow 0.18s ease; }\n.hb-xh9-in::placeholder { color: #4f4f4f; }\n.hb-xh9-in:focus { border-color: var(--hb-xh9-a); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hb-xh9-a) 18%, transparent); }\n.hb-xh9-in[aria-invalid=\"true\"] { border-color: #f05260; }\ntextarea.hb-xh9-in { height: 58px; padding: 8px 11px; resize: none; line-height: 1.45; }\n.hb-xh9-e { margin: 0; font-size: 11.5px; color: #ff8a95; }\n.hb-xh9-go { height: 40px; border: 0; border-radius: 10px; background: var(--hb-xh9-a); color: #04161c; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 8px 20px -10px var(--hb-xh9-a); transition: transform 0.15s cubic-bezier(0.3, 0.7, 0.4, 1), filter 0.2s ease; }\n.hb-xh9-go:hover { filter: brightness(1.07); }\n.hb-xh9-go:active { transform: scale(0.98); }\n.hb-xh9-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }\n.hb-xh9-go[aria-busy=\"true\"] { cursor: progress; opacity: 0.8; }\n.hb-xh9-ticket { padding: 18px 16px 16px; animation: hb-xh9-drop 0.6s cubic-bezier(0.22, 1, 0.36, 1); }\n.hb-xh9-tk { position: relative; border-radius: 14px; background: linear-gradient(180deg, #171717, #121212); border: 1px solid #262626; }\n.hb-xh9-tk-top { padding: 16px; display: grid; gap: 4px; }\n.hb-xh9-tk-top small { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hb-xh9-a); font-weight: 600; }\n.hb-xh9-tk-top h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }\n.hb-xh9-tk-top p { margin: 0; font-size: 13px; color: #9a9a9a; }\n.hb-xh9-perf { position: relative; height: 0; border-top: 2px dashed #2a2a2a; margin: 0 14px; }\n.hb-xh9-perf::before, .hb-xh9-perf::after { content: \"\"; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #0f0f0f; border: 1px solid #262626; }\n.hb-xh9-perf::before { left: -24px; clip-path: inset(0 0 0 50%); }\n.hb-xh9-perf::after { right: -24px; clip-path: inset(0 50% 0 0); }\n.hb-xh9-tk-bot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }\n.hb-xh9-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 12px; color: #bdbdbd; letter-spacing: 0.06em; }\n.hb-xh9-cal { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px; background: #f2f2f2; color: #0a0a0a; font-size: 12.5px; font-weight: 600; text-decoration: none; transition: background 0.2s ease; }\n.hb-xh9-cal:hover { background: #fff; }\n.hb-xh9-cal:focus-visible { outline: 2px solid var(--hb-xh9-a); outline-offset: 2px; }\n.hb-xh9-cal svg { width: 13px; height: 13px; }\n.hb-xh9-again { display: block; margin: 12px auto 0; padding: 4px 8px; border: 0; background: none; color: #8a8a8a; font: inherit; font-size: 12px; cursor: pointer; border-radius: 6px; }\n.hb-xh9-again:hover { color: #fff; }\n.hb-xh9-again:focus-visible { outline: 2px solid var(--hb-xh9-a); }\n@keyframes hb-xh9-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }\n@keyframes hb-xh9-drop { 0% { opacity: 0; transform: translateY(-24px) rotate(-2deg); } 70% { transform: translateY(3px) rotate(0.4deg); } 100% { opacity: 1; transform: none; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-xh9 *, .hb-xh9 *::before, .hb-xh9 *::after { animation: none !important; transition: none !important; }\n}\n`;\n\nconst months = [\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"];\nconst weekdays = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\nconst emailRe = /^[^\\s@]+@[^\\s@]+\\.[^\\s@]{2,}$/;\n\nfunction dayInfo(iso: string, offset: number) {\n  const [y0, m0, d0] = iso.split(\"-\").map(Number);\n  let y = y0;\n  let m = m0;\n  let d = d0 + offset;\n  const len = (yy: number, mm: number) => [31, (yy % 4 === 0 && yy % 100 !== 0) || yy % 400 === 0 ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][mm - 1];\n  while (d > len(y, m)) {\n    d -= len(y, m);\n    m += 1;\n    if (m > 12) {\n      m = 1;\n      y += 1;\n    }\n  }\n  const t = [0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4];\n  const yy = m < 3 ? y - 1 : y;\n  const wd = (yy + Math.floor(yy / 4) - Math.floor(yy / 100) + Math.floor(yy / 400) + t[m - 1] + d) % 7;\n  const pad = (n: number) => n.toString().padStart(2, \"0\");\n  return { iso: `${y}-${pad(m)}-${pad(d)}`, y, m, d, wd };\n}\n\nfunction hashText(text: string) {\n  let h = 2166136261;\n  for (let i = 0; i < text.length; i++) {\n    h ^= text.charCodeAt(i);\n    h = Math.imul(h, 16777619);\n  }\n  return h >>> 0;\n}\n\nfunction fmt(min: number) {\n  const h = Math.floor(min / 60);\n  const mm = min % 60;\n  const h12 = h % 12 === 0 ? 12 : h % 12;\n  return `${h12}:${mm.toString().padStart(2, \"0\")} ${h < 12 ? \"AM\" : \"PM\"}`;\n}\n\nfunction hhmm(min: number) {\n  return `${Math.floor(min / 60).toString().padStart(2, \"0\")}${(min % 60).toString().padStart(2, \"0\")}`;\n}\n\nexport function FormBooking({\n  host = \"Lena Ortiz\",\n  title = \"Intro call · Google Meet\",\n  startDate = \"2026-11-09\",\n  days = 6,\n  openHour = 9,\n  closeHour = 17,\n  durations = [30, 60],\n  timeZoneLabel = \"Pacific Time\",\n  accent = \"#22c3ee\",\n  delay = 1000,\n  onSubmit,\n  className,\n  style,\n  ...rest\n}: FormBookingProps) {\n  const uid = React.useId();\n  const list = React.useMemo(() => Array.from({ length: days }, (_, i) => dayInfo(startDate, i)), [startDate, days]);\n  const [duration, setDuration] = React.useState(durations[0] ?? 30);\n  const [day, setDay] = React.useState(() => list.find((d) => d.wd !== 0 && d.wd !== 6)?.iso ?? list[0]?.iso ?? \"\");\n  const [slot, setSlot] = React.useState<number | null>(null);\n  const [phase, setPhase] = React.useState<\"pick\" | \"details\" | \"done\">(\"pick\");\n  const [name, setName] = React.useState(\"\");\n  const [email, setEmail] = React.useState(\"\");\n  const [notes, setNotes] = React.useState(\"\");\n  const [tried, setTried] = React.useState(false);\n  const [busy, setBusy] = React.useState(false);\n  const nameRef = React.useRef<HTMLInputElement>(null);\n\n  const busyQuarter = (iso: string, min: number) => hashText(`${iso}-${min}`) % 100 < 34;\n  const slotsFor = (iso: string) => {\n    const info = list.find((d) => d.iso === iso);\n    if (!info || info.wd === 0 || info.wd === 6) return [];\n    const out: { start: number; free: boolean }[] = [];\n    for (let m = openHour * 60; m + duration <= closeHour * 60; m += 30) {\n      let free = true;\n      for (let k = m; k < m + duration; k += 30) if (busyQuarter(iso, k) || (k >= 12 * 60 && k < 13 * 60)) free = false;\n      out.push({ start: m, free });\n    }\n    return out;\n  };\n  const slots = slotsFor(day);\n  const current = list.find((d) => d.iso === day);\n  const label = current ? `${weekdays[current.wd]}, ${months[current.m - 1].slice(0, 3)} ${current.d}` : \"\";\n  const range = slot !== null ? `${fmt(slot)} to ${fmt(slot + duration)}` : \"\";\n  const errors = {\n    name: name.trim().length < 2 ? \"Add your name.\" : \"\",\n    email: emailRe.test(email.trim()) ? \"\" : \"Add a valid email for the invite.\",\n  };\n\n  const confirm = async (e: React.FormEvent) => {\n    e.preventDefault();\n    if (busy || slot === null) return;\n    if (errors.name || errors.email) {\n      setTried(true);\n      return;\n    }\n    setBusy(true);\n    try {\n      await Promise.all([\n        Promise.resolve(onSubmit?.({ date: day, start: fmt(slot), end: fmt(slot + duration), duration, name: name.trim(), email: email.trim(), notes: notes.trim() })),\n        new Promise((r) => window.setTimeout(r, delay)),\n      ]);\n      setPhase(\"done\");\n    } finally {\n      setBusy(false);\n    }\n  };\n\n  const ics = slot !== null\n    ? `data:text/calendar;charset=utf-8,${encodeURIComponent([\"BEGIN:VCALENDAR\", \"VERSION:2.0\", \"BEGIN:VEVENT\", `DTSTART:${day.replace(/-/g, \"\")}T${hhmm(slot)}00`, `DTEND:${day.replace(/-/g, \"\")}T${hhmm(slot + duration)}00`, `SUMMARY:${title} with ${host}`, \"END:VEVENT\", \"END:VCALENDAR\"].join(\"\\r\\n\"))}`\n    : \"#\";\n  const code = `BK-${(hashText(day + slot + email) % 9000 + 1000).toString()}-${String.fromCharCode(65 + (hashText(name) % 26))}`;\n  const initials = host.split(\" \").map((p) => p[0]).join(\"\").slice(0, 2).toUpperCase();\n  const calIcon = (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n      <rect x=\"2\" y=\"3\" width=\"12\" height=\"11\" rx=\"2\" />\n      <path d=\"M2 6.5h12M5.5 1.5v3M10.5 1.5v3\" />\n    </svg>\n  );\n\n  return (\n    <div className={[\"hb-xh9\", className].filter(Boolean).join(\" \")} style={{ ...style, \"--hb-xh9-a\": accent, \"--hb-xh9-n\": days } as React.CSSProperties} {...rest}>\n      <style href=\"hb-form-booking\" precedence=\"default\">{css}</style>\n      <div className=\"hb-xh9-card\">\n        {phase === \"done\" ? (\n          <div className=\"hb-xh9-ticket\" role=\"status\">\n            <div className=\"hb-xh9-tk\">\n              <div className=\"hb-xh9-tk-top\">\n                <small>Confirmed</small>\n                <h3>{label}</h3>\n                <p>{range} · {timeZoneLabel}</p>\n                <p>{title} with {host}. Invite sent to {email.trim()}.</p>\n              </div>\n              <div className=\"hb-xh9-perf\" aria-hidden=\"true\" />\n              <div className=\"hb-xh9-tk-bot\">\n                <span className=\"hb-xh9-code\">{code}</span>\n                <a className=\"hb-xh9-cal\" href={ics} download=\"booking.ics\">{calIcon}Add to calendar</a>\n              </div>\n            </div>\n            <button type=\"button\" className=\"hb-xh9-again\" onClick={() => { setPhase(\"pick\"); setSlot(null); setTried(false); }}>Book another time</button>\n          </div>\n        ) : (\n          <>\n            <div className=\"hb-xh9-head\">\n              <span className=\"hb-xh9-av\" aria-hidden=\"true\">{initials}</span>\n              <span className=\"hb-xh9-who\"><b>{host}</b><span>{title}</span></span>\n              <span className=\"hb-xh9-dur\" role=\"radiogroup\" aria-label=\"Duration\">\n                {durations.map((d) => (\n                  <button key={d} type=\"button\" role=\"radio\" aria-checked={duration === d} onClick={() => { setDuration(d); setSlot(null); setPhase(\"pick\"); }}>\n                    {d} min\n                  </button>\n                ))}\n              </span>\n            </div>\n            <div className=\"hb-xh9-body\">\n              {phase === \"pick\" ? (\n                <>\n                  <div className=\"hb-xh9-month\">\n                    {current ? `${months[current.m - 1]} ${current.y}` : \"\"}\n                    <span>{timeZoneLabel}</span>\n                  </div>\n                  <div className=\"hb-xh9-days\" role=\"group\" aria-label=\"Day\">\n                    {list.map((d) => {\n                      const s = slotsFor(d.iso);\n                      const free = s.filter((x) => x.free).length;\n                      return (\n                        <button\n                          key={d.iso}\n                          type=\"button\"\n                          className=\"hb-xh9-day\"\n                          aria-pressed={day === d.iso}\n                          aria-label={`${weekdays[d.wd]} ${months[d.m - 1]} ${d.d}, ${free ? `${free} times free` : \"unavailable\"}`}\n                          disabled={!free}\n                          style={{ \"--hb-xh9-o\": (free ? Math.min(1, 0.25 + free / 10) : 0).toFixed(2) } as React.CSSProperties}\n                          onClick={() => { setDay(d.iso); setSlot(null); }}\n                        >\n                          <small>{weekdays[d.wd]}</small>\n                          <b>{d.d}</b>\n                          <i />\n                        </button>\n                      );\n                    })}\n                  </div>\n                  <div className=\"hb-xh9-slots\" key={`${day}-${duration}`} role=\"group\" aria-label={`Times on ${label}`}>\n                    {slots.length ? slots.slice(0, 9).map((s) => (\n                      <button\n                        key={s.start}\n                        type=\"button\"\n                        className=\"hb-xh9-slot\"\n                        disabled={!s.free}\n                        aria-pressed={slot === s.start}\n                        onClick={() => {\n                          setSlot(s.start);\n                          setPhase(\"details\");\n                          window.requestAnimationFrame(() => nameRef.current?.focus());\n                        }}\n                      >\n                        {fmt(s.start)}\n                      </button>\n                    )) : <p className=\"hb-xh9-none\">No times left this day.</p>}\n                  </div>\n                </>\n              ) : (\n                <>\n                  <div className=\"hb-xh9-sum\">\n                    <span>{calIcon}<b>{label} · {range}</b></span>\n                    <button type=\"button\" className=\"hb-xh9-link\" onClick={() => setPhase(\"pick\")}>Change</button>\n                  </div>\n                  <form className=\"hb-xh9-form\" onSubmit={confirm} noValidate>\n                    <div className=\"hb-xh9-two\">\n                      <div className=\"hb-xh9-f\">\n                        <label htmlFor={`${uid}-n`}>Name</label>\n                        <input ref={nameRef} id={`${uid}-n`} className=\"hb-xh9-in\" placeholder=\"Sam Patel\" autoComplete=\"name\" value={name} onChange={(e) => setName(e.target.value)} aria-invalid={tried && errors.name ? true : undefined} />\n                        {tried && errors.name ? <p className=\"hb-xh9-e\">{errors.name}</p> : null}\n                      </div>\n                      <div className=\"hb-xh9-f\">\n                        <label htmlFor={`${uid}-e`}>Email</label>\n                        <input id={`${uid}-e`} className=\"hb-xh9-in\" type=\"email\" placeholder=\"sam@acme.co\" autoComplete=\"email\" value={email} onChange={(e) => setEmail(e.target.value)} aria-invalid={tried && errors.email ? true : undefined} />\n                        {tried && errors.email ? <p className=\"hb-xh9-e\">{errors.email}</p> : null}\n                      </div>\n                    </div>\n                    <div className=\"hb-xh9-f\">\n                      <label htmlFor={`${uid}-o`}>What should we cover?</label>\n                      <textarea id={`${uid}-o`} className=\"hb-xh9-in\" placeholder=\"Pricing for 25 seats and the SSO setup.\" value={notes} onChange={(e) => setNotes(e.target.value.slice(0, 300))} />\n                    </div>\n                    <button type=\"submit\" className=\"hb-xh9-go\" aria-busy={busy}>{busy ? \"Booking...\" : `Confirm ${duration}-minute call`}</button>\n                  </form>\n                </>\n              )}\n            </div>\n          </>\n        )}\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}