MDX compile error in contact.mdx

[next-mdx-remote] error compiling MDX:
Expected a closing tag for `<label>` (31:7-31:14) before the end of `paragraph`

  29 |       <legend>Your property</legend>
  30 |       <label>Postcode<input type="text" name="postcode" required /></label>
> 31 |       <label>Property type
     |       ^
  32 |         <select name="propertyType" required>
  33 |           <option value="">Please select</option>

More information: https://mdxjs.com/docs/troubleshooting-mdx

Raw MDX source:


<section className="hero">
  <h1>Get your free estimate</h1>
  <p>Tell us about your property and what you're looking for. We'll come out for a free survey, look at your roof and your meter, and put together an estimate designed around how you actually use electricity.</p>
  <p>No pressure, no hard sell — just a straightforward quote you can compare.</p>
</section>

<section className="form">
  <h2>Request your free estimate</h2>
  <form>
    <fieldset>
      <legend>What are you interested in?</legend>
      <label><input type="checkbox" name="interest" value="solar" /> Solar panels</label>
      <label><input type="checkbox" name="interest" value="battery" /> Battery storage</label>
      <label><input type="checkbox" name="interest" value="solar-battery" /> Solar and battery together</label>
      <label><input type="checkbox" name="interest" value="ev-charger" /> EV charger</label>
      <label><input type="checkbox" name="interest" value="advice" /> Not sure yet — I'd like advice</label>
    </fieldset>

    <fieldset>
      <legend>Your details</legend>
      <label>First name<input type="text" name="firstName" required /></label>
      <label>Last name<input type="text" name="lastName" required /></label>
      <label>Email address<input type="email" name="email" required /></label>
      <label>Phone number<input type="tel" name="phone" required /></label>
    </fieldset>

    <fieldset>
      <legend>Your property</legend>
      <label>Postcode<input type="text" name="postcode" required /></label>
      <label>Property type
        <select name="propertyType" required>
          <option value="">Please select</option>
          <option value="house">House</option>
          <option value="bungalow">Bungalow</option>
          <option value="other">Other</option>
        </select>
      </label>
      <label>Are you the homeowner?
        <select name="homeowner" required>
          <option value="">Please select</option>
          <option value="yes">Yes</option>
          <option value="no">No</option>
        </select>
      </label>
    </fieldset>

    <label>Anything else we should know?<textarea name="notes" rows="4" placeholder="For example: rough idea of your electricity bills, when you'd like the work done, or questions you'd like answered during the survey."></textarea></label>

    <button type="submit">Submit my estimate request</button>
  </form>

  <p>We'll usually get back to you within one working day to arrange a survey at a time that suits you. Your information is only used to prepare your estimate and won't be shared with anyone else.</p>
</section>

<section className="split">
  <div className="split-text">
    <h2>What happens next</h2>
    <p>Once we receive your request, we'll be in touch within one working day to arrange a free home survey. During the survey, we'll measure your roof, check your electrics and your meter, and talk through what you're hoping to achieve — whether that's cutting bills, storing energy for evening use, or charging an electric car.</p>
    <p>After the survey, we'll send you a written estimate that sets out exactly what we'd install, how the system would work for your household, and what it costs. There's no obligation and no pressure to go ahead. Take your time, compare quotes, and come back to us with any questions.</p>
  </div>
</section>

<section className="features">
  <h2>Why choose HomeVolt</h2>
  <div className="grid">
    <article>
      <h3>Same team from survey to switch-on</h3>
      <p>The people who survey your property are the same people who design your system and carry out the installation. You're not passed between departments or contractors — you deal with us throughout.</p>
    </article>
    <article>
      <h3>Designed around your home</h3>
      <p>Every system is designed for the individual property: the roof, the way it faces, how much electricity you use and when you use it. We don't believe in one-size-fits-all quotes.</p>
    </article>
    <article>
      <h3>Local to Staffordshire and the West Midlands</h3>
      <p>We're based locally and all our work is in Staffordshire and the West Midlands. If anything needs attention after installation, we're close by and easy to reach.</p>
    </article>
  </div>
</section>

<section className="copy">
  <h2>Frequently asked questions</h2>
  
  <h3>How long does a survey take?</h3>
  <p>Usually around 45 minutes. We'll look at your roof from outside and inside the loft if we can access it, check your consumer unit and meter, and talk through your electricity use and what you're hoping to achieve.</p>

  <h3>Do I need to get multiple quotes?</h3>
  <p>It's always worth comparing quotes for home energy systems. Designs and prices vary between installers, and seeing a few estimates helps you understand what's standard and what's optional.</p>

  <h3>Can you give me a ballpark price now?</h3>
  <p>Every system depends on the property, the roof and your electricity use, so we can't quote accurately without a survey. What we can say is that the survey itself is free and there's no obligation to go ahead with the estimate we provide.</p>

  <h3>What areas do you cover?</h3>
  <p>We install across Staffordshire and the West Midlands. If your postcode is outside that area, we'll let you know when you get in touch.</p>
</section>