<?php
$this->assign('title', 'Thank You – BrewHub Coffee');
$this->Html->css(['contact'], ['block' => true]); // reuse contact.css
?>
<section class="thanks-hero">
  <div class="container">
    <div class="thanks-card">
      <div class="thanks-icon" aria-hidden="true">
        <!-- simple check icon -->
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor">
          <circle cx="12" cy="12" r="11" stroke-width="1" opacity=".18"></circle>
          <path d="M6 12l4 4 8-8" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
        </svg>
      </div>

      <h1 class="thanks-title">Thank you<?= $name ? ', ' . h($name) : '' ?>!</h1>
      <p class="thanks-subtitle">We’ve received your message and will get back to you shortly.</p>

      <div class="thanks-actions">
        <a class="btn" href="<?= $this->Url->build('/') ?>">Back to Home</a>
        <a class="btn btn-ghost" href="<?= $this->Url->build('/contact') ?>">Send another</a>
      </div>
    </div>
  </div>
</section>
