/* Style the form */
#regForm {
  background-color: #ffffff;
  margin: 100px auto;
  padding: 40px;
  width: 70%;
  min-width: 300px;
}


.calcInnerStep{display:flex;flex-direction:column-reverse;}
.formStep .calcInnerStep{flex-direction:column;}
.calcTextHolder{margin-bottom:2rem;background: #fff;padding: 1rem 1.2rem;    overflow: hidden;}
.formStep .calcTextHolder{padding: 0;margin-bottom: 0;}
.calcFormHolder{margin-bottom:2rem;}

.darkerBackground a{color:#fff}

.redUnderlinedHeader{position:relative;padding-bottom: 6px;margin-bottom: 2rem;}
/* .redUnderlinedHeader:after{bottom: 0;content: "";height: 4px;position: absolute;width: 65px;background: #d50037;left: 0;transform: rotate(-1deg);} */

.formStep .calcInnerStep > .redUnderlinedHeader{width:100%;margin-bottom: 1.5rem;}

.bigRedButton, .hs_submit.hs-submit input{background: #d50037;border: 0;color: #fff;font-family: EngschriftDIND;font-size: 2.5rem;font-weight: 500;padding: 0.5rem 20px 0.3rem;text-align: center;text-transform: uppercase;width: 100%;line-height: 1;}

.resultInner{display:flex;align-items:center;}
.resultInner > p, .calcResult > p{font-size: 1.3rem;font-weight: 400;}
.resultInner > p{margin-left:25px;margin-bottom: 0;}
.resultInner > h3{margin-bottom: 0;font-size: 2rem;}

.calcResult hr{margin: 1.5rem 0;}

#backButton.bigRedButton{width: auto;font-size: 1.8rem;margin-bottom:1.5rem;}
#resultNoDoors{color:#d50037}

  .calcResult{background:#fff;color:#191919;padding:2.1rem 1.4rem 1.4rem;margin-bottom:1.5rem;}
  .calcResult.calc3{background:#666;color:#fff;position: relative;}
.calcResult.calc3 .infoIcon{top: 7px;right: 8px;background: transparent; color: #fff;border-color: #fff;}
  .calcResult .calcSPLogo{max-width:250px;margin-bottom: 15px;}
@media screen and (min-width: 845px) {
  .calcInnerStep,.formStep .calcInnerStep{flex-direction:row;gap:25px;}
  .calcTextHolder{width:100% }
  .formStep .calcTextHolder{width:100%;display:flex;gap:30px;}
  
  .formStep .calcInnerStep{flex-wrap:wrap;}
  .calcFormHolder{width:100%}
  
  .calcResult{width:33%;background:#fff;color:#191919;padding:2.1rem 1.4rem 1.4rem;margin-bottom:0;display: flex;flex-direction: column;}
  .calcResult.calc1 p:first-child{margin-top:auto; }
  .calcResult.calc2 {padding-top:10px;}
  .calcResult.calc2 > p{margin-top:auto}
  .calcResult.calc3{width:33%;background:#666;color:#fff}

  
  .calcFormHolder .form-columns-2:nth-child(2){display: inline-block;width: 50%;}
  .calcFormHolder .form-columns-2:nth-child(2) .hs-form-field{width:100%!important}
  .calcFormHolder .form-columns-1{display: none;}
  .calcFormHolder .hs_submit.hs-submit{    display: inline-block;float: right;    margin-top: 21px;margin-right: 10px;}
  .calcFormHolder .hs_submit.hs-submit input{    font-size: 1.5rem;}
  
  #backButton.bigRedButton{margin-bottom:0;}

}


@media screen and (min-width: 1200px) {
  .calcResult > p{min-height:44px}
}

/* Style the input fields */
input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  font-family: Raleway;
  border: 1px solid #aaaaaa;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}

/* Hide all steps by default: */
.calcTab {
  display: none;
  scroll-margin-top: 129px;
}

/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none;
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

/* Mark the active step: */
.step.active {
  opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: #04AA6D;
}
.calcTab .hbspt-form{}

.calcButtonHolder{margin-bottom:30px;position: relative;z-index: 1;}
.calcButtonHolder > div{width:100%}
#backButton{float:left;}
#nextBtn{float:right;}

.form_item {margin: 1.5rem 0 0;position:relative}
.form_item label{display: block;font-weight: 500;font-size: 1.125em;color: #191919;margin-bottom: 1rem;padding-right: 25px;}
.form_input-container {display: table;overflow: hidden;padding-left: 0;padding-right: 0;position: relative;width: 100%;    max-width: 270px;}
.form_item .form_input {font-family: "Roobert-Regular", sans-serif;color: #000b3b;font-weight: normal;font-style: normal;border: none; padding: 8px 10px;min-height: 50px;margin:1px}
.form_input-container .form_input { background: transparent;border: none;position: relative;width: 100%;z-index: 2;}
.form_input-outline {display: block;bottom: 0;left: 0;position: absolute; right: 0;top: 0;z-index: 1;}
.form_input-outline {-webkit-appearance: none;background-color: white;/*border: 1px solid #515151;*/border-radius: 0;color: #2e3030;display: inline-block;padding: 0 0.375rem;width: 100%;}
.form_input-container .form_input ~ .form__input-label {padding-left: 0;padding-right: 5px;}
.form_input-container .form_input-label{display: table-cell;vertical-align: middle;position: relative;text-align: center;white-space: nowrap;width: 1%;z-index: 2;padding-right: 7px;font-weight: 500;font-family: EngschriftDIND;font-size: 2rem;}
.form_input-container .form_input,.form_input-container .form_input-label,.form_input-container .field_with_errors {display: table-cell;vertical-align: middle}


.ui-slider {border-radius: 4px;background: white;border: 1px solid #60637e;height: 8px}
.ui-slider {margin: 1em 0 3em;display: block}

.ui-slider {position: relative;height: 10px;background: #ebebec; border: 1px solid #aaa;border-radius: .5em; width: 100%;  clear: both;margin: 18px 0 35px;}
.ui-slider .ui-slider-handle {   position: absolute;   width: 30px;   height: 30px;top: -12px; margin-left: -1px; cursor: pointer;border: 2px solid #ccc;background: #fff;border-radius: 30px;box-shadow: 0px 3px 1px #e3e4e6}
.ui-slider .ui-slider-handle {    border: 2px solid #009775;    background: #009775;    box-shadow: 0px 3px 0px rgba(0,0,0,0.25);    width: 28px;    height: 28px}
.ui-slider .ui-slider-handle:focus {border: 2px solid #00654e; background: #00654e; outline: none}
.ui-slider .ui-slider-handle:hover {border: 2px solid #00654e;background: #00654e}
.ui-slider .ui-slider-range {background: #009775;border-radius: 0px}
.ui-slider .ui-state-hover {background: #ae0060}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {-webkit-appearance: none; margin: 0;}

input[type=number] {-moz-appearance:textfield; }

/* .boxWrapper{display: grid;grid-template-columns: repeat(5, 1fr);grid-auto-rows: minmax(100px, auto);column-gap: 10px;row-gap: 1em;} */
.boxWrapper .year{border:5px #000 solid;display: flex;justify-content: center;align-items: center;font-family: "EngschriftDIND", sans-serif;font-size: 3rem;width: max-content;}
    .timeline--entry:nth-child(1) .year{font-size: 3.6rem;    width: auto;}
.year.lowValue{color:#B12704}
.year.highValue{color:#00a074;}

.infoIcon {height: 22px;width: 22px;background-color: #eee;border-radius: 50%;border: 2px #D61C26 solid;display: inline-block;cursor:pointer;vertical-align: middle; color: #D61C26;text-align: center;font-weight: 600;margin-left: 5px;line-height: 19px;position: absolute;right: 0;}

.formStep .calcFormHolder{margin-bottom: 2rem; background: #666;padding: 1rem 1.2rem;color:#fff}
.formStep .calcFormHolder h2{color:#fff}
.formStep .calcTextHolder{background:transparent}

.bigRedButton{cursor: pointer;}
.bigRedButton:hover,.bigRedButton:focus{background:#ff0042}

.calcEndingText{margin-top:30px;}
.calcEndingText p{margin:0}

.finalResult h2{color:#fff;font-size:3rem}

.timeline {
  line-height: 1.5em;
  font-size: 14px;
  transition: all 0.4s ease;
  position: relative;
  counter-reset: section;
  margin-left: 5rem;
}
.timeline:before {
  content: "";
  width: 7px;
  height: 96%;
  background: #202020;
  position: absolute;
  top: 16px;
  left: -3.313em;
  border-radius: 3px;
}

.timeline--entry {
  position: relative;
}
.timeline--entry__title {
  color: white;
  background-color: #ec407a;
  font-family: "Oswald", Georgia, Cambria, "Times New Roman", Times, serif;
  font-weight: 300;
  font-size: 1rem;
  padding: 1em;
}
.timeline--entry__detail {
  padding: 1em;
  margin: 0;
}
.timeline--entry:before {
  content: "";
  font-family: "EngschriftDIND", sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2em;
  height: 2.2em;
  background-color: #202020;
  border-radius: 50%;
  position: absolute;
  counter-increment: section;
  content: '5 yr';
    left: -2.5em;
    font-size: 2rem;
    top: 50%;
    margin-top: -1.1em;
}
.timeline--entry:nth-child(2):before {content: '4 yr';}
.timeline--entry:nth-child(3):before {content: '3 yr';}
.timeline--entry:nth-child(4):before {content: '2 yr';}
.timeline--entry:nth-child(5):before {content: '1 yr';}

@supports (display: grid) {
  @media (min-width: 1030px) {
    
        .timeline--entry:nth-child(1) .year{padding: 33px 13px;}
    .timeline {
      display: grid;
      column-gap: 64px;
      grid-template-areas: "entry1  ." ".  entry2" "entry3  ." ". entry4" "entry5 ." ;
      margin-left: 0;;
    }
    .timeline:before {
          left: calc(50% + 2px);
    }

    .timeline--entry:nth-child(1) {
      grid-area: entry1;
    }
    .timeline--entry:nth-of-type(odd) .year{
    float:right;
    }
    .timeline--entry:nth-child(2) {
      grid-area: entry2;
    }
    .timeline--entry:nth-child(3) {
      grid-area: entry3;
    }
    .timeline--entry:nth-child(4) {
      grid-area: entry4;
    }
    .timeline--entry:nth-child(5) {
      grid-area: entry5;
    }
    .timeline--entry:nth-of-type(even):before {
      left: -2.1em;
    }
    .timeline--entry:nth-of-type(odd):not(:nth-of-type(even)) .timeline--entry__title:before {
      left: 100%;
      border-left: 10px solid #ec407a;
      border-right: 0;
    }
    .timeline--entry:nth-of-type(odd):before {
      left: 99%;
    }
    
    .timeline--entry__detail{    padding: 0.7em;}
    .boxWrapper .year{    width: max-content;padding: 1.5rem;}
  }
}

@media screen and (max-width: 1024px) {
/* .boxWrapper{grid-template-columns: repeat(2, 1fr);}
  .boxWrapper .year.year5{    grid-column: 1 / 3;} */
}

