/* ===== Chewathai Voucher — Customer styles =====
 * Mobile-first, single-column. Deliberately minimal.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Sarabun", "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1f2937;
  margin: 0;
  padding: 0;
  line-height: 1.55;
}
.container { max-width: 480px; margin: 0 auto; padding: 16px; }
.footer { text-align: center; padding: 24px 16px; color: #6b7280; }
.footer a { color: #6b7280; }

.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.centered { text-align: center; }

.project-head { text-align: center; margin-bottom: 20px; }
.project-logo { max-width: 120px; max-height: 80px; margin: 0 auto 12px; display: block; }
.project-name { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.amount-label { color: #6b7280; margin: 4px 0; font-size: 14px; }
.amount { font-size: 56px; font-weight: 800; margin: 4px 0 8px; line-height: 1; }
.code-pill {
  display: inline-block;
  background: #f3f4f6;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
  color: #4b5563;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.req { color: #dc2626; }
.field input[type=text],
.field input[type=email],
.field input[type=tel] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}
.field input:focus { outline: 2px solid #1a4d8c; outline-offset: 1px; border-color: #1a4d8c; }

.phone-row { display: flex; gap: 8px; }
.phone-row input { flex: 1; }
.btn-secondary {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.consent { display: flex; align-items: flex-start; }
.consent-label { display: flex; gap: 8px; font-weight: 400; font-size: 14px; cursor: pointer; }
.consent-label input { margin-top: 4px; }
.consent-label a { color: #1a4d8c; }

.btn-primary {
  width: 100%;
  display: block;
  background: #1a4d8c;
  color: #fff;
  text-align: center;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 17px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.hint { font-size: 13px; color: #6b7280; margin: 6px 0 0; }
.hint.success { color: #059669; }
.form-error { background: #fef2f2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; margin-top: 12px; }

.status-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 700;
}
.status-icon.error { background: #fee2e2; color: #b91c1c; }

.voucher-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 16px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.voucher-meta { text-align: left; margin: 16px 0; }
.voucher-meta p { margin: 4px 0; font-size: 14px; }
