/* "Join the reunion committee" invitation + the "Count me in!" form (js/volunteer.js).
   Shared colors and fonts come from styles.css. */

/* Invitation card */
.vol-invite {
  margin-top: 2.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--paper);
  border: 2px solid var(--heritage-green);
  border-left-width: 8px;
  border-radius: 12px;
}
.vol-invite h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.625rem, 6vw, 2.125rem);
  line-height: 1.15;
  color: var(--heritage-green);
}
.vol-invite p {
  margin: 0.75rem 0 1.25rem;
}
.vol-invite .button-primary {
  min-width: min(14rem, 100%);
}

/* Smaller version (finder and "You're all set!") */
.vol-invite--small {
  margin-top: 1.75rem;
  padding: 1.125rem 1.125rem 1.25rem;
  border-left-width: 6px;
  text-align: left;
}
.vol-invite--small h2 {
  font-size: 1.5rem;
}
.vol-invite--small p {
  font-size: 1.125rem;
  margin: 0.5rem 0 1rem;
}
.vol-invite--small .button-primary {
  min-height: 3rem;
  font-size: 1.25rem;
}

/* Form (modal) */
.vol-overlay { position: fixed; inset: 0; z-index: 30; display: none; align-items: flex-end; justify-content: center; background: rgba(26, 26, 23, .55); }
.vol-overlay.open { display: flex; }
.vol-sheet { width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 22px 20px 28px; background: var(--paper); color: var(--ink); border-radius: 18px 18px 0 0; font-size: 1.125rem; line-height: 1.5; }
@media (min-width: 640px) { .vol-overlay { align-items: center; } .vol-sheet { border-radius: 16px; } }
.vol-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vol-sheet h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; color: var(--heritage-green); }
.vol-x { min-width: 48px; min-height: 48px; background: none; border: 0; font-size: 2rem; line-height: 1; color: var(--ink); cursor: pointer; }
.vol-sub { margin: 6px 0 14px; color: var(--muted); font-size: 1.125rem; }
.vol-sheet label { display: block; margin: 14px 0 6px; font-family: var(--font-head); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.vol-opt { font-family: var(--font-body); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.vol-sheet input[type=text], .vol-sheet input[type=email], .vol-sheet input[type=tel], .vol-sheet textarea {
  width: 100%; min-height: 48px; padding: 12px 13px; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--white); border: 2px solid var(--field-border); border-radius: 8px;
}
.vol-sheet input:focus, .vol-sheet textarea:focus { border-color: var(--brand-green); }
.vol-sheet textarea { min-height: 90px; resize: vertical; }
.vol-two { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 520px) { .vol-two { grid-template-columns: 1fr 1fr; } }
.vol-hint { margin: 8px 0 0; font-size: 17px; color: var(--muted); }
.vol-sheet fieldset { margin: 18px 0 0; padding: 6px 0 0; border: 0; border-top: 1px solid var(--line); }
.vol-sheet legend { padding-right: 8px; font-family: var(--font-head); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--heritage-green); }
.vol-sheet .vol-check { display: flex; align-items: center; gap: 14px; min-height: 52px; margin: 8px 0 0; padding: 8px 14px; font-family: var(--font-body); font-size: 18px; letter-spacing: 0; text-transform: none; border: 2px solid var(--field-border); border-radius: 10px; background: var(--white); cursor: pointer; }
.vol-check input { flex: none; width: 28px; height: 28px; margin: 0; accent-color: var(--brand-green); cursor: pointer; }
.vol-check input:focus-visible { outline: 4px solid var(--brand-green); outline-offset: 3px; }
.vol-sheet .vol-check:has(input:checked) { border-color: var(--brand-green); background: #E2EEE4; }
.vol-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vol-err { margin: 14px 0 0; color: #9A3B1E; font-size: 18px; }
.vol-send { width: 100%; margin-top: 20px; }
.vol-done { text-align: center; padding: 20px 4px; }
.vol-done h2:focus { outline: none; }
.vol-check-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; background: #E2EEE4; color: var(--brand-green); font-size: 30px; }
