/* Inquiry palette, matching the public website. Presentation only. */
:root {
  --wp-red: #b5121b;
  --wp-black: #111111;
  --wp-white: #ffffff;
  --wp-yellow: #ffd83d;
  --wp-pale-yellow: #fff6cf;
  --wp-muted: #333333;
  --bs-primary: #b5121b;
  --bs-primary-rgb: 181, 18, 27;
  --bs-body-color: #111111;
  --bs-body-bg: #ffffff;
  --bs-link-color: #b5121b;
}
body, .outerframe, #outerframeContainer, .survey-container,
.question-container, .group-container, .well {
  background-color: #ffffff;
  color: #111111;
}
body a, .text-primary { color: #b5121b; }
body a:hover, body a:focus { color: #8b0e15; }
h1, h2, h3, h4, .survey-name, .group-title, .question-title-container,
.question-text, .ls-label-question, .control-label, label { color: #111111; }
.text-muted, .help-block, .question-help-container { color: #333333; }
.navbar-default, .navbar, .alert-info, .alert-warning {
  background-color: #fff6cf;
  border-color: #ffd83d;
  color: #111111;
}
.navbar-default .navbar-brand, .navbar-default .navbar-nav > li > a { color: #111111; }
.btn-primary, .btn-primary:active, .btn-primary.active,
.btn-success, .btn-success:active, #ls-button-submit {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  --bs-btn-bg: #111111;
  --bs-btn-border-color: #111111;
  --bs-btn-color: #ffffff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active:focus,
.btn-success:hover, .btn-success:focus,
#ls-button-submit:hover, #ls-button-submit:focus {
  background: #b5121b;
  border-color: #b5121b;
  color: #ffffff;
}
.btn-default, .btn-outline-secondary, #ls-button-previous {
  background: #ffffff;
  border-color: #111111;
  color: #111111;
}
.btn-default:hover, .btn-outline-secondary:hover, #ls-button-previous:hover {
  background: #fff6cf;
  border-color: #111111;
  color: #111111;
}
.progress { background-color: #fff6cf; }
.progress-bar, .progress-bar-success { background-color: #b5121b; color: #ffffff; }
.form-control { background-color: #ffffff; color: #111111; border-color: #999999; }
.form-control:focus {
  border-color: #b5121b;
  box-shadow: 0 0 0 3px rgba(181, 18, 27, .18);
}
input[type="checkbox"], input[type="radio"] { accent-color: #b5121b; }
.checkbox-item input[type="checkbox"]:checked + label::after,
.checkbox input[type="checkbox"]:checked + label::after { color: #b5121b; }
.radio-item input[type="radio"]:checked + label::after,
.radio input[type="radio"]:checked + label::after { background-color: #b5121b; }
.ls-question-mandatory, .asterisk, .text-danger, .has-error .help-block { color: #b5121b; }
.alert-danger { background-color: #ffffff; border-color: #b5121b; color: #b5121b; }
/* Override inherited Fruity specificity while retaining accessible contrast. */
body.water_protectors { color: #111111 !important; background-color: #ffffff !important; }
.water_protectors .text-primary { color: #b5121b !important; }
.water_protectors .survey-welcome.text-primary,
.water_protectors .survey-description.text-primary,
.water_protectors .survey-description,
.water_protectors .question-help-container { color: #111111 !important; }
.water_protectors .progress { background-color: #fff6cf !important; }
.water_protectors .progress-bar { background-color: #b5121b !important; color: #ffffff !important; }
.water_protectors .navbar { background-color: #fff6cf !important; border-color: #ffd83d !important; }
.water_protectors a { color: #b5121b; }
.water_protectors .btn-primary,
.water_protectors #ls-button-submit { background-color: #111111 !important; border-color: #111111 !important; color: #ffffff !important; }
.water_protectors .btn-primary:hover,
.water_protectors #ls-button-submit:hover { background-color: #b5121b !important; border-color: #b5121b !important; }

/* Keep answer selection visible after hover and keyboard focus move away. */
.water_protectors .ls-answers input[type="radio"]:checked + label,
.water_protectors .ls-answers input[type="checkbox"]:checked + label,
.water_protectors .ls-answers .btn-check:checked + .btn,
.water_protectors .ls-answers .answer-item.btn.active,
.water_protectors .ls-answers .answer-item.btn[aria-pressed="true"] {
  background-color: #b5121b !important;
  border-color: #b5121b !important;
  color: #ffffff !important;
  --bs-btn-active-bg: #b5121b;
  --bs-btn-active-border-color: #b5121b;
  --bs-btn-active-color: #ffffff;
}
.water_protectors .ls-answers input:checked + label .ls-icon {
  color: #ffffff !important;
}
.water_protectors .ls-answers input:focus-visible + label {
  outline: 3px solid #111111;
  outline-offset: 3px;
}
.water_protectors .ls-answers td:has(input[type="radio"]:checked),
.water_protectors .ls-answers td:has(input[type="checkbox"]:checked) {
  background-color: #b5121b !important;
  color: #ffffff !important;
}
.water_protectors .ls-answers td:has(input:checked) input {
  accent-color: #ffffff;
}
