.gsd-wrap {
  --gsd-border: #d7dde8;
  --gsd-text: #172033;
  --gsd-muted: #5b6577;
  --gsd-accent: #166534;
  color: var(--gsd-text);
  max-width: 960px;
  margin: 0 auto;
}

.gsd-form {
  display: grid;
  gap: 24px;
}

.gsd-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gsd-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.gsd-form input[type="text"],
.gsd-form input[type="email"],
.gsd-form input[type="tel"],
.gsd-form input[type="date"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--gsd-border);
  border-radius: 6px;
  padding: 9px 11px;
  font: inherit;
}

.gsd-document {
  border: 1px solid var(--gsd-border);
  border-radius: 8px;
  padding: 22px;
  background: #fff;
}

.gsd-document h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.gsd-document-body {
  color: var(--gsd-muted);
}

.gsd-document-body p {
  margin: 0 0 14px;
}

.gsd-document-action {
  margin: 0 0 18px;
}

.gsd-read-document {
  align-items: center;
  background: #0f172a;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

.gsd-read-document:hover,
.gsd-read-document:focus {
  color: #fff;
  background: #1f2937;
}

.gsd-normative-box {
  border: 1px solid var(--gsd-border);
  border-radius: 6px;
  color: var(--gsd-muted);
  max-height: 360px;
  overflow: auto;
  padding: 16px;
  background: #fbfcff;
}

.gsd-normative-box p {
  margin: 0 0 12px;
}

.gsd-live-value {
  border-bottom: 1px solid #9aa6b7;
  color: var(--gsd-text);
  font-weight: 700;
  padding: 0 2px;
}

.gsd-consent {
  align-items: start;
  display: flex !important;
  gap: 10px !important;
  margin: 18px 0;
}

.gsd-consent input {
  margin-top: 5px;
}

.gsd-signature-field {
  display: grid;
  gap: 10px;
}

.gsd-signature-field canvas {
  width: 100%;
  height: 220px;
  border: 1px solid var(--gsd-border);
  border-radius: 6px;
  background:
    linear-gradient(transparent calc(100% - 48px), #eef2f7 calc(100% - 47px), transparent calc(100% - 46px)),
    #fbfcff;
  touch-action: none;
}

.gsd-clear-signature,
.gsd-submit {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.gsd-clear-signature {
  justify-self: start;
  background: #edf2f7;
  color: #1f2937;
  padding: 8px 12px;
}

.gsd-submit {
  justify-self: start;
  background: var(--gsd-accent);
  color: #fff;
  min-height: 46px;
  padding: 11px 18px;
}

.gsd-notice {
  border-radius: 6px;
  margin: 0 0 20px;
  padding: 12px 14px;
  font-weight: 700;
}

.gsd-notice-success {
  background: #dcfce7;
  color: #14532d;
}

.gsd-notice-error {
  background: #fee2e2;
  color: #7f1d1d;
}

@media (max-width: 720px) {
  .gsd-grid {
    grid-template-columns: 1fr;
  }

  .gsd-document {
    padding: 16px;
  }

  .gsd-submit {
    width: 100%;
  }
}
