*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  font-family: 'Overpass';
  font-size: 15px;
}
:root {
  --orange-500: hsl(25, 97%, 53%);
  --white: hsl(0, 100%, 100%);
  --grey-500: hsl(217, 12%, 63%);
  --grey-900: hsl(213, 19%, 18%);
  --grey-950: hsl(216, 12%, 8%);
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--grey-950);
}
.rating-container {
  max-width: 21.8rem;
  max-height: 24rem;
  padding: 1.6rem;
  border-radius: 2rem;
  background: radial-gradient(
    98.96% 98.96% at 50% 0%,
    #232a34 0%,
    #181e27 100%
  );
  img {
    width: 3.2rem;
    height: 3.2rem;
    padding: 1rem;
    background-color: var(--grey-900);
    border-radius: 50%;
    margin-bottom: 1.6rem;
  }
  h2 {
    font-size: 1.6rem;
    color: var(--white);
    line-height: 2.3rem;
    margin-bottom: 1rem;
  }
  p {
    font-size: 0.9rem;
    color: var(--grey-500);
    line-height: 1.4rem;
    margin-bottom: 1rem;
  }
}
fieldset {
  border: none;
  display: flex;
  gap: 1rem;
}
.rating {
  width: 2.8rem;
  height: 2.8rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  input[type='radio'] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: var(--grey-900);
    border-radius: 50%;
    z-index: 1;
    cursor: pointer;
    color: var(--grey-500);
  }
  label {
    position: absolute;
    font-family: 'Overpass';
    color: var(--white);
    z-index: 1;
    cursor: pointer;
  }
  input[type='radio']:hover {
    background-color: var(--orange-500);
    color: black;
  }
  input[type='radio']:checked {
    background-color: var(--white);
  }

  input[type='radio']:checked + label {
    color: black;
  }
}
.submit-btn {
  margin-top: 1.6rem;
  width: 18.6rem;
  height: 3rem;
  border-radius: 1.5rem;
  border: none;
  background-color: var(--orange-500);
  color: black;
  font-family: 'Overpass';
  text-transform: uppercase;
  font-size: 0.9rem;
  font-weight: 700;
}

.submit-btn:hover {
  background-color: var(--white);
  cursor: pointer;
}

.thank-you-container {
  max-width: 21.8rem;
  max-height: 24rem;
  padding: 2.1rem 1.6rem;
  border-radius: 2rem;
  background: radial-gradient(
    98.96% 98.96% at 50% 0%,
    #232a34 0%,
    #181e27 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;

  img {
    width: 9.6rem;
    height: 6.4rem;
    margin-bottom: 1.6rem;
  }
  p:nth-child(2) {
    color: var(--orange-500);
    margin-bottom: 1.6rem;
    background-color: var(--grey-900);
    border-radius: 1.5rem;
    padding: 1rem 1.3rem;
  }
  h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  p:nth-child(4) {
    text-align: center;
    color: var(--grey-500);
    font-size: 0.9rem;
  }
}
.hidden {
  display: none;
}

.attribution {
  font-size: 11px;
  text-align: center;
  margin-top: 2rem;
  color: var(--white);
}
.attribution a {
  color: var(--white);
}

@media only screen and (min-width: 53.33rem) {
  .rating-container {
    max-width: 27.46rem;
    max-height: 27.73rem;
    padding: 2.1rem;
    h2 {
      font-size: 1.86rem;
      line-height: 2.3rem;
    }
    p {
      font-size: 1rem;
      line-height: 1.6rem;
    }
  }
  .rating {
    width: 3.4rem;
    height: 3.4rem;
  }
  fieldset {
    gap: 1.6rem;
  }
  .submit-btn {
    width: 23.4rem;
  }
  .thank-you-container {
    max-width: 27.46rem;
    max-height: 27.73rem;
    padding: 2.3rem;

    img {
      width: 10.8rem;
      height: 7.2rem;
    }
    h2 {
      font-size: 1.8rem;
    }
    p:nth-child(4) {
      font-size: 1rem;
      line-height: 1.6rem;
    }
  }
}
