/* The support page: the form that writes to SceneMill, in the look of the program's own fields. */

.support .answer code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-small);
  background: var(--field);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

.note {
  display: grid;
  gap: 0.55rem;
  max-width: 44rem;
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-window);
  background: var(--panel);
}

.note fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  margin: 0 0 0.6rem;
  padding: 0;
  border: 0;
}

.note legend,
.note__field {
  padding: 0;
  font-size: var(--text-small);
  color: var(--text-muted);
}

.note legend {
  margin-bottom: 0.45rem;
}

.note__field {
  margin-top: 0.7rem;
}

.note input[type="radio"] {
  accent-color: var(--accent);
}

.note textarea,
.note input[type="email"],
.note input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text);
  font: inherit;
}

.note textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}

.note input[name="version"] {
  max-width: 9rem;
}

.note textarea:focus-visible,
.note input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.note ::placeholder {
  color: var(--text-muted);
}

/* One to five: the number chosen and those below it are lit, as the stars in the program. */
.note__stars label {
  position: relative;
}

.note__stars input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.note__stars span:not(.note__scale) {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.note__stars label:has(input:checked) span,
.note__stars label:has(~ label input:checked) span {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--text);
}

.note__stars label:has(input:focus-visible) span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.note__stars {
  gap: 0.4rem !important;
}

.note__scale,
.note__hint,
.note__without {
  font-size: var(--text-small);
  color: var(--text-muted);
}

.note__scale {
  margin-left: 0.6rem;
}

.note__hint {
  margin: 0;
}

.note__trap {
  position: absolute;
  left: -200vw;
}

.note__send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.2rem;
  margin-top: 1rem;
}

.note__status {
  flex: 1 1 16rem;
  margin: 0;
  font-size: var(--text-small);
  color: var(--brand-coral);
}

.note__status--good {
  color: var(--text);
}

.note button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
