.calculator {
  display: flex;
  flex-direction: column;
  padding-left: 0px;
  padding-right: 0px;
  padding-top: 20px;
  color: #333;
}

.calculator #intro{
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}
#intro .top-flair{
  border-top: black solid 2px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 24px;
}

.calculator #wrapper{
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  gap: 32px;
}

#wrapper .content{
  padding-top: 12px;
  padding-bottom: 12px;
}

#wrapper .section {
  position: relative;
  border-left: 2px solid #ECECED;
  padding-left: 24px;
  padding-bottom: 12px;
  margin-top: 12px;
}
#wrapper .section .section-icon{
  position: absolute;
  top: 0px;
  left: -11px;
  background-color: white;
}

.stars {
  display: flex;
  width: 3.5rem;
  justify-content: center;
}
.star-text{
  width: 5rem;
  text-align: left;
}

#start .types {
  padding-top:24px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap:2px
}
.small-text{
  width: 100%;
  margin: 0px;
  padding: 0px;
  font-size: 14px !important;
  font-weight: 400;
}

.inverse-block{
  padding: 24px;
  background-color: #333;
  color: white;
  margin-bottom: 24px;
}

.example-block .title, .inverse-block .title{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
}
#examples .title{
  font-weight: 600;
  color: #333;
}
.title p {
  margin: 0;
}

.inverse-block .huge-text{
  font-size: 24px;
  font-weight: 500;
  padding-left: 24px;
}

.example-block{
  padding: 24px;
  background-color: #ECECED;
  color: #333;
  margin-bottom: 24px;
}

.example-block .example-text {
  font-weight: 600;
}


#start, #comparison ,#cal {
  width: 100%;
}

/* Inputit */
.calc-group{
  display: flex;
  flex-wrap: wrap;
}
.calc-group-label{
  width: 100%;
  font-weight: 500;
  font-size: 14px;
}
.calc-group-field{
  width: 100%;
  border: 2px solid #ECECED;
  font-weight: 600;
}
.calc-group-radio-wrap{
  display: flex;
  flex-direction: column;
  gap: 8px
}
.calc-group-radio{
  color: #333;
  padding: 4px;
  border: 2px solid #ECECED;
  width: 100%;
  display: flex;
  gap: 12px;
  font-size: 14px;
  justify-content: center;
  align-items: center;
}

.calc-group-radio-active
{
  color: #ECF8FF !important;
  border: 2px solid red;
  background-color: red;
}

.calc-group-range {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 6px;
  background: #ECECED;
  outline: none;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.range-stops{
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  font-weight: 600;
  font-size: 12;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.calc-group-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 25px;
  height: 25px;
  background: #333;
  cursor: pointer;
  border-radius:999px;
}

.calc-group-range::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #333;
  cursor: pointer;
}

.calculator{
  background-color: #ECF8FF;
}
.calculator .content{
  padding-top: 24px;
  padding-bottom: 24px;
}

#cal form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
#cal form .calc-group{
  display: flex;
  flex-direction: column;
  justify-content: baseline;
}
#cal form .calc-group .range-stops{
  padding-top:12px;
}
#cal form .calc-group, #cal form .inverse-block{
  width: 100% !important;
}


@media only screen and (min-width: 768px) {
  #cal form{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  #cal form .calc-group{
    display: flex;
    flex-direction: column;
    justify-content: baseline;
  }
  #cal form .calc-group .range-stops{
    padding-top:12px;
  }
  #cal form .calc-group, #cal form .inverse-block{
    width: 100% !important;
  }
}


/* isomman näyttökoon asetukset */

@media only screen and (min-width: 1024px) {
  .calculator {
    padding-top: 64px;
    padding-bottom: 24px;
  }
  .calculator #intro{
    max-width: 1124px;
    margin: 0 auto;
  }
  .calculator #intro .wrap{
    padding-left: 24px;
    padding-right: 24px;
    width: 72%;
    margin-right: auto;
  }
  .calculator #wrapper{
    max-width: 1124px;
    margin: 0 auto;
    background-color: white;
    display: inline-flex;
    flex-direction: unset;
    flex-wrap: wrap;
    padding: 36px;
    gap:0;
  }
  #start, #comparison {
    width: 50%;
    display: inline-flex;
    margin: 0;
    padding: 8px;
  }
  #cal{
    width: 100%;
    padding: 8px;
  }
  #savings {
    display: flex;
    flex-wrap: wrap;
  }
  #savings .container{
    width: 50%;
    padding-left: 4px;
    padding-right: 4px;
  }
  #examples .example-block {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    margin-bottom: 8px;
  }
  #examples .title{
    font-weight: 500;
    color: #333;
  }
}
