.pdi-form {
  max-width: 30rem;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}
.pdi-form .form-group > input,.pdi-form .form-group > textarea {
  width: 100%;
  min-height: 56px;
  padding-inline: 1rem;
  padding-block: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 2px;
}
.pdi-form h1{
  padding-block: 1.5rem;
}
.pdi-form .form-group > textarea{
  min-height: 7.5rem;
  width: 100%;
}
.pdi-form button {
  width: 100%;
  padding-inline: 1.5rem;
  background: #6baa24;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  min-height: 2.5rem;
  font-size: 1rem;
}
.pdi-form .pdi-response {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.pdi-response.success { color: green; }
.pdi-response.error   { color: red; }

.pdi-form .form-group label:not([for="pdi-accept-policy"]) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; /* added line */
  border: 0;
}
.pdi-form .form-group label[for="pdi-accept-policy"] {
  margin-bottom: 1rem;
}
/* Checkbox */
/* Checkbox personalizado */
.pdi-form .form-group input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s;
}

/* Estado checked */
.pdi-form .form-group input[type="checkbox"]:checked {
  background-color: #6baa24;
  border-color: #6baa24;
}

/* Checkmark usando pseudo-elemento */
.pdi-form .form-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  width: 4px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hover sobre checkbox */
.pdi-form .form-group input[type="checkbox"]:hover {
  border-color: #6baa24;
}

/* Mensaje de error tras checkbox */
.pdi-form .form-group .error-checkbox {
  display: block;
  color: #d93025;
  font-size: 0.85rem;
  margin-top: 4px;
}