/* Review Form Styles */
.review-form-wrapper {
  margin: 0;
  padding: 60px 0;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
  position: relative;
}

/* Left Column - Form */
.review-form-container {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.review-form-header {
  /* margin-bottom: 32px; */
}

.review-form-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 100%;
  color: #000;
  margin: 0 0 12px 0;
  padding: 0;
}

.review-form-subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: #666;
  margin: 0;
  padding: 0;
}

.review-form {
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.review-form .form-group {
  /* margin-bottom: 24px; */
  display: flex;
  flex-direction: column;
}

.review-form .form-group:last-of-type {
  margin-bottom: 0;
}

/* Блок "Оценка" без верхнего отступа */
.review-form .form-group.rating-group {
  margin-top: -12px;
  /* margin-bottom: 24px; */
}

.review-form .form-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  color: #000;
  margin-bottom: 8px;
}

.review-form .form-control {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 140%;
  color: #000;
  background: #F6F6F6;
  border: 1px solid #F1F1F1;
  border-radius: 9999px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.review-form .form-control:focus {
  outline: none;
  border-color: #F05633;
  background: #fff;
}

.review-form .form-control::placeholder {
  color: #999;
}

.review-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

/* Rating Stars */
.rating-stars {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 0;
  align-items: center;
}

.rating-stars input[type="radio"] {
  display: none;
}

.rating-stars label.star {
  cursor: pointer;
  display: inline-block;
  transition: all 0.2s ease;
}

.rating-stars label.star svg {
  display: block;
  width: 28px;
  height: 28px;
}

.rating-stars label.star svg path {
  fill: none;
  stroke: #E0E0E0;
  transition: all 0.2s ease;
}

/* Звезды активные, оранжевые - через класс */
.rating-stars label.star.active svg path {
  fill: #F05633;
  stroke: #F05633;
}

/* Photo Upload */
.photo-upload-container {
  margin-top: 8px;
}

.photo-input {
  display: none;
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.photo-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 140%;
  color: #F05633;
  background: #fff;
  border: 1px solid #F05633;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.photo-upload-button:hover {
  background: #F05633;
  color: #fff;
}

.photo-upload-button:hover .photo-indicator-button {
  background: #fff;
}

.photo-indicator-button {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F05633;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.photo-button-text {
  display: inline-block;
}

.photo-upload-info {
  flex: 0 1 auto;
  font-size: 14px;
  line-height: 140%;
  color: #666;
}

.photo-upload-info p {
  margin: 0;
}

/* Photo Preview */
.photo-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.photo-preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E0E0E0;
}

.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: background 0.3s ease;
}

.photo-preview-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  height: 38px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 38px;
  color: #fff;
  background: #F05633;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 0;
  box-sizing: border-box;
}

.btn-submit:hover {
  background: #E04522;
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Consent Text */
.consent-text {
  margin-top: 8px;
  text-align: left;
}

.consent-text p {
  font-size: 14px;
  line-height: 140%;
  color: #666;
  margin: 0;
}

/* Error Messages */
.error-message {
  display: block;
  font-size: 14px;
  line-height: 140%;
  color: #F05633;
  margin-top: 4px;
  min-height: 20px;
}

/* Success/Error Messages */
#review-form-messages {
  margin-bottom: 20px;
}

#review-form-messages .alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 140%;
}

#review-form-messages .alert-success {
  background: #E8F5E9;
  color: #2E7D32;
  border: 1px solid #4CAF50;
}

#review-form-messages .alert-error {
  background: #FFEBEE;
  color: #C62828;
  border: 1px solid #EF5350;
}

/* Review Form Image */
.review-form-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 0 0 40px;
}

.review-side-image {
  width: 100%;
  /* max-width: 400px; */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.review-form-image-mobile {
  margin-bottom: 32px;
  padding: 0;
}

/* Login Message */
.review-login-message {
  font-size: 16px;
  line-height: 140%;
  color: #666;
  text-align: center;
  padding: 40px 0;
}

/* Responsive */
@media (max-width: 991px) {
  .review-form-wrapper {
    margin: 0;
    padding: 40px 0;
  }
  
  .review-form-title {
    font-size: 28px;
  }
  
  .review-form-subtitle {
    font-size: 14px;
  }
  
  .review-form-image {
    margin-top: 40px;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .review-form-wrapper {
    margin: 24px 0;
    padding: 24px 0;
  }
  
  .review-form-title {
    font-size: 24px;
  }
  
  .review-form .form-group {
    margin-bottom: 20px;
  }
  
  .photo-preview-item {
    width: 80px;
    height: 80px;
  }
  
  .photo-upload-row {
    flex-wrap: wrap;
  }
}
