/* GENERAL STYLES */

: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%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
}

body {
  font-family: Overpass, sans-serif;
  font-size: 15px;
  background-color: var(--grey-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding-bottom: 30px;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  padding: 30px 50px;
}

.general-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 400px;
  gap: 20px;
  background: radial-gradient(circle, var(--grey-900) 0%, #181e27 100%);
  border-radius: 20px;
  padding: 30px;
}

.hidden {
  display: none;
}

.star-image {
  display: inline-block;
  width: 50px;
  height: 50px;
  padding: 15px;
  position: relative;
  text-align: center;
  z-index: 0;
}
.star-image::before {
  content: "";
  position: absolute;
  background-color: var(--grey-500);
  border-radius: 50%;
  inset: 0;
  opacity: 0.2;
  z-index: -1;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  margin-top: 15px;
}

.description,
.selected-rating {
  opacity: 0.7;
  line-height: 1.7;
}

.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}
.form label {
  cursor: pointer;
  width: 50px;
  height: 50px;
  font-weight: 700;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  position: relative;
  z-index: 0;
  transition: all 0.2s ease-in-out;
}
.form label::before {
  content: "";
  position: absolute;
  background-color: var(--grey-500);
  inset: 0;
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}
.form label:hover {
  background-color: var(--orange-500);
  opacity: 1;
  color: var(--grey-950);
}

.form input[type="radio"] {
  display: none;
}

.selected {
  background-color: var(--white);
  color: var(--grey-950);
  opacity: 1;
}

.inputs {
  display: flex;
  justify-content: space-between;
}

.btn-submit {
  border: none;
  border-radius: 20px;
  background-color: var(--orange-500);
  color: var(--grey-950);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  width: 100%;
  padding: 12px 30px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}
.btn-submit:hover {
  background-color: var(--white);
}

/* THANK U SECTION */

.thank-you-section {
  align-items: center;
}

.thank-you-section .description {
  text-align: center;
}

.selected-rating {
  color: var(--orange-500);
  letter-spacing: 0.5px;
  padding: 5px 20px;
  border-radius: 20px;
  position: relative;
}
.selected-rating::before {
  content: "";
  position: absolute;
  background-color: var(--grey-500);
  inset: 0;
  border-radius: 20px;
  opacity: 0.2;
  z-index: -1;
}

/* FOOTER */

.attribution {
  font-size: 11px;
  text-align: center;
}
.attribution a {
  color: hsl(228, 45%, 44%);
}

@media (max-width: 460px) {
  .general-box {
    gap: 15px;
    padding: 25px;
  }

  .form label {
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
  .star-image {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  h1 {
    font-size: 26px;
  }
}
