function BookingCTA() {
  const [step, setStep] = React.useState(0);
  const [where, setWhere] = React.useState('');
  const [when, setWhen] = React.useState('');

  React.useEffect(() => { window.lucide && window.lucide.createIcons(); }, [step]);

  if (step === 1) {
    return (
      <section className="hh-cta">
        <div className="hh-cta__stamp">
          <span className="hh-cta__stamp-eyebrow">REQUEST · 已收到</span>
          <h3 className="hh-cta__stamp-title">HeartEase will reply within one working day.</h3>
          <p className="hh-cta__stamp-sub">
            Looking at <strong>{where || 'Jiangxi'}</strong>, around <strong>{when || 'this season'}</strong>.
            A planner will email an itinerary you can shape.
          </p>
          <button className="hh-btn hh-btn--text" onClick={() => setStep(0)}>
            Plan another <span aria-hidden>→</span>
          </button>
        </div>
      </section>
    );
  }

  return (
    <section className="hh-cta">
      <div className="hh-cta__strip">
        <div className="hh-cta__head">
          <div className="hh-eyebrow">Concierge planning</div>
          <h3 className="hh-cta__title">Tell us where you'd like to slow down.</h3>
        </div>
        <form className="hh-cta__form" onSubmit={(e) => { e.preventDefault(); setStep(1); }}>
          <label>
            <span>Where</span>
            <input
              type="text"
              placeholder="Wuyuan, Lushan, Sanqing…"
              value={where}
              onChange={(e) => setWhere(e.target.value)}
            />
          </label>
          <label>
            <span>When</span>
            <input
              type="text"
              placeholder="April 2026"
              value={when}
              onChange={(e) => setWhen(e.target.value)}
            />
          </label>
          <button type="submit" className="hh-btn hh-btn--accent">
            Send to a planner <span aria-hidden>→</span>
          </button>
        </form>
      </div>
    </section>
  );
}
window.BookingCTA = BookingCTA;
