.nps-calculator {
  --nps-green: #80c44a;
  --nps-yellow: #f79227;
  --nps-red: #f12a32;
  .score-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    overflow: clip;
    border-radius: 0.6rem;
  }
  .score-element {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    gap: 0.25rem;
    width: 25%;
    background-color: var(--nps-green);
    padding: 0.5rem 0.25rem;
    &.is-detractor {
      background-color: var(--nps-red);
    }
    &.is-passive {
      background-color: var(--nps-yellow);
    }
    &.is-promoter {
      background-color: var(--nps-green);
    }
    @media screen and (min-width: 470px) {
      width: 12.5%;
    }
    @media screen and (min-width: 670px) {
      width: 52px;
      &:nth-of-type(1) {
        padding-left: 8px;
      }
      &:last-of-type {
        padding-right: 8px;
      }
      /* Spacing */
      &:nth-of-type(7),
      &:nth-of-type(9) {
        padding-right: 0.35rem;
      }
      &:nth-of-type(8),
      &:nth-of-type(10) {
        padding-left: 0.35rem;
      }
    }
  }
  label {
    font-weight: bold;
    color: white;
    text-align: center;
  }
  input[type="number"] {
    width: 100%;
    padding: 6px;
    padding-left: 25%;
    font-size: 14px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
  }
  .additional-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 0 auto;
    p {
      margin: 0;
    }
  }
  .speedometer-container {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    @media screen and (min-width: 670px) {
      flex-direction: row;
    }
  }
  .speedometer {
    flex-grow: 1;
    max-width: 450px;
  }
  .speedometer-el {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    aspect-ratio: 2 / 1;
    max-width: 450px;
  }
  .speedometer-bg {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-image: url("https://cdn.prod.website-files.com/650abf913c2b2cc68da2dc73/6756c4d5e82b70b1a4de390d_speedometer-bg-2.svg");
  }
  .legend {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    .legend-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      .legend-color-el {
        display: block;
        width: 2.5rem;
        height: 1.25rem;
        border-radius: 0.6rem;
        background-color: #f7dcc5;
      }
      &.is-2 .legend-color-el {
        background-color: #efba8b;
      }
      &.is-3 .legend-color-el {
        background-color: #e39550;
      }
      &.is-4 .legend-color-el {
        background-color: #df7518;
      }
    }
    p {
      margin: 0;
      text-align: left;
    }
  }
  .needle {
    position: absolute;
    width: 4px;
    height: 60%;
    background: #667085;
    bottom: 2px;
    left: 50%;
    transform-origin: bottom;
    transform: rotate(0deg);
    z-index: 2;
    transition: transform 0.5s ease-in-out;
  }
  .nps-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: bold;
    text-align: center;
    span {
      display: flex;
      font-size: 32px;
    }
  }
}
