
.rating {
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  flex-direction: row-reverse;
  position: relative;
}

.rating-0 {
  filter: grayscale(100%);
}

.rating > input {
  display: none;
}

.rating > label {
  cursor: pointer;
  width: 100%;
  height: 40px;
  margin-top: auto;
  background-color: #f3f4f6;
  background-repeat: no-repeat;
  background-position: center;
  transition: 0.3s;
}

/* Hover effect: highlight current and all following bars (in reverse order) */
.rating > label:hover,
.rating > label:hover ~ label {
  background-color: #d1fae5;
}

/* Rating 5: 5 green bars (all bars) */
.rating > input:checked#rating-5 + label,
.rating > input:checked#rating-5 ~ label {
  background-color: #02b86b;
}

/* Rating 4: 4 green bars */
.rating > input:checked#rating-4 + label,
.rating > input:checked#rating-4 ~ label {
  background-color: #02b86b;
}

/* Rating 3: 3 green bars */
.rating > input:checked#rating-3 + label,
.rating > input:checked#rating-3 ~ label {
  background-color: #02b86b;
}

/* Rating 2: 2 red bars */
.rating > input:checked#rating-2 + label,
.rating > input:checked#rating-2 ~ label {
  background-color: #ff5c5c;
}

/* Rating 1: 1 red bar */
.rating > input:checked#rating-1 + label,
.rating > input:checked#rating-1 ~ label {
  background-color: #ff5c5c;
}

.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.otp-input {
  width: 100%;
  height: 60px;
  text-align: center;
  font-size: 24px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.otp-input:focus {
  border-color: #007bff;
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.loader {
  border: 10px solid #f3f3f3; /* Light grey */
  border-top: 10px solid #1570EF; /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
