.webform-submission-labchart-lightning-demo-form {
    background-color: white;
    padding: 1em 2em 1em 2em;
    margin-bottom: 0;
    border-radius: 20px;
    box-shadow: -4px -8px 12px rgb(0 0 0 / 2%), 4px -8px 12px rgb(0 0 0 / 2%);
    position: relative;
}

.webform-submission-labchart-lightning-demo-form div[data-drupal-messages] {
   padding: 0; 
}

.webform-shortcode-wrapper.no-shadow .webform-submission-labchart-lightning-demo-form {
    box-shadow: none;
}

.webform-submission-labchart-lightning-demo-form {
   padding: 2em 3em;
}

.webform-submission-labchart-lightning-demo-form h2 {
  font-size: 2.25em;
  margin-bottom: 0.75em;
  text-align: center;
}

.webform-submission-labchart-lightning-demo-form fieldset.form-item {
  position: relative;
  border-width: 2px;
  border-style: solid;
  border-color: rgb(244, 244, 244);
  border-image: initial;
  border-radius: 10px;
  padding: 1.25em;
  margin-bottom: 1em;
}

.webform-submission-labchart-lightning-demo-form fieldset.form-item {
  padding: 0.5em 1em;
}

.webform-submission-labchart-lightning-demo-form legend {
  position: absolute;
  left: -25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgb(255, 255, 255);
  padding: 0px;
  width: 50px;
  height: 50px;
  padding: 0.5em;
}

.webform-submission-labchart-lightning-demo-form fieldset[data-drupal-selector="edit-personal-details"] legend {
  background-image: url(/themes/adi/images/icons/form-fieldset-person.jpg); 
  background-size: 34px;
  background-position: center center;
  background-repeat: no-repeat;
}

.webform-submission-labchart-lightning-demo-form fieldset[data-drupal-selector="edit-institutional-details"] legend {
  background-image: url(/themes/adi/images/icons/form-fieldset-company.jpg); 
  background-size: 34px;
  background-position: center center;
  background-repeat: no-repeat;
}

.webform-submission-labchart-lightning-demo-form fieldset[data-drupal-selector="edit-other-details"] legend {
  display: none; 
}

.webform-submission-labchart-lightning-demo-form legend .fieldset-legend {
  display: none;
}

.webform-submission-labchart-lightning-demo-form .form-item {
  grid-column: span 1/span 1 !important;
  padding: 1em;
  margin: 0;
}

.webform-submission-labchart-lightning-demo-form .form-item {
 padding: 0.25em 1em; 
}

.webform-submission-labchart-lightning-demo-form .form-item.form-type-processed-text {
  padding: 0 1em;
}

.webform-submission-labchart-lightning-demo-form .button.form-submit {
  background-color: #ed3d80;
  border-radius: 3px;
  padding: 1em 3em;
  color: #fff;
  border: 0;
  text-align: center;
  margin: 2em auto 0;
}

.webform-submission-labchart-lightning-demo-form .form-type-select label {
  padding-bottom: 0;
}

.webform-submission-labchart-lightning-demo-form fieldset.form-item.email-consent--wrapper,
.webform-submission-labchart-lightning-demo-form fieldset.form-item.email-consent--wrapper {
  border: 0;
  padding: 0;
}

.webform-submission-labchart-lightning-demo-form fieldset.form-item.email-consent--wrapper legend { 
  display: none;
}

.webform-submission-labchart-lightning-demo-form fieldset.form-item.email-consent--wrapper .fieldset-wrapper {
  display: block;
}

.webform-submission-labchart-lightning-demo-form .form-item.form-type-checkbox {
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
}

.webform-submission-labchart-lightning-demo-form .form-item.form-type-checkbox input {
  margin-top: 5px;
}

#drupal-modal h2 {
display: none;
}

#drupal-modal .webform-submission-labchart-lightning-demo-form {
box-shadow: none;
padding: 0 1em 0 1em;
}

#drupal-modal .webform-submission-labchart-lightning-demo-form .button.form-submit {
margin: 1em auto 0;
}

@media only screen and (min-width: 700px) {
  .webform-submission-labchart-lightning-demo-form {
    padding: 2em 4em 2em 4em;
  }
  
  .webform-submission-labchart-lightning-demo-form fieldset.form-item .fieldset-wrapper {
     display: grid;
     grid-template-columns: 1fr 1fr;
  }
}