

/* ===== Section wrapper ===== */
.volunteer-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.volunteer-section .section-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.volunteer-section .section-title p {
  margin-bottom: 1.5em;
  color: var(--color-text-muted);
}

/* ===== Form container ===== */
.volunteer-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--color-box-shadow);
}

.volunteer-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.volunteer-form .form-group {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.volunteer-form .form-group.fullwidth {
  flex: 1 1 100%;
}

.volunteer-form label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.volunteer-form input,
.volunteer-form textarea {
  padding: 10px;
  border: 1px solid var(--color-input-border);
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
}

.volunteer-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* ===== Fieldsets ===== */
.volunteer-form .adres-vak,
.volunteer-form .algemene-vragen {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin: 0 0 20px;
  padding: 20px;
  background: #fff;
}

.volunteer-form .adres-vak legend,
.volunteer-form .algemene-vragen legend {
  padding: 0 8px;
  font-weight: 600;
  color: var(--color-text-inactive);
}

/* ===== Question cards ===== */
.question-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--color-box-shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-card:hover {
  box-shadow: 0 4px 16px var(--color-box-shadow-hover);
}

/* ===== Grid layout for question cards ===== */
.form-row.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

/* ===== Pill‐style toggles ===== */
.toggle-group {
  display: flex;
  background: var(--color-bg-toggle);
  border-radius: 40px;
  padding: 4px;
  overflow: hidden;
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-group label {
  flex: 1;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 36px;
  margin: 2px;
  background: transparent;
  color: var(--color-text-inactive);
}

.toggle-group input[type="radio"]:checked + label {
  background: var(--color-theme-secondary);
  color: var(--color-text-active);
}

/* ===== Conditional fields ===== */
.conditional-group {
  display: none;
  flex-direction: column;
  margin-top: 0.75rem;
}

.conditional-group label {
  font-size: 0.9rem;
  color: var(--color-text-inactive);
  margin-bottom: 0.25rem;
}

.conditional-group input,
.conditional-group textarea {
  max-width: 220px;
}

/* ===== Submit button ===== */
.btn-submit {
  background: var(--color-theme-primary);
  color: var(--color-text-active);
  border: none;
  border-radius: 6px;
  padding: 14px 0;
  font-size: 1rem;
  cursor: pointer;
  flex: 1 1 100%;
  max-width: 300px;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--color-theme-primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .volunteer-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .form-row.grid {
    grid-template-columns: 1fr;
  }
}
