/* Hide the pagination links in a multi-step webform */
.webform-progress,
.webform-progress-bar {
  display: none;
}

.progress-step.is-active .progress-marker::before {
  background: #cf1020;
}

.webform-submission-form .fieldset-wrapper {
  display: block !important;
}

.webform-submission-form .js-form-item.question-one {
    margin-bottom: 0;
}

.webform-type-radios legend {
  display: block;
  float: none;
  font-size: 2rem;
  padding-bottom: 2rem;
}

.webform-options-display-two-columns,
#edit-container-view-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#edit-container-view-examples > details {
  border: 0;
  flex: 1 1 calc(50% - 1rem); /* Two columns with equal width minus the gap */
  box-sizing: border-box; /* Ensures padding and border are included in the width calculation */
}

@media (max-width: 768px) {
  #edit-container-view-examples > details {
    flex: 1 1 100%; /* Full width for mobile devices */
  }
}

#edit-container-view-examples > details .close-link {
  color: #cf1020;
}

.webform-options-display-buttons {
  display: flex !important;
  padding: 0;
  gap: 1rem;
}

.webform-options-display-buttons-wrapper .form-check {
  border: 1px solid #ebebeb;
  box-shadow: 0 0 27px 0 rgba(24,24,24,.07);
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0;
}

.webform-options-display-buttons-wrapper .form-check label {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 12rem;
  padding: 2rem;
  text-align: center;
}

/* Style for the radio input when it is checked */
input[type="radio"]:checked + label {
  background-color: #783cbd; 
  color: #fff;
}

/* Add the green circle */
input[type="radio"]:checked + label::before {
  content: "";
  position: absolute;
  top: -2rem;
  width: 4rem;
  height: 4rem;
  border: 1px solid #783cbd;
  border-radius: 50%;
  background-color: #fff;
}

/* Add the check icon */
input[type="radio"]:checked + label::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  top: -1rem;
  color: #783cbd;
  font-size: 2rem;
}

.form-type-processed-text.result {
  border: 1px solid #ebebeb;
  border-top: 2px solid #cf1020;
  box-shadow: 0 0 27px 0 rgba(24,24,24,.07);
  display: block;
  font-size: 2rem;
  margin-bottom: 4rem !important;
  padding: 0 4rem 4rem 0;
}

.form-type-processed-text.result h3 {
  display: inline-flex;
  font-weight: bold;
  background-color: #cf1020;
  color: #fff;
  padding: 16px 32px;
  margin-top: 0;
  margin-bottom: 4rem;
} 


.form-type-processed-text.result ul {
  padding: 0 0 0 4rem;
}
.form-type-processed-text.result p {
  list-style-type: none;
  padding: 0 0 0 4rem;
}

.form-type-processed-text.result ul li {
  margin-bottom: 1rem !important;
}

#edit-container-view-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Adjust the gap as needed */
  margin-bottom: 4rem;
}

#edit-container-view-examples > div {
  flex: 1 1 calc(50% - 1rem); /* Two columns with equal width minus the gap */
  box-sizing: border-box; /* Ensures padding and border are included in the width calculation */
}

@media (max-width: 768px) {
  #edit-container-view-examples > div {
    flex: 1 1 100%; /* Full width for mobile devices */
  }
}

.form-actions {
 margin-bottom: 4rem;
}

.form-actions button {
  background-color: #cf1020;
  border: 1px solid #cf1020;
}

.form-actions button:hover,
.form-actions button:active,
.form-actions button:focus
{
  background-color: #783cbd;
  border: 1px solid #783cbd;
}

.view-all-paths {
  font-weight: bold;
  color: #783cbd;
}

.view-all-paths::after {
  content: "\f35d"; /* Unicode for FontAwesome external link icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 0.5rem; /* Space between text and icon */
  font-size: 0.75em; /* Adjust icon size as needed */
}

#edit-top-actions {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

#edit-top-actions > div,
#edit-top-actions > fieldset {
  flex: 1 1;
}

#edit-top-actions a,
#edit-top-actions button {
  display: block;
  width: 100%;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0;
  text-transform: uppercase;
}

#edit-top-actions > fieldset a {
  background-color: #783cbd;
  color: #fff;
}

#edit-top-actions button {
  background-color: #cf1020;
  border: 1px solid #cf1020;
}


/* Reset default list padding */
.result ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1em;
}

/* Styling for unordered lists */
.result ul {
  list-style-type: disc; /* Bullet points */
}

.result ul ul {
  list-style-type: circle; /* Nested bullet points */
}

.result ul ul ul {
  list-style-type: square; /* Deeply nested bullet points */
}

/* Styling for ordered lists */
.result ol {
  list-style-type: decimal; /* Numbered */
}

.result ol ol {
  list-style-type: lower-alpha; /* Nested numbers: a, b, c */
}

.result ol ol ol {
  list-style-type: lower-roman; /* Deeply nested numbers: i, ii, iii */
}

/* Shared styling for both ordered and unordered lists */
.result ul, ol {
  line-height: 1.6; /* Increase line spacing */
  margin-left: 1em; /* Space between list and surrounding content */
}

.result li {
  margin-bottom: 0.5em; /* Space between list items */
}
