/* ===== Form primitives (Tailwind @apply not used — CDN can't compile @apply) ===== */

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  margin-bottom: 0.25rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  outline: none;
  border-color: #4E3629;
  box-shadow: 0 0 0 3px rgba(78, 54, 41, 0.15);
}
.form-input::placeholder { color: #94a3b8; }

.form-error {
  display: none;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc2626;
}
.form-error.visible { display: block; }
.form-input.has-error { border-color: #dc2626; }
.form-input.has-error:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }



/* ===== Step pills (desktop progress dots) ===== */
.step-pill {
  flex: 1;
  text-align: center;
  padding: 0.25rem 0;
  color: #94a3b8;
}
.step-pill.is-active { color: #4E3629; font-weight: 600; }
.step-pill.is-done   { color: #10B981; }

/* ===== Signature font ===== */
.font-allura { font-family: 'Allura', cursive; }

/* ===== Modal display when shown ===== */
#sigModal.is-open { display: flex; }

/* ===== Smooth section transitions ===== */
section[data-step] { animation: stepIn 0.25s ease-out; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .form-input { font-size: 1rem; }   /* prevents iOS zoom-on-focus */
}
