/* The questionnaire for organizers (organizers.html, el/organizers.html), on style.css's tokens.
   A field's border is 3:1 or more against the page in both modes (WCAG 1.4.11); style.css's
   --border is for dividers and is too faint for a field. */

:root {
  --field-border: #7d867a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --field-border: #748078;
  }
}

.survey fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.survey .part {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.survey .part > legend {
  float: left;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.survey .part > legend + * {
  clear: left;
  padding-top: 0.5rem;
}

.field {
  margin: 1.4rem 0;
}

/* A question. The options under it are labels too: .choice, below. */
.field > label:not(.choice),
.field > legend {
  display: block;
  margin-bottom: 0.45rem;
  padding: 0;
  font-weight: 600;
  line-height: 1.4;
}

.hint {
  display: block;
  margin: -0.2rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.survey input[type="text"],
.survey input[type="tel"],
.survey input[type="email"],
.survey textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--field-border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}

.survey textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.survey input::placeholder,
.survey textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.survey input:focus-visible,
.survey textarea:focus-visible,
.survey button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.contact {
  display: grid;
  gap: 0.75rem;
}

.contact label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

/* One tap target per option, at least 44 px tall. */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.45rem 0;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  line-height: 1.45;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.15rem 0 0;
  accent-color: var(--primary);
}

.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface);
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.choice input:focus-visible {
  outline: none;
}

.consent {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.survey button.button {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.survey button.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status:empty {
  display: none;
}

.status {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warn-border);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn-fg);
}

.status.is-info {
  border-color: var(--border);
  background: var(--surface);
  color: var(--fg);
}

.done {
  margin: 2rem 0;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 12px;
  background: var(--surface);
}

.done h2 {
  margin-top: 0;
}

/* Bots fill every field; people never see this one. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 34rem) {
  .contact {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
