*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1e3d1a;
  --green-mid:   #2d5c1e;
  --green-light: #4a8c33;
  --orange:      #d4611a;
  --cream:       #f5f0e8;
  --white:       #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #5a5a5a;
  --border:      #e0dbd0;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

body.page-thanks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ─────────────────────────────────────────── */
.header-logo {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.35);
  margin: 0 auto 1rem;
  object-fit: cover;
}

header {
  background: linear-gradient(140deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

.page-thanks header {
  padding: 2rem 1.5rem 1.75rem;
}

header h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.page-thanks header h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: normal;
  margin-bottom: 0;
}

.header-location {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-thanks .header-location {
  font-size: 0.875rem;
  margin-top: 0.3rem;
}

.header-tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── How It Works ───────────────────────────────────── */
.how-it-works {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 1.5rem;
}

.how-it-works h2 {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.steps {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 195px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-weight: 900;
  font-size: 0.95rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
}

/* ── Main ───────────────────────────────────────────── */
main {
  padding: 2.5rem 1.25rem 1rem;
}

.page-thanks main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.section-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}

/* ── Category Cards ─────────────────────────────────── */
.category {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 1.1rem;
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--green-dark);
  color: white;
}

.category-icon { font-size: 1.4rem; }

.category-header h3 {
  font-size: 1rem;
  font-weight: 800;
}

.category-body { padding: 0.35rem 0; }

/* ── Custom Checkboxes ──────────────────────────────── */
.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: background 0.12s;
}

.achievement-item:hover { background: #f8f5f0; }

.achievement-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 1.2rem;
  height: 1.2rem;
  min-width: 1.2rem;
  border: 2px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 0.15rem;
  transition: background 0.12s, border-color 0.12s;
  background: white;
  position: relative;
}

.achievement-item input[type="checkbox"]:checked {
  background: var(--green-light);
  border-color: var(--green-light);
}

.achievement-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0px;
  width: 6px;
  height: 10px;
  border: 2.5px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.achievement-item span {
  font-size: 0.92rem;
  color: var(--text);
}

/* ── Contact Section ────────────────────────────────── */
.contact-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem;
  margin-top: 1.75rem;
}

.contact-section h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 0.2rem;
}

.contact-section > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Form ───────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group label .label-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.form-group input {
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.12s;
  background: white;
}

.form-group input:focus {
  outline: none;
  border-color: var(--green-light);
}

.form-group input.input-narrow { max-width: 260px; }

.contact-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ── Submit ─────────────────────────────────────────── */
.submit-area {
  margin-top: 2rem;
  text-align: center;
  padding-bottom: 1rem;
}

.submit-btn {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.95rem 2.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.12s, transform 0.1s;
}

.submit-btn:hover  { background: #b85015; transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }

.error-msg {
  display: none;
  color: #c0392b;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.raffle-note {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ── Thanks Card ────────────────────────────────────── */
.card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

.check-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.card h2 {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.card p:last-of-type { margin-bottom: 1.75rem; }

.back-link {
  display: inline-block;
  background: var(--orange);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  padding: 0.85rem 2rem;
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.12s, transform 0.1s;
}

.back-link:hover  { background: #b85015; transform: translateY(-1px); }
.back-link:active { transform: translateY(0); }

/* ── Footer ─────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.825rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}

footer p + p { margin-top: 0.25rem; }

footer a {
  color: var(--green-light);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.page-thanks footer {
  padding: 1.5rem 1rem;
  margin-top: 0;
}
