.certificate-form-wrapper {
    text-align: center;
}


/* Make one grid for the whole form section */
.ktc-default-section {
    display: grid;
    grid-template-columns: max-content 1fr; /* labels | controls */
    column-gap: 16px;
    row-gap: 10px;
    max-width: 95%;
  }
  
  /* Let each row's children participate directly in the parent grid */
  .ktc-default-section .form-field {
    display: contents; /* keeps DOM but removes extra wrapper box */
  }
  
  /* Column placement */
  .ktc-default-section .form-field > label { 
    grid-column: 1; 
    align-self: center;
    white-space: nowrap;
    font-weight: bold;
  }
  
  .ktc-default-section .form-field > .editing-form-control-nested-control { 
    grid-column: 2; 
  }
  
  /* <-- THIS is the key: optional explanation text sits under the input, same column */
  .ktc-default-section .form-field > .explanation-text { 
    grid-column: 2;
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.3;
    opacity: .9;           /* optional */
  }
  
  /* Make all controls the same width */
  .ktc-default-section input[type="text"],
  .ktc-default-section input[type="email"],
  .ktc-default-section input[type="tel"],
  .ktc-default-section input[type="date"],
  .ktc-default-section select,
  .ktc-default-section textarea {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding: 6px 8px;
    font: inherit;
  }
  
  /* Mobile: stack into one column */
  @media (max-width: 640px) {
    .ktc-default-section { grid-template-columns: 1fr; }
    .ktc-default-section .form-field > label,
    .ktc-default-section .form-field > .editing-form-control-nested-control,
    .ktc-default-section .form-field > .explanation-text {
      grid-column: 1;
    }
  }
  
  
  
  .required-field::after {
    content: "*";
    /* If there are both classes added dynamically, show the * and then the ? */
  }
  .required-field.form-field-has-tooltip::after {
    content: "* \f059";
    font-family: "FontAwesome";
    font-weight: normal;
    color: #bfc3c7;
    margin-left: 4px;
  }
  .form-field-has-tooltip::after {
    content: "\f059";
    font-family: "FontAwesome";
    font-weight: normal;
    color: #bfc3c7;
    margin-left: 4px;
  }
  
.field-validation-error {
    color: red;
}