/* remove standard-styles */
input {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  font-size: 1em;
  width: 100%
}

/* graceful degradation for ie8 */
input[type='checkbox'],
input[type='radio'] {
  background: transparent;
  border: none;
  float: left;
  margin-right: .75em;
  width: auto;
}

input[type='checkbox']:checked,
input[type='checkbox']:not(:checked),
input[type='radio']:checked,
input[type='radio']:not(:checked) {
  background: transparent;
  margin: 0;
  padding: 0;
  position: relative;
  visibility: hidden;
}

input[type='checkbox'] + label,
input[type='radio'] + label {
  cursor: pointer;
  -webkit-print-color-adjust: exact; /* For WebKit-based browsers */
  -moz-print-color-adjust: exact; /* For Firefox */
  print-color-adjust: exact; /* Standard */
}

input[type='checkbox']:checked + label::before,
input[type='checkbox']:not(:checked) + label::before,
input[type='radio']:checked + label::before,
input[type='radio']:not(:checked) + label::before {
  background: white;
  border: 1px solid #bbb;
  box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, .1);
  content: ' ';
  display: inline-block;
  height: 17px;
  margin-right: 1em;
  position: relative;
  top: 4px;
  width: 17px;
}

input[type=radio]:checked + label::before,
input[type=radio]:not(:checked) + label::before {
  border-radius: 30px;
}

input[type='checkbox']:hover + label::before,
input[type='radio']:hover + label::before {
  background: #ddd;
  box-shadow: inset 0 0 0 2px white;
}

input[type='checkbox']:checked + label::before,
input[type='radio']:checked + label::before {
  background: black;
  box-shadow: inset 0 0 0 2px white;
}

.form-required:after {
  display: none !important;
}

dl {
  border: 1px solid #ededed;
  display: grid;
  grid-auto-flow: column;
  grid-auto-rows: 1fr;
  grid-template-columns: 220px auto;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

dt {
  background-color: #ededed;
  font-weight: bold;
  grid-column: 1;
  padding-left: 15px;
  vertical-align: middle;
  width: 220px;
}

dt::after {
  content: ": ";
}

dt, dd {
  line-height: 1.25;
  margin: 0;
  text-align: justify;
  vertical-align: middle;
}

.marketing-description, .marketing-description * {
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  line-height: 1.2;
}

/* General styles for checkboxes and radio buttons */
input[type="checkbox"],
input[type="radio"] {
  /* Custom styles (e.g., size, border) */
  width: 20px;
  height: 20px;
  margin: 10px;
  appearance: none; /* Remove default styling */
  border-radius: 3px; /* For checkboxes */
  position: relative; /* Position for custom styles */
  cursor: pointer;
}

/* Checked state styles */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  -webkit-print-color-adjust: exact; /* For WebKit-based browsers */
  -moz-print-color-adjust: exact; /* For Firefox */
  print-color-adjust: exact; /* Standard */
}

/* Print styles with color adjustment */
@media print {
  input[type="checkbox"],
  input[type="radio"] {
    -webkit-print-color-adjust: exact; /* For WebKit-based browsers */
    -moz-print-color-adjust: exact; /* For Firefox */
    print-color-adjust: exact; /* Standard */
    border: 2px solid #000; /* Solid border for printing */
    background-color: transparent; /* Transparent background */
  }

  input[type="checkbox"]:checked,
  input[type="radio"]:checked {
    background-color: #000; /* Black background when checked */
    border-color: #000; /* Black border */
  }
}
