.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-control {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  width: 100%;
  transition: var(--transition);
}

.input-control:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
  background: var(--bg-surface-hover);
}

select.input-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

textarea.input-control {
  resize: vertical;
  min-height: 100px;
}

/* Category Grid Selector */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.category-tile {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.category-tile svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-secondary);
  transition: var(--transition-fast);
}

.category-tile span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.category-tile:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-surface-hover);
}

.category-tile.selected {
  border-color: var(--accent-primary);
  background: rgba(14, 165, 233, 0.08);
}

.category-tile.selected svg {
  stroke: var(--accent-primary);
}

.category-tile.selected span {
  color: var(--accent-primary);
}

/* Interactive Star Rating Widget */
.star-rating-widget {
  display: flex;
  flex-direction: row-reverse; /* Allows hover selection of preceding stars */
  justify-content: flex-end;
  gap: 8px;
  margin: 4px 0;
}

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

.star-rating-widget label {
  cursor: pointer;
  color: var(--text-muted);
  transition: transform 0.15s, color 0.15s;
}

.star-rating-widget label svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.star-rating-widget label:hover,
.star-rating-widget label:hover ~ label,
.star-rating-widget input[type="radio"]:checked ~ label {
  color: var(--accent-warning);
}

.star-rating-widget label:active {
  transform: scale(0.9);
}

/* Cleanliness Info Overlay */
.rating-helper-text {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Checklist grid for facilities */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checklist-item {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.checklist-item:hover {
  border-color: var(--border-color-hover);
}

.checklist-item.selected {
  border-color: var(--accent-success);
  background: rgba(16, 185, 129, 0.06);
}

.checklist-item input[type="checkbox"] {
  display: none;
}

.checkbox-custom-indicator {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.checklist-item.selected .checkbox-custom-indicator {
  border-color: var(--accent-success);
  background: var(--accent-success);
}

.checkbox-custom-indicator::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  opacity: 0;
  margin-top: -2px;
}

.checklist-item.selected .checkbox-custom-indicator::after {
  opacity: 1;
}

.checklist-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.checklist-item.selected .checklist-label {
  color: var(--text-primary);
}

/* Map selector box for coordinate pin */
.map-selection-container {
  height: 220px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.coords-display {
  display: flex;
  gap: 10px;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-secondary);
  background: var(--bg-surface-solid);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
