/**
 * Webform Navigator Styles
 */

/* Style for the required fields display box */
.webform-navigator-required-fields {
  background-color: var(--ed-color-warning-tint);
  border-left: 4px solid var(--ed-color-warning-accent);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--ed-radius-sm);
}

.webform-navigator-required-fields summary {
  font-weight: bold;
  color: var(--ed-color-text);
  cursor: pointer;
}

.webform-navigator-required-fields ul {
  margin: 10px 0 0 20px;
}

.webform-navigator-required-fields li {
  margin: 5px 0;
}

/* Make progress bar items clickable */
.webform-progress-tracker li.progress-step {
  cursor: pointer;
}

/* Remove all background/border highlighting from the li element */
.webform-progress-tracker li.progress-step,
.webform-progress-tracker li.progress-step:hover {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Only highlight the ::before pseudo-element of the progress marker circle */
.webform-progress-tracker li.progress-step:hover .progress-marker::before {
  background-color: var(--ed-color-brand) !important;
  border-color: var(--ed-color-brand-dark) !important;
  color: var(--ed-color-text-on-brand) !important;
}

/* Underline the progress title on hover */
.webform-progress-tracker li.progress-step:hover .progress-title {
  text-decoration: underline;
}

/* Style for field navigation links */
.webform-navigator-field-link {
  color: var(--ed-color-brand);
  text-decoration: underline;
  cursor: pointer;
}

.webform-navigator-field-link:hover {
  color: var(--ed-color-brand-dark);
}

/* Preview summary section styles */
.webform-navigator-page-summary {
  background-color: var(--ed-color-surface-raised);
  border: 1px solid var(--ed-color-border-subtle);
  border-radius: var(--ed-radius);
  padding: 15px;
  margin: 15px 0;
}

.webform-navigator-page-summary summary {
  font-weight: bold;
  font-size: 1.05em;
  color: var(--ed-color-text);
  cursor: pointer;
  padding: 10px;
  margin: -10px;
  outline: none;
}

.webform-navigator-page-summary summary:hover {
  background-color: var(--ed-color-surface-sunken);
  border-radius: var(--ed-radius-sm);
}

.webform-navigator-page-section {
  margin: 15px 0;
  padding: 10px;
  border-left: 3px solid var(--ed-color-border-subtle);
  padding-left: 15px;
}

.webform-navigator-page-section h4 {
  margin: 0 0 10px;
  color: var(--ed-color-heading);
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.webform-navigator-page-section .item-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.webform-navigator-page-section .item-list li {
  margin: 8px 0;
  padding: 8px;
  background-color: var(--ed-color-surface);
  border-radius: var(--ed-radius-sm);
  border-left: 2px solid var(--ed-color-border-subtle);
}