:root {
  --brand: #056dae;
  --brand-dark: #045a8f;
  --brand-rgb: 5, 109, 174;
  --bs-primary: var(--brand);
  --bs-primary-rgb: var(--brand-rgb);
}

body {
  background: #f8f9fa;
}

.app {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

.page-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid #eee;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.step-nav {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem 0;
}

.step-pill {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.8rem;
  color: #6c757d;
  border-bottom: 2px solid #dee2e6;
}

.step-pill.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

.form-section {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: #212529;
}

.form-section:first-child {
  margin-top: 0;
}

.label-hint {
  font-size: 0.85em;
  font-weight: 400;
  color: #6c757d;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-body {
  padding: 1rem 1.5rem 1.5rem;
}

.form-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #eee;
  background: #fafafa;
  border-radius: 0 0 8px 8px;
}

canvas.sig {
  display: block;
  width: 100%;
  height: 72px;
  cursor: crosshair;
  background: #fff;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.form-control:focus,
.form-check-input:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.2rem rgba(var(--brand-rgb), 0.15);
}

.product-note {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.input-group .inv-currency {
  flex: 0 0 auto;
  width: auto;
  min-width: 5.5rem;
}

.privacy-note {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 1rem;
}

.sig-meta {
  font-size: 0.95rem;
}

.sig-meta-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.sig-meta-date {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  color: #212529;
}

.sig-meta-date-value {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sig-meta-date-format {
  font-size: 0.7rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: 0.1rem;
  line-height: 1.2;
}
