/* custom.css – ระบบสมัครสมาชิกศูนย์บรรณสารฯ ม.พะเยา */

html, body { font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif; }

/* Input helpers (used when Tailwind classes not applied) */
.form-input:focus,
.inp:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(29,78,216,0.15); }

/* Step transitions */
.step-section { animation: fadeSlide 0.25s ease-out; }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Signature pad */
.signature-wrap { position: relative; width: 100%; height: 180px; background: #fff; }
#signaturePad {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  cursor: crosshair;
  touch-action: none;       /* สำคัญ: กัน browser scroll ทับ gesture วาด */
  -ms-touch-action: none;
  user-select: none;
}

/* No-print class */
@media print {
  .no-print, nav, aside, header, footer, .btn-next, .btn-prev, form button { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .bg-white { box-shadow: none !important; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
  @page { size: A4; margin: 12mm; }
}

/* Active type card */
.type-card.active { border-color: #1d4ed8 !important; background: #eff6ff; box-shadow: 0 4px 10px rgba(29,78,216,0.15); }

/* Step circle animation */
.step-circle.done { background:#10b981 !important; border-color:#10b981 !important; color:#fff !important; }
.step-circle.active { background:#1d4ed8 !important; border-color:#1d4ed8 !important; color:#fff !important; }
