/* DHBW survey theme. Fruity TwentyThree supplies the layout and question types. */
:root {
  --dhbw-red: #e2001a;
  --dhbw-red-hover: #b90016;
  --dhbw-red-pressed: #8e1016;
  --dhbw-ink: #333333;
  --dhbw-muted: #5c6971;
  --dhbw-line: #e6e6e6;
  --dhbw-canvas: #ffffff;
  --bs-primary: var(--dhbw-red);
  --bs-primary-rgb: 226, 0, 26;
  --bs-link-color: var(--dhbw-red-hover);
  --bs-link-hover-color: var(--dhbw-red-pressed);
  --bs-body-color: var(--dhbw-ink);
}

body,
body.font-ibm-sans {
  background: var(--dhbw-canvas) !important;
  color: var(--dhbw-ink) !important;
  font-family: Arial, Helvetica, sans-serif;
}

#survey-nav.navbar {
  background: #fff;
  border: 0;
  box-shadow: 0 1px 1px #ddd;
  min-height: 80px;
}

#survey-nav .logo-container {
  margin: 0;
}

#survey-nav .logo-container > img {
  width: auto;
  max-width: min(180px, 54vw);
  max-height: 76px;
  object-fit: contain;
  padding: 7px 0;
}

#survey-nav .navbar-toggler {
  color: var(--dhbw-ink);
}

#survey-nav .navbar-toggler:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--dhbw-red);
  outline-offset: 3px;
}

.question-container {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--dhbw-line);
  border-radius: 0;
  box-shadow: none;
  padding: clamp(20px, 3vw, 36px) 0;
}

.question-container .ls-label-question,
.form-heading {
  color: var(--dhbw-ink);
}

.group-container .group-title,
.form-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: normal;
}

.group-container .group-title {
  color: var(--dhbw-red);
}

.group-container .group-title::after,
.form-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  margin-top: 18px;
  background: var(--dhbw-muted);
}

.question-container .question-help-container,
.question-container .help-block,
.group-container .group-description {
  color: var(--dhbw-muted);
}

.btn-primary,
.btn-check + .btn-primary {
  background: var(--dhbw-red);
  border-color: var(--dhbw-red);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-check:checked + .btn-primary,
.btn-check:focus + .btn-primary {
  background: var(--dhbw-red-hover);
  border-color: var(--dhbw-red-hover);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(226, 0, 26, .2);
}

.btn-primary:disabled,
.btn-primary.disabled {
  background: #d8dde0;
  border-color: #d8dde0;
  color: #4d5a62;
  box-shadow: none;
}

.progress-bar,
.top-container .progress-bar {
  background: var(--dhbw-red);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--dhbw-red);
  box-shadow: 0 0 0 3px rgba(226, 0, 26, .18);
}

.radio-item input[type=radio]:checked + label::before,
.checkbox-item input[type=checkbox]:checked + label::before {
  border-color: var(--dhbw-red);
}

.radio-item input[type=radio]:checked + label::after {
  background-color: var(--dhbw-red);
}

.checkbox-item input[type=checkbox]:checked + label::after {
  color: var(--dhbw-red);
}

.radio-item input[type=radio]:checked + label,
.checkbox-item input[type=checkbox]:checked + label {
  color: var(--dhbw-red-hover);
}

body a:not(.btn) {
  color: var(--dhbw-red-hover);
}

body a:not(.btn):hover {
  color: var(--dhbw-red-pressed);
}

.dhbw-survey-list-brand {
  display: flex;
  justify-content: center;
  padding: 30px 16px 16px;
}

.dhbw-survey-list-brand img {
  display: block;
  width: min(360px, 82vw);
  height: auto;
}

@media (min-width: 680px) {
  #survey-nav.navbar {
    min-height: 110px;
  }
}

@media (max-width: 575px) {
  #survey-nav .logo-container > img {
    max-width: min(130px, 58vw);
    max-height: 55px;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  .question-container {
    box-shadow: none;
  }
}
