/* Volunteer recruitment and application. Edit directly in dist/. */
/* Reuse the Staff page's quest-builder cards and responsive grid. */
.volunteer-role-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.volunteer-role-card > .builder-contribution:first-of-type {
  margin-top: 24px;
}

.volunteer-role-card > .text-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.87rem;
}

.volunteer-application-section {
  background: #f4f0f7;
}

.volunteer-application-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: 64px;
  align-items: start;
}

.volunteer-application-intro h2 {
  margin-bottom: 24px;
}

.volunteer-application-intro p + p {
  margin-top: 20px;
}

.volunteer-application-intro .notice {
  margin-top: 28px;
  background: #fff5e9;
  font-size: 0.95rem;
}

.volunteer-application {
  min-width: 0;
  padding: 36px;
  border-radius: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.volunteer-application > fieldset {
  min-width: 0;
  margin: 0 0 30px;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.volunteer-application > fieldset > legend {
  padding: 0 12px 0 0;
  font-size: 1.22rem;
  font-weight: 900;
  line-height: 1.4;
}

.volunteer-application .field:last-child {
  margin-bottom: 0;
}

.volunteer-application .field label {
  font-size: 0.92rem;
}

.volunteer-application .field-hint,
.volunteer-application .form-footnote {
  font-size: 0.86rem;
}

.volunteer-application .field textarea {
  min-height: 112px;
}

.volunteer-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.volunteer-activity-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.volunteer-activity-group legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.volunteer-activity-group legend span {
  font-weight: 500;
  color: var(--muted);
}

.volunteer-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 0.91rem;
  line-height: 1.5;
  cursor: pointer;
}

.volunteer-choice:hover,
.volunteer-choice:has(input:checked) {
  border-color: var(--blue);
  background: #f1eef9;
}

.volunteer-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.volunteer-whitelist {
  margin-top: 24px;
}

.volunteer-whitelist + .form-row {
  margin-top: 18px;
}

.volunteer-application-status:not(:empty) {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  background: var(--lavender);
}

.volunteer-application-status[data-state="success"] {
  background: #e8f1e2;
  color: #294432;
}

.volunteer-application-status[data-state="error"] {
  background: #fce9e9;
  color: #802e3d;
}

.volunteer-application button:disabled {
  opacity: 0.7;
  transform: none;
}

.volunteer-application-fallback {
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .volunteer-application-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .volunteer-application-intro {
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .volunteer-application {
    padding: 25px 20px;
  }

  .volunteer-application .form-row,
  .volunteer-choices {
    grid-template-columns: 1fr;
  }

  .volunteer-application .form-row {
    gap: 0;
  }

  .volunteer-application .form-row .field {
    margin-bottom: 21px;
  }
}
