:root {
  --hbt-blue: #0097d6;
  --hbt-blue-hover: #006b97;
  --hbt-background: #f1f1f1;
  --hbt-background-hover: #e4ecf0;
  --hbt-text: #3c3c3c;
  --hbt-link-text: #0097d6;
  --hbt-link-text-hover: #f18700;
  --hbt-font: "Montserrat";
}

#pfinder-title {
  display: flex;
  align-items: flex-end;
  padding-top: 28px;
}

#pfinder-product {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#pfinder-product::after {
  content: "";
  width: calc(94% / 3);
}

#pfinder-answer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#pfinder-answer::after {
  content: "";
  width: calc(94% / 3);
}

#pfinder-main {
  position: relative;
}

body {
  -webkit-font-smoothing: antialiased;
  margin: 0px auto;
  font-family: var(--hbt-font), sans-serif;
  max-width: 1200px;
  color: #3c3c3c;
}

button {
  line-height: 1.5;
}

button:not(:disabled) {
  cursor: pointer;
}

.error-container {
  border: 2px solid var(--hbt-blue);
  padding: 20px;
  display: flex;
  margin: auto;
  justify-content: center;
  max-width: 30%;
  align-items: center;
}

.error-icon-container {
  align-content: center;
  color: red;
  min-width: 48px;
  min-height: 48px;
  margin-right: 16px;
}

.error-text-container p {
  margin: 0;
}

.hidden {
  display: none;
}

h4.question-text {
  box-sizing: border-box;
  font-weight: 400;
  margin-block-end: 1rem;
  margin-block-start: 0.5rem;
  text-align: start;
  -webkit-font-smoothing: antialiased;
  font-size: 1.5rem;
  color: var(--hbt-text);
  margin-bottom: 1.5rem;
  line-height: 2rem;
}

.question-text a {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--hbt-link-text);
  transition: color 0.5s;
}

.question-text a:hover {
  color: var(--hbt-link-text-hover);
}

a.product-button {
  display: grid;
  background: var(--hbt-background);
  text-decoration: none;
  width: calc(94% / 3);
  margin-bottom: 3%;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

a.product-button:hover {
  background: var(--hbt-background-hover);
}

div.product-image-wrapper {
  height: 200px;
  display: flex;
}

img.product-image {
  display: block;
  max-height: 100%;
  margin: auto;
  padding: 30px;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0px;
  box-shadow: none;
  box-sizing: border-box;
}

.product-text {
  padding: 0px 0px 10px 15px;
  margin-block-start: 0;
  color: #3c3c3c;
  margin-bottom: 0px;
}

button.answer-button {
  display: flex;
  background: var(--hbt-blue);
  color: white;
  border: 0px transparent;
  border-radius: 0px;
  width: calc(94% / 3);
  min-height: 80px;
  padding: 2px;
  margin-bottom: 3%;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: wrap;
  align-items: center;
  transition: all 0.3s;
}

.answer-button-icon-container {
  display: flex;
  background: white;
  width: 80px;
  min-width: 80px;
  height: 100%;
  justify-content: center;
  align-items: center;
}

svg.answer-button-icon {
  fill: var(--hbt-blue);
  pointer-events: none;
  width: 100%;
}

.answer-button:hover svg {
  fill: var(--hbt-blue-hover);
}

.answer-button-text {
  padding: 8px;
  margin: 0px;
}

button.answer-button:hover {
  background: var(--hbt-blue-hover);
  color: white;
}

/* consent css */
.consent-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60%;
  margin: auto;
  padding: 30px;
  border: 2px solid var(--hbt-blue);
}

p.consent-text {
  align-self: flex-start;
  font-weight: 500;
  font-size: 0.875rem;
}

.consent-checkbox {
  vertical-align: bottom;
  margin-right: 10px;
}

button.consent-button {
  min-width: 80px;
  background: var(--hbt-blue);
  color: white;
  border: 1px solid;
  border-radius: 0px;
  border-color: transparent;
  height: 50px;
  margin-bottom: 36px;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: wrap;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  text-align: center;
}

button.consent-button:hover {
  background: var(--hbt-blue-hover);
}

.consent-warning {
  color: red;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
}

.consent-checkbox-label, .consent-checkbox {
  cursor: pointer;
}

.consent-checkbox-container {
  margin-top: 12px;
  display:flex;
}

/* navigation css */
button.back-button {
  margin-right: 10px;
  margin-left: auto;
}

button.nav-button {
  background: white;
  border-width: 2px;
  border-radius: 0px;
  border-style: solid;
  color: var(--hbt-blue);
  border-color: var(--hbt-blue);
  margin-bottom: 24px;
  padding: 5px 0px;
  width: 100px;
  height: 50px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

button.nav-button:hover {
  background: var(--hbt-blue);
  color: white;
}

button.nav-button:disabled {
  opacity: 50%;
}

button.nav-button:disabled:hover {
  background: white;
  color: var(--hbt-blue);
}

/* calculator css */
.calculator-container {
  display: flex;
  justify-content: space-between;
}

.slider-container p {
  color: var(--hbt-text);
  margin-block-start: 0;
  margin-bottom: 0px;
  font-weight: 400;
  font-size: 0.875rem;
}

.help-text-container {
  width: 45%;
  display: flex;
  align-items: stretch;
  flex-direction: column;
  margin-bottom: 36px;
}

.help-text {
  text-align: justify;
  padding-bottom: 20px;
  margin-bottom: 0px;
  box-sizing: border-box;
  margin-block-start: 0;
  line-height: 1.5rem;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--hbt-text);
}

.help-text-title {
  color: var(--hbt-text);
  font-size: 1.5rem;
  margin: 0px;
  font-weight: 400;
  box-sizing: border-box;
}

.help-text-expander {
  padding: 0px 20px 0px 20px;
  transition: max-height 0.75s;
  overflow: hidden;
  background: var(--hbt-background);
}

.help-text-expander.collapsed {
  overflow: hidden;
}

.help-text-title-container {
  padding: 20px;
  display: flex;
  background: var(--hbt-background);
  justify-content: space-between;
  flex-direction: row;
  align-items: center;
}

button.help-text-button {
  display: none;
  background: transparent;
  border-image-width: 0px;
  border-radius: 0px;
  border-color: transparent;
  justify-content: start;
  padding: 0px;
  height: 28px;
  margin: 0px;
  transition: 0.75s;
}

.help-text-button img {
  display: block;
}

button.help-text-button.collapsed {
  transform: rotate(180deg);
}

.sliders-container {
  width: 50%;
}

.slider-container {
  margin-bottom: 36px;
}

.slider-text-container {
  display: flex;
  justify-content: space-between;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  margin: 12px 0 0 0;
  width: 100%;
  height: 15px;
  background: var(--hbt-background);
  outline: none;
  transition: all 0.3s;
}

.slider:hover {
  background: var(--hbt-background-hover);
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--hbt-blue);
  border-radius: 0px;
  cursor: pointer;
}

.slider::-webkit-slider-thumb:hover {
  background: var(--hbt-blue-hover);
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: var(--hbt-blue);
  cursor: pointer;
}

.slider::-moz-range-thumb:hover {
  background: var(--hbt-blue-hover);
}

button.show-products-button {
  background: var(--hbt-blue);
  color: white;
  border: 1px solid;
  border-radius: 0px;
  border-color: transparent;
  height: 50px;
  margin-bottom: 36px;
  text-align: left;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: wrap;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
}

button.show-products-button:hover {
  background: var(--hbt-blue-hover);
}

button.show-products-button:disabled {
  opacity: 50%;
}

/* animation css */
@keyframes slideIn {
  0% {
    left: -500px;
    opacity: 0;
    display: none;
  }
  100% {
    left: 0px;
    opacity: 1;
    display: block;
  }
}

@keyframes slideOut {
  0% {
    left: 0px;
    opacity: 1;
    display: block;
  }
  100% {
    left: 500px;
    opacity: 0;
    display: none;
  }
}

.slideIn {
  animation-name: slideIn;
  animation-timing-function: linear;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

.slideOut {
  animation-name: slideOut;
  animation-timing-function: linear;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

/* viewport css */
@media (max-width: 800px) {
  .calculator-container {
    flex-direction: column-reverse;
  }

  button.help-text-button {
    display: block;
  }

  .sliders-container {
    width: 100%;
  }

  .help-text-container {
    width: 100%;
  }
}

@media (max-width: 750px) {
  h4.question-text {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  .question-text a {
    font-size: 1.25rem;
  }

  a.product-button {
    width: 48.5%;
  }

  button.answer-button {
    width: 48.5%;
  }

  h1.consent-title {
    font-size: 1.5rem;
  }

  p.consent-text, p.consent-warning {
    font-size: 0.8rem;
  }

  label.consent-checkbox-label {
    font-size: 0.875rem;
  }
}

@media (max-width: 550px) {
  h4.question-text {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  .question-text a {
    font-size: 1rem;
  }

  a.product-button {
    margin-bottom: 4%;
    width: 100%;
  }

  button.answer-button {
    margin-bottom: 4%;
    width: 100%;
  }

  h1.consent-title {
    font-size: 1.25rem;
  }

  p.consent-text, p.consent-warning {
    font-size: 0.7rem;
  }

  label.consent-checkbox-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 450px) {
  button.nav-button {
    width: 50%;
  }

  .sliders-container p,
  p.help-text {
    font-size: 13px;
  }

  .slider-text-container {
    flex-direction: column;
  }

  label.consent-checkbox-label {
    font-size: 0.7rem;
  }
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: normal;
  font-display: auto;
  src: url("/pfinder/fonts/Montserrat-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: auto;
  src: url("/pfinder/fonts/Montserrat-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: auto;
  src: url("/pfinder/fonts/Montserrat-SemiBold.woff2") format("woff2");
}
