.broker-review-form__ratings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rating-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.rating-item__inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rating-item__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  margin: 0;
}

.rating-item__value {
  display: flex;
  align-items: flex-end;
  font-size: 18px;
  font-weight: 700;
  margin-top: 3px;
}

/* Звездочки рейтинга */
.rating-item__stars {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.rating-item__star {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.rating-item__star:hover {
  transform: scale(1.1);
}

.rating-item__star svg {
  width: 28px;
  height: 26px;
  fill: #d7d7d7;
  transition: fill 0.2s ease;
}

.rating-item__star.active svg {
  fill: #ffd700;
}

/* Чекбоксы согласий */
.comment-form__agreements,
.review-author--add-review {
  margin: 24px 0;
}
.comment-form__field--add-review {
  margin: 24px 0;
}
.agreements__item {
  margin-bottom: 9px;
}

.checkbox {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--grey);

  line-height: 1.4;
  transition: color 0.2s ease;
}

.checkbox:hover {
  color: var(--primary);
}

.checkbox__input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox__mark {
  position: relative;
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 2px solid #34b945;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox__input:checked + .checkbox__mark {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox__input:checked + .checkbox__mark::after {
  content: "";
  width: 5px;
  height: 8px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox__input:focus + .checkbox__mark {
  box-shadow: 0 0 0 3px rgba(147, 69, 216, 0.2);
}

.checkbox__text {
  flex: 1;
  padding-top: 4px;
}
/* Уведомления */
.notification {
  padding: 16px 20px;
  border-radius: var(--input-border-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  animation: slideIn 0.3s ease-out;
}

.notification--success {
  background: #e8f5e8;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.notification--error {
  background: #ffebee;
  border: 1px solid #f44336;
  color: #c62828;
}

.notification__content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.notification__text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для ошибок в полях */
.error {
  border-color: #f44336 !important;
  background: #ffebee !important;
}

.broker-review-form__btn {
  font-size: 18px;
}
@media (max-width: 700px) {
  .broker-review-form__ratings {
    grid-template-columns: repeat(3, 1fr);
  }
  .broker-review-form__btn {
    font-size: 16px;
  }
}
@media (max-width: 530px) {
  .broker-review-form__ratings {
    grid-template-columns: repeat(2, 1fr);
  }
  .rating-item__label {
    font-size: 12px;
  }
  .rating-item__value {
    font-size: 16px;
  }
  .rating-item__inner {
    gap: 5px;
  }
  .broker-review-form__btn {
    font-size: 15px;
  }
}
@media (max-width: 400px) {
  .broker-review-form__ratings {
    gap: 10px;
  }
  .broker-review-form__btn {
    font-size: 14px;
  }
  .rating-item__star svg {
    width: 21px;
    height: 21px;
  }
}
