/* Shared volunteer form on the home page and volunteer page. */
.volunteer-form-shell {
  margin-top: 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 2px solid #b71f2c;
  background: radial-gradient(circle at 12% 0%, rgba(183, 31, 44, .15), transparent 24rem), rgba(5, 6, 8, .96);
}
.volunteer-form-heading {
  margin-bottom: 1.75rem;
}
.volunteer-form-heading h2, .volunteer-form-heading h3 {
  margin: 0 0 .75rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}
.volunteer-form-heading > p:last-child {
  margin-bottom: 0;
  color: var(--paper-dim);
}
.volunteer-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem 1.5rem;
}
.volunteer-form-note, .volunteer-form-field-wide, .volunteer-form-actions {
  grid-column: 1 / -1;
}
.volunteer-form-note {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.volunteer-form-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}
.volunteer-form-field label {
  color: var(--bone);
  font-size: .95rem;
  font-weight: 700;
}
.volunteer-form-field input, .volunteer-form-field select, .volunteer-form-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  padding: .75rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #101318;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.5;
  color-scheme: dark;
}
.volunteer-form-field textarea {
  min-height: 10rem;
  resize: vertical;
}
.volunteer-form-field input:hover, .volunteer-form-field select:hover, .volunteer-form-field textarea:hover {
  border-color: var(--paper-dim);
}
.volunteer-form-field input:focus-visible, .volunteer-form-field select:focus-visible, .volunteer-form-field textarea:focus-visible, .volunteer-form .button:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 3px;
}
.volunteer-form-hint {
  margin: 0;
  color: var(--muted);
  font-size: .83rem;
}
.volunteer-form-actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: .75rem;
}
.volunteer-form .button {
  cursor: pointer;
}
.volunteer-form .button:disabled {
  cursor: wait;
  opacity: .65;
}
.volunteer-form-status {
  margin: 0;
  color: var(--bone);
  overflow-wrap: anywhere;
}
.volunteer-form-status:empty {
  display: none;
}
@media (max-width: 600px) {
  .volunteer-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }
  .volunteer-form .button {
    width: 100%;
  }
}