.balneocar-cleanliness-widget {
  max-width: 560px;
  margin: 20px auto;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(140deg, #f3f7f9 0%, #ffffff 100%);
  border: 1px solid #dde6eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.balneocar-cleanliness-form {
  display: grid;
  gap: 12px;
}

.balneocar-cleanliness-input-group {
  display: grid;
  gap: 6px;
}

.balneocar-cleanliness-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #183041;
}

.balneocar-cleanliness-sub-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #3b5564;
}

.balneocar-cleanliness-form input[type="file"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #c5d5de;
  border-radius: 12px;
  padding: 10px;
  background: #eef4f7;
  color: #274557;
  font-size: 0.92rem;
}

.balneocar-cleanliness-form input[type="file"]:focus-visible {
  outline: 2px solid #0d516f;
  outline-offset: 2px;
}

.balneocar-cleanliness-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 1px solid #0d516f;
  border-radius: 10px;
  width: 64px;
  height: 42px;
  padding: 0;
  background-color: #0d516f;
  background-image: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  font-weight: 700;
  text-indent: -9999px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.balneocar-cleanliness-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  border: 1px solid #0d516f;
  border-radius: 10px;
  width: 64px;
  height: 42px;
  padding: 0;
  background-color: #0d516f;
  background-image: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
  font-weight: 700;
  text-indent: -9999px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#balneocar-vehicle-photo-camera::file-selector-button,
#balneocar-vehicle-photo-camera::-webkit-file-upload-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}

#balneocar-vehicle-photo-gallery::file-selector-button,
#balneocar-vehicle-photo-gallery::-webkit-file-upload-button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpolyline points='21 15 16 10 5 21'/%3E%3C/svg%3E");
}

.balneocar-cleanliness-form input[type="file"]:hover::file-selector-button,
.balneocar-cleanliness-form input[type="file"]:hover::-webkit-file-upload-button {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 81, 111, 0.28);
  filter: brightness(1.03);
}

.balneocar-cleanliness-button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #0d516f;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.balneocar-cleanliness-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 81, 111, 0.3);
}

.balneocar-cleanliness-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: saturate(0.5);
}

.balneocar-cleanliness-form input[type="file"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.balneocar-cleanliness-form input[type="file"]:disabled::file-selector-button,
.balneocar-cleanliness-form input[type="file"]:disabled::-webkit-file-upload-button {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.balneocar-cleanliness-status {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #274557;
}

.balneocar-cleanliness-result {
  margin-top: 12px;
}

.balneocar-result-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
  color: #1f3645;
}

.balneocar-result-label {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3140;
}

.balneocar-result-score,
.balneocar-result-disclaimer {
  margin: 8px 0 0;
  font-size: 0.92rem;
}

.balneocar-result-disclaimer {
  color: #5d6f7a;
}

.balneocar-result-categories-wrap {
  margin-top: 10px;
}

.balneocar-result-keywords-wrap {
  margin-top: 10px;
}

.balneocar-result-client-link-wrap {
  margin: 14px 0 0;
}

.balneocar-result-client-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #0d516f;
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.balneocar-result-client-link:hover {
  filter: brightness(1.05);
}

.balneocar-result-categories-title {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #3b5564;
}

.balneocar-result-categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.balneocar-result-category {
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(14, 81, 111, 0.12);
  border: 1px solid rgba(14, 81, 111, 0.25);
  font-size: 0.82rem;
  line-height: 1.2;
}

.balneocar-cleanliness-widget .balneocar-result-card p,
.balneocar-cleanliness-widget .balneocar-result-card strong {
  color: inherit;
}

.balneocar-result-card.is-very-clean {
  border-color: #39b56f;
  background: #f1fbf5;
}

.balneocar-result-card.is-clean {
  border-color: #5ec384;
  background: #f8fdf9;
}

.balneocar-result-card.is-medium {
  border-color: #e4b84a;
  background: #fff9ef;
}

.balneocar-result-card.is-dirty {
  border-color: #ea8b47;
  background: #fff5ee;
}

.balneocar-result-card.is-very-dirty {
  border-color: #d95a5a;
  background: #fff1f1;
}

@media (max-width: 640px) {
  .balneocar-cleanliness-widget {
    margin: 14px 0;
    padding: 16px;
    border-radius: 12px;
  }
}
