.dl-agreement-wrap {
  max-width: 900px;
  margin: 40px auto;
  font-family: inherit;
  color: #111827;
}

.dl-plan-card,
.dl-agreement-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(17, 24, 39, .06);
}

.dl-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  margin-bottom: 18px;
}

.dl-plan-card h2,
.dl-signature-heading h3,
.dl-agreement-copy h2 {
  margin: 4px 0 0;
}

.dl-plan-price {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
}

.dl-eyebrow {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #6b7280;
}

.dl-agreement-form {
  padding: 28px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.dl-field-full {
  grid-column: 1 / -1;
}

.dl-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
}

.dl-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.dl-field input:focus,
.dl-canvas-wrap:focus-within {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.dl-agreement-copy {
  margin: 8px 0 22px;
}

.dl-agreement-scroll {
  margin-top: 12px;
  max-height: 440px;
  overflow: auto;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 20px;
  background: #f9fafb;
  line-height: 1.65;
}

.dl-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0 28px;
  font-weight: 600;
}

.dl-checkbox input {
  margin-top: 4px;
}

.dl-signature-section {
  margin: 0 0 24px;
}

.dl-signature-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.dl-clear-signature {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}

.dl-canvas-wrap {
  border: 1px solid #9ca3af;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.dl-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 220px;
  touch-action: none;
  cursor: crosshair;
}

.dl-help,
.dl-form-message {
  font-size: 14px;
  color: #6b7280;
}

.dl-form-message {
  color: #b91c1c;
  font-weight: 600;
}

.dl-submit {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 12px 18px;
}

.dl-submit:hover {
  opacity: .92;
}

.dl-agreement-error {
  max-width: 800px;
  margin: 30px auto;
  padding: 16px 18px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
}

@media (max-width: 700px) {
  .dl-agreement-wrap {
    margin: 20px auto;
  }

  .dl-agreement-form {
    padding: 20px;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .dl-field-full {
    grid-column: auto;
  }

  .dl-plan-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .dl-canvas-wrap canvas {
    height: 180px;
  }
}
