.reviews {
    margin-top: 50px;
    margin-bottom: 100px;
}

.reviews-container {
    min-height: 80vh;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #fff;
    border-radius: 10px;
}

.review-form {
  max-width: 520px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid #eaeaea;
    border-radius: 15px;
    padding: 30px;
}

.form-main-title {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 25px;
    color: #555555;
}

.form-group { margin-bottom: 25px; width: 100%;}

    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: 400;
      font-size: 18px;
    }

    .form-group input, .form-group textarea { 
      width: 100%;
      padding: 10px;
      box-sizing: border-box;
      border: 1px solid #ccc;
      border-radius: 15px;
      font-size: 16px;
    }

    .field-hint {
      margin-top: 10px;
      font-size: 14px;
      color: #4f4f4f;
    }
    
    /* Стили для поля имени при анонимности */
    .form-group input[type="text"]:disabled { background-color: #e9ecef; cursor: not-allowed; color: #6c757d; }
    
    .rating-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
    .rating-stars input { display: none; }
    .rating-stars label { font-size: 28px; color: #ddd; cursor: pointer; }
    .rating-stars input:checked ~ label, .rating-stars label:hover, .rating-stars label:hover ~ label { color: #ffca08; }
    
    /* Чекбоксы */
    .checkbox-group {
      display: flex;
      align-items: center;
      margin-bottom: 25px;
      width: 100%;
      margin-top: -20px;
    }

    .checkbox-group input[type="checkbox"] {
      cursor: pointer;
      margin-right: 10px;
    }

    .checkbox-group label { font-size: 14px; color: #666; line-height: 1.3; cursor: pointer; user-select: none; }
    .checkbox-group a { color: #007bff; text-decoration: none; }
    .checkbox-group a:hover { text-decoration: underline; }

    .submit-btn 
    { 
      background-color: #28a745; color: #fff; border: none; padding: 12px; border-radius: 4px; cursor: pointer; width: 100%; font-size: 16px; transition: all 0.2s; margin-bottom: 30px;
    }

    .submit-btn:disabled { background-color: #6c757d; opacity: 0.6; cursor: not-allowed; }
    .form-status { margin-top: 10px; font-weight: bold; text-align: center; }

    .reviews-list h4 { margin-bottom: 20px; color: #333; text-align: center; font-size: 22px; }
    .reviews-flex-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; }
    
    .review-card { 
      background: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-top: 5px solid #e7b6ff; 
      display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; box-sizing: border-box; width: calc((100% - 40px) / 3); 
    }
    .review-card.new-item { animation: fadeInScale 0.5s ease-out forwards; }
    @keyframes fadeInScale {
      0% { opacity: 0; transform: scale(0.9) translateY(20px); }
      100% { opacity: 1; transform: scale(1) translateY(0); }
    }
    .review-user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; 
        border-bottom: 1.5px solid #eaeaea;
    padding-bottom: 10px;}
    .avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
    .avatar-placeholder { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #ffffff; font-weight: bold; font-size: 16px; text-transform: uppercase; }

    .review-stars { color: #ffca08; font-size: 20px;}
    .review-text { 
            color: #555;
    line-height: 1.4;
    word-break: break-word;
    font-size: 16px;
    flex-grow: 1;
    margin-bottom: 10px;
        }
    
    review-user-info span {
        font-weight: 400;
        font-size: 20px;
    }

    .review-date { 
        font-size: 12px;
        color: #aaa;
        text-align: center;
    }


  input[type="file"]::file-selector-button {
    background-color: #bc80f3;
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    margin-right: 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
  }

  input[type="file"]::file-selector-button:hover {
    background-color: #9258c9;
  }

    @media (max-width: 900px) { .review-card { width: calc((100% - 20px) / 2); } }
    @media (max-width: 600px) { .review-card { width: 100%; } }