.form-group {
    margin-bottom: 1rem;
}

label {
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.3rem;
}

input {
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--border-radius);
    border: 1px solid #d1d5db;
}

.signature-canvas-container {
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius);
    height: 180px;
    margin-bottom: 0.5rem;
    touch-action: none; 
    position: relative;
    width: 100%;
}

#signature-canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
}

.btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    margin-top: 1rem;
}

.btn-secondary {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
}

.legal-text {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Frontend/styles/components.css */

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 9999;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(520px, 100%);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: translateY(8px) scale(0.98);
  transition: transform 180ms ease;
  color: #fff;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.modal__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 20px;
}

.modal__title {
  font-size: 18px;
  margin: 0;
}

.modal__desc {
  margin: 10px 0 16px;
  opacity: 0.92;
  line-height: 1.35;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* Botones del modal */
.btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: transform 120ms ease, background 120ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: rgba(72, 187, 120, 0.25);
  border-color: rgba(72, 187, 120, 0.35);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
}

/* Botones reutilizables fuera del modal (fondo claro) */
.signature-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;

  /* importante para que NO desaparezcan en fondo claro */
  color: #111;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.12);

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.signature-actions .btn:active {
  transform: translateY(1px);
}

.signature-actions .btn--ghost {
  background: rgba(0, 0, 0, 0.04);
}

.signature-actions .btn--primary {
  background: rgba(72, 187, 120, 0.18);
  border-color: rgba(72, 187, 120, 0.45);
}

/* Layout de acciones */
.signature-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.signature-actions .btn {
  flex: 1;
  min-width: 160px;
}