@font-face {
  font-family: exo;
  src: url('../font/Exo2-VariableFont_wght.ttf');
}

body, input, button, textarea {
  font-family: exo;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number]{
  -moz-appearance: textfield;
}

#summary {
  margin: 10px auto;
  padding: 20px;
  background-color: #f2f2f2;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#submit-button {
  margin-top: 10px;
}

#invalid-sections {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: red;
}

#summary h2 {
  font-size: 14px;
  margin-bottom: 10px;
}

#summary p {
  margin: 10px 0;
}

#summary span {
  font-weight: bold;
}

.accordion {
  --bs-accordion-active-bg: rgb(242, 194, 0);
  --bs-accordion-active-color: black;
  --bs-accordion-inner-border-radius: 5px;
  --bs-accordion-btn-focus-border-color: red;
}

.accordion-item {
  border-top: 2px solid white !important;
}

.accordion-button {
  background: rgb(242, 194, 0);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-right: 40px;
}

.continue-button-wrapper {
  display: flex;
  flex-direction: row;
  align-items: right;
  justify-content: flex-end;
}

.continue-button {
  background-color: rgb(242, 194, 0) !important;
  border: none;
  border-radius: 4px;
 }

.chapter {
  margin-right: 20px;
  color: rgb(101, 101, 101);
  font-size: 17px;
}

.icon {
  margin-right: 20px;
}

span.icon img {
  height: 21px;
}

.chapterName {
  font-weight: regular;
  font-size: 17px;
}

input[type=range].styled-slider {
  -webkit-appearance: none;
}

input[type=range].styled-slider {
  -webkit-appearance: none;
}

/*progress support*/
input[type=range].styled-slider.slider-progress {
  --range: calc(var(--max) - var(--min));
  --ratio: calc((var(--value) - var(--min)) / var(--range));
  --sx: calc(0.5 * 2em + var(--ratio) * (100% - 2em));
}

input[type=range].styled-slider:focus {
  outline: none;
}

/*webkit*/
input[type=range].styled-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.4em;
  height: 1.4em;
  background: radial-gradient(circle at center, #FFFFFF 30%, #F2C200);
  box-shadow: 0 0 2px rgb(242, 194, 0);
  margin-top: calc(max((1em - 1px - 1px) * 0.5,0px) - 2em * 0.5);
}

input[type=range].styled-slider::-webkit-slider-runnable-track {
  height: 0.5em;
  background: #efefef;
  box-shadow: none;
}

input[type=range].styled-slider::-webkit-slider-thumb:hover {
  background: #D9AE00;
}

input[type=range].styled-slider.slider-progress::-webkit-slider-runnable-track {
  background: linear-gradient(#F2C200,#F2C200) 0/var(--sx) 100% no-repeat, #efefef;
}

/*mozilla*/
input[type=range].styled-slider::-moz-range-thumb {
  width: 1.4em;
  height: 1.4em;
  background: radial-gradient(circle at center, #FFFFFF 30%, #F2C200);
  box-shadow: 0 0 2px  rgb(242, 194, 0);
}

input[type=range].styled-slider::-moz-range-track {
  height: max(calc(1em - 1px - 1px),0px);
  border: 1px solid #b2b2b2;
  border-radius: 0.5em;
  background: #efefef;
  box-shadow: none;
}

input[type=range].styled-slider::-moz-range-thumb:hover {
  background: #D9AE00;
}

input[type=range].styled-slider.slider-progress::-moz-range-track {
  background: linear-gradient(#F2C200,#F2C200) 0/var(--sx) 100% no-repeat, #efefef;
}

/*ms*/
input[type=range].styled-slider::-ms-fill-upper {
  background: transparent;
  border-color: transparent;
}

input[type=range].styled-slider::-ms-fill-lower {
  background: transparent;
  border-color: transparent;
}

input[type=range].styled-slider::-ms-thumb {
  width: 1.4em;
  height: 1.4em;
  background: radial-gradient(circle at center, #FFFFFF 30%, #F2C200);
  box-shadow: 0 0 2px rgb(242, 194, 0);
  margin-top: 0;
  box-sizing: border-box;
}

input[type=range].styled-slider::-ms-track {
  height: 0.5em;
  border-radius: 0.5em;
  background: #efefef;
  border: 1px solid #b2b2b2;
  box-shadow: none;
  box-sizing: border-box;
}

input[type=range].styled-slider::-ms-thumb:hover {
  background: #D9AE00;
}

input[type=range].styled-slider.slider-progress::-ms-fill-lower {
  height: max(calc(1em - 1px - 1px),0px);
  border-radius: 0.5em 0 0 0.5em;
  margin: -1px 0 -1px -1px;
  background: #F2C200;
  border: 1px solid #b2b2b2;
  border-right-width: 0;
}

.range-labels {
  display: flex;
  font-size: 16.667px;
  line-height: 1.2;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

.range-value {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  text-align: center;
  font-weight: bold;
}

section ul, section p, #collapseFour p {
  text-align: justify;
  font-size: 15px;
  line-height: 1.8;
}

.form-label {
  font-size: 16.667px;
  font-weight: bold;
  line-height: 1.2;
}

.additional-text {
  font-weight: normal;
}

hr.solid {
  border-top: 3px solid #bbb;
}

#calculator-monthly-payment-header {
  margin-top: 10px;
  font-size: 25px;
  font-weight: bold;
  line-height: 1.2;
}

.monthly-payment-wrapper {
  margin-top: 10px;
  text-align: right;
}

.calculator-monthly-payment {
  color: rgb(242, 194, 0);
  font-weight: 800;
  font-size: 37.5px;
  line-height: 1.2;
}

#credit-text {
  font-size: 16px;
}

section header h2 {
  font-weight: bold;
  margin: 10px 0px 20px 0px;
  font-size: 45px;
}

.accordion-button span:nth-of-type(2) {
  width: 50px;
  display: flex;
  justify-content: center;
}

@keyframes pulsate {
  0% {
  transition: box-shadow 0.6s linear;
  padding: 5px;
  }
  50% {
    box-shadow: 0px 0px 0px 5px rgba(242, 194, 0, 0.4);
    transition: box-shadow 0.6s linear;
    padding: 5px;
    border-radius: 5px;
  }
  100% {
    transition: box-shadow 0.6s linear;
    padding: 5px;
  }
}

.highlight {
  animation: pulsate 2s infinite;
}

#thanks-message {
  display: none;
  position: relative; 
  top: 0px; 
  width: 280px;
  margin: auto; 
  padding: 10px;
  z-index: 100;
  background: rgb(242, 194, 0);
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: bold; 
}

form #main-input {
  display: flex;
}

