@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Black.otf');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Bold.otf');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-BookItalic.otf');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-ExtraLight.otf');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-ExtraLightItalic.otf');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Heavy.otf');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-HeavyItalic.otf');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Light.otf');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-LightItalic.otf');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Regular.otf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-RegularItalic.otf');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-SemiBold.otf');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-SemiBoldItalic.otf');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-Thin.otf');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mont';
  src: url('fonts/Mont-ThinItalic.otf');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}

.roic {
  font-family: 'Mont';
  padding: 50px 0px;
}
.roic h2 {
  font-size: 20px;
  margin: 0px;
  margin-bottom: 0px;
  color: #1D2C3A;
}
.roic h1 {
  font-size: 36px;
  margin: 0px;
  font-weight: 800;
  line-height: 1.1;
  color: #1D2C3A;
}
.roic .calculator {
  display: flex;
  align-items: center;
  justify-content: center;
}
.roic .sliders {
  width: 55%;
  padding: 15px 20px;
  box-shadow: 0px 3px 30px #00000014;
  border-radius: 25px;
  background: #fff;
  margin-right: -40px;
  padding-right: 60px;
}
.roic .sliders label {
  font-weight: 600;
  font-size: 14px;
  margin-top: 10px;
  display: block;
  margin-bottom: 5px;
}
.roic .output-container {
  width: 50%;
  background: #fff;
  box-shadow: 0px 3px 36px #00000029;
  padding: 20px 50px;
  border-radius: 45px;
  z-index: 99999;
  text-align: center;
}
.roic .duration-toggle {
  width: 250px;
  margin: auto;
  box-shadow: inset 0px 3px 16px #00000029;
  border-radius: 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
}
.roic .duration-toggle span {
  width: 50%;
  padding: 10px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
}
.roic .duration-toggle span.active {
  background: #EC5B29;
  color: #fff;
}
.roic .metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.roic .metric {
  background: #1d2c3a;
  color: #fff;
  padding: 10px;
  border-radius: 15px;
  text-align: center;
  font-size: 12px;
  width: calc(50% - 20px);
  margin-inline: 10px;
  margin-bottom: 20px;
}
.roic .metric h3 {
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 700;
}
.roic .metric p {
  font-size: 14px;
  margin-top: 0px;
  line-height: 1;
  margin-bottom: 18px;
}
.roic .metric span {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 5px;
  display: inline-block;
}
.roic .btn {
  background: #ec5b29;
  color: #fff;
  border: none;
  padding: 15px 55px;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 2px;
}
.roic .slider-value {
  position: relative;
  overflow: hidden;
}
.roic .slider-value input[type='range'] {
  width: 100%;
  height: 15px;
  overflow: hidden;
  margin: 10px 0px;
  accent-color: #ec5b29;
  border-radius: 10px;
}
.roic .slider-value input[type='range']::-webkit-slider-thumb {
  box-shadow: -500px 0px 0px 500px #ec5b29;
  margin-top: -2px;
}

.roic .slider-value input[type='range']::-webkit-slider-runnable-track {
  height: 15px;
  background: #fff;
  pointer-events: none;
  border: 1px solid #70707062;
  border-radius: 30px;
}
.roic .slider-value span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the label */
  color: #fff; /* Label text color */
  border: 1px solid #fff; /* Label border */
  font-size: 12px; /* Label font size */
  width: 50px; /* Adjust as needed */
  height: 25px; /* Adjust as needed */
  background: #1d2c3a; /* Thumb color */
  border-radius: 5px;
  cursor: pointer;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
  z-index: 9;
}
.roic .slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: -28px;
  line-height: 1;
  z-index: 1;
  position: relative;
  pointer-events: none;
}
.roic .slider-labels span {
  background: #1d2c3a;
  color: #fff;
  padding: 3px 5px;
  border-radius: 5px;
  line-height: 1;
} 

@media only screen and (max-width: 786px) {
  .roic {
    padding: 30px 20px;
  }
  .roic h2 {
    text-align: center;
    font-size: 18px;
  }
  .roic h1 {
    text-align: center;
    font-weight: 800;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 28px;
  }
  .roic .calculator {
    flex-direction: column;
  }
  .roic .sliders {
    width: 100%;
    margin-right: 0px;
    padding: 0;
    box-shadow: none;
  }
  .roic .slider-labels {
    margin-bottom: -30px;
  }
  .roic .output-container {
    width: 100%;
    padding: 0px;
    box-shadow: none;
    margin-top: 50px;
    z-index: 9;
  }
  .roic .metric span {
    display: block;
  }
  .roic .slider-value input[type='range']::-webkit-slider-runnable-track {
    margin-right: -10px;
  }
}