* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    #7302ae 0%,
    #7302ae 350px,
    white 350px,
    white 100%
  );
}

.main-message {
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 18px;
  color: #333;
  width: 65%;
}

.review-container {
  background-color: white;
  width: 100%; /* 100% width of the parent container */
  max-width: 500px; /* Maximum width of 500px */
  min-width: 380px; /* Minimum width of 300px for smaller screens */
  max-height: 90vh; /* Allow the container to take up 90% of the viewport height */
  overflow-y: auto; /* Enable vertical scrolling if content exceeds height */
  padding: 30px 15px 55px;
  border-radius: 24px;
  flex-direction: column;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
  position: relative;
}

.review-container .text {
  font-size: 25px;
  color: black;
  font-weight: 700;

  padding: 20px;
}

.review-container .change {
  position: absolute;
  right: 10px;
  top: 5px;
  font-size: 16px;
  color: black;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.review-container .post {
  display: none;
}

.review-container .rating-widget input {
  display: none;
}

.rating-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center;
  width: 100%;
}

.rating-widget label {
  color: rgb(169, 169, 169);
  font-size: 40px;
  padding: 20px;
  float: right;
}

.star-rating {
  width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.star-rating input {
  display: none;
}

.star-rating label {
  font-size: 50px; /* Adjust size as needed */
  color: #ccc; /* Default gray color */
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s ease-in-out;
}

/* Hover effects: Change color for the hovered star only */
.star-rating label[for='rate-5']:hover {
  color: #32cd32; /* Lime Green for 5 stars */
}

.star-rating label[for='rate-4']:hover {
  color: #9acd32; /* Yellow-Green for 4 stars */
}

.star-rating label[for='rate-3']:hover {
  color: #ffd700; /* Gold for 3 stars */
}

.star-rating label[for='rate-2']:hover {
  color: #ffa500; /* Orange for 2 stars */
}

.star-rating label[for='rate-1']:hover {
  color: #ff5a5a; /* Bright Red for 1 star */
}

/* Keep the selected star colored */
.star-rating input:checked + label {
  color: #32cd32; /* Default to Lime Green for selected 5 stars */
}

.star-rating input#rate-4:checked + label {
  color: #9acd32; /* Yellow-Green for selected 4 stars */
}

.star-rating input#rate-3:checked + label {
  color: #ffd700; /* Gold for selected 3 stars */
  border-radius: 5px;
  border-color: #ffd700;
}

.star-rating input#rate-2:checked + label {
  color: #ffa500; /* Orange for selected 2 stars */
}

.star-rating input#rate-1:checked + label {
  color: #ff5a5a; /* Bright Red for selected 1 star */
}

form .submitBtn button {
  width: 100%;
  height: 30px;
  background-color: #7302ae;
  color: white;
  font-weight: 00;
  margin-top: 25px;
  font-size: 18px;
  font-weight: 550;
  cursor: pointer;
  transition: all 0.1s ease;
  border-radius: 8px;
  border: 1px;
  border-color: #4e148c;
  height: 40px;
}

form .submitBtn button:hover {
  background-color: #4e148c;
}

form .description {
  color: #333;
  font-weight: 400;
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.description {
  font-size: 18px;
  width: 65%;
  color: #333;
  padding-bottom: 10px;
  padding-top: 20px;
}

.feedback-text {
  color: rgb(80, 80, 80) 3;
}

textarea {
  height: 120px;
  width: 145%;
  margin-top: 10px;
  margin-left: -30%; /* Pulls the element back towards the center */
  margin-right: -30%;
  resize: none;
  border: 2px solid #b6b6b6;
  background-color: #fafbfc;
  padding: 10px;
  font-size: 14px;
}

textarea:focus {
  outline: none !important;
  background-color: white;
  border-color: #4e148c;
  box-shadow: 0 0 3px #4e148c;
  transition: all 0.5s ease;
}

.logo-image {
  position: fixed;
  top: 25px;
  left: 25px;
  width: 95px;
  height: auto;
  z-index: 1000;
}

@media (max-width: 800px) {
  /* Adjust 600px to your desired threshold */
  .logo-image {
    display: none;
  }
}

.ces-question {
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 18px;
  color: #333;
  width: 65%;
}

.definitions {
  width: 85%;
  display: flex;
  justify-content: space-between;
  color: #555;
  font-size: 16px; /* Match font size with .likert-labels */
  font-weight: 400;
  margin-top: -10px;
  margin-bottom: 10px;
  text-align: center;
}

.definitions b {
  font-weight: normal;
}

.bad {
  margin: 0;
  /* Additional styles for BAD */
}

.good {
  margin: 0;
  /* Additional styles for GOOD */
}

.radio-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 10px 20px;
  gap: 10px; /* Previously 0 — now allows just a bit of breathing room */
  width: 90%;
}

.radio-group input[type='radio'] {
  display: none;
}

.radio-group label.circle-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #eee;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Hover styles */
.radio-group label.circle-button:hover.strong-disagree {
  background-color: #ff5a5a;
  color: black;
}
.radio-group label.circle-button:hover.disagree {
  background-color: #ffa500;
  color: black;
}
.radio-group label.circle-button:hover.neutral {
  background-color: #ffd700;
  color: black;
}
.radio-group label.circle-button:hover.agree {
  background-color: #9acd32;
  color: black;
}
.radio-group label.circle-button:hover.strong-agree {
  background-color: #32cd32;
  color: black;
}

/* Checked (selected) styles */
.radio-group input[type='radio']:checked + label.strong-disagree {
  background-color: #ff5a5a;
  color: black;
}
.radio-group input[type='radio']:checked + label.disagree {
  background-color: #ffa500;
  color: black;
}
.radio-group input[type='radio']:checked + label.neutral {
  background-color: #ffd700;
  color: black;
}
.radio-group input[type='radio']:checked + label.agree {
  background-color: #9acd32;
  color: black;
}
.radio-group input[type='radio']:checked + label.strong-agree {
  background-color: #32cd32;
  color: black;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  width: 86%; /* Match the radio-group width */
  margin: 0 auto 35px auto;
  font-size: 16px;
  color: #555;
  text-align: center;
  padding: 0; /* Remove extra padding */
}

.likert-labels span {
  flex: 0 0 auto;
  width: auto;
}

.likert-labels span:first-child {
  text-align: left;
}

.likert-labels span:last-child {
  text-align: right;
}
