.qrl-foundonly {
  min-height: 60vh;
  display: grid;
  place-items: center;
  font: 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.qrl-found-card {
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  padding: 18px 20px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(16,24,40,.08);
  text-align: center;
}
.qrl-found-emoji { font-size: 3rem; margin-bottom: 6px; }
.qrl-found-title { margin: 0 0 6px 0; font-size: 1.4rem; }
.qrl-found-owner { color: #444; margin: 0 0 16px 0; }

.qrl-found-form { text-align: left; margin-top: 8px; }
.qrl-found-field { margin: 10px 0; }
.qrl-found-field label { display:block; font-weight: 600; margin-bottom: 6px; }
.qrl-found-field input,
.qrl-found-field textarea {
  width: 100%;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  outline: none;
}
.qrl-found-field input:focus,
.qrl-found-field textarea:focus { border-color: #0a68ff; box-shadow: 0 0 0 3px rgba(10,104,255,.12); }
.qrl-found-hint { font-size: .85rem; color:#666; margin-top: 4px; }
.req { color:#b00020; }

.qrl-field-error { color:#8a1024; font-size:.9rem; margin-top:6px; }
.qrl-found-field .invalid { border-color:#e33; box-shadow: 0 0 0 3px rgba(227,0,0,.12); }

.qrl-found-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.qrl-found-btn {
  border: 1px solid #0a68ff;
  background: #0a68ff;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.qrl-found-btn[aria-busy="true"] { opacity: .7; cursor: wait; }
.qrl-found-btn:hover { filter: brightness(0.96); }
.qrl-found-link { color: #0a68ff; text-decoration: none; }
.qrl-found-link:hover { text-decoration: underline; }

.qrl-found-alert {
  margin-top: 10px;
  background: #eef6ff;
  border: 1px solid #cfe3ff;
  color: #0a3e8c;
  padding: 8px 10px;
  border-radius: 8px;
}
.qrl-found-alert.error {
  background: #fde7eb;
  border-color: #f8cad2;
  color: #8a1024;
}

.qrl-found-success { margin-top: 14px; color:#1a381a; background:#e9f7ee; border:1px solid #cce9d6; padding:10px 12px; border-radius:8px; }
.qrl-found-note { color:#666; font-size: 0.9rem; margin-top: 8px; }
<?php if (!defined('ABSPATH')) exit;

// ... your existing PHP above ...

$should_open_modal = !empty($token);
?>
<div class="qrl-found">

  <!-- Toggle (CSS-only) -->
  <input type="checkbox" id="qrl_modal_toggle" class="qrl-modal-toggle" <?php if ($should_open_modal) echo 'checked'; ?> />

  <!-- Optional open button (hidden if auto-opened) -->
  <label for="qrl_modal_toggle" class="qrl-open-btn" <?php if ($should_open_modal) echo 'style="display:none"'; ?>>
    Open found item form
  </label>

  <!-- Modal -->
  <div class="qrl-modal" role="dialog" aria-modal="true" aria-labelledby="qrlFoundTitle">
    <!-- Backdrop closes modal -->
    <label for="qrl_modal_toggle" class="qrl-modal__backdrop" aria-hidden="true"></label>

    <div class="qrl-modal__dialog" role="document">
      <!-- Close button -->
      <label for="qrl_modal_toggle" class="qrl-modal__close" aria-label="Close">&times;</label>

      <!-- ===== START: YOUR EXISTING CARD CONTENT ===== -->
      <div class="qrl-card" role="region" aria-labelledby="qrlFoundTitle">
        <p id="qrlFoundDesc" class="screen-reader-text">Use this form to contact the owner of the tagged item.</p>

        <div class="qrl-found-emoji" aria-hidden="true"><?php echo esc_html(($QRL_FOUND['emoji'] ?? '') ?: '🧳'); ?></div>
        <h1 id="qrlFoundTitle" class="qrl-found-title"><?php echo $QRL_FOUND ? 'You found a bag with a Sniffy tag' : 'Sniffy tag'; ?></h1>

        <?php if (!$is_active): ?>
          <div class="qrl-alert qrl-alert--error">This tag is inactive right now because the owner is on a plan that only includes a limited number of tags.</div>
        <?php endif; ?>

        <?php if ($QRL_FOUND && !empty($QRL_FOUND['owner'])): ?>
          <p class="qrl-found-owner">Owner: <strong><?php echo esc_html($QRL_FOUND['owner']); ?></strong></p>
        <?php endif; ?>

        <?php if ($QRL_FOUND && !empty($QRL_FOUND['reward_note'])): ?>
          <div class="qrl-alert qrl-alert--reward"><strong>💰 Reward offered:</strong> <?php echo esc_html($QRL_FOUND['reward_note']); ?></div>
        <?php endif; ?>

        <?php if ($is_active): ?>
          <!-- Keep your existing form exactly as-is -->
          <?php /* BEGIN your existing <form> … </form> block */ ?>
          <?php /* PASTE YOUR FORM HERE UNCHANGED (from your snippet) */ ?>
          <?php /* END your existing form block */ ?>

          <!-- Success block remains as-is -->
          <div id="qrl_success" class="qrl-found-success" style="display:none" role="status" aria-live="polite">
            <p>Thanks — your message has been sent to the owner.</p>
            <p><a class="qrl-found-link" href="<?php echo esc_url($return_url); ?>"><?php echo esc_html($return_label); ?></a></p>
          </div>
        <?php else: ?>
          <p class="qrl-found-hint qrl-mt">You can still leave the item in a safe place or hand it to venue staff.</p>
        <?php endif; ?>
      </div>
      <!-- ===== END: YOUR EXISTING CARD CONTENT ===== -->
    </div>
  </div>

  <noscript>
    <div class="qrl-card qrl-card--inline-fallback">
      Please enable JavaScript to submit this form.
    </div>
  </noscript>
</div>