* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.w-full {
  width: 100%;
}

.m-0 {
  margin: 0 !important;
}

.hidden {
  display: none;
}

.rating {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.rating span:first-child {
  font-weight: 600;
  color: #374151;
  font-size: 16px;
}

.preview-rating {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  margin-left: 8px;
}

.preview-rating-term {
  font-weight: 500;
  color: #6b7280;
  font-size: 14px;
  margin-left: 4px;
}

/* Rating component styling */
.rating sl-rating {
  --sl-color-primary-600: #fbbf24;
  --sl-color-primary-500: #f59e0b;
}

/* Upload button styling */
.upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #374151;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.upload-label:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.upload-label i {
  font-size: 16px;
}

sl-button.submitBtn::part(base) {
  background: #1f2937 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  width: 100%;
  max-width: 200px;
}

sl-button.submitBtn::part(base):hover {
  background: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

sl-button.submitBtn::part(label) {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Textarea specific styling */
.input-validation-required sl-textarea::part(base) {
  min-height: 120px;
  resize: vertical;
}

/* Form spacing */
.input-validation-required > * {
  margin-bottom: 16px;
}

.input-validation-required br {
  display: none;
}

.wrap-previewImg {
  position: relative;
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 8px;
}

.previewImg {
  width: 90px;
  height: 90px;
  border-radius: 9px;
  border: 1px solid #cacaca;
  object-fit: cover;
  display: block;
}

.content {
  margin-top: 5px;
}

.deleteBtn {
  position: absolute;
  right: -8px;
  top: -8px;
  cursor: pointer;
  background-color: #353333b0;
  border-radius: 50%;
  z-index: 10;
  width: 14px;
  height: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.deleteBtn:hover {
  transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
  .input-validation-required {
    margin: 4 0px;
    padding: 0;
  }

  .rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .upload-label,
  .sl-button.submitBtn::part(base) {
    width: 100%;
  }
}
