/* ===========================================================================
   Volunteer & donation sign-up (/volunteer/). Mobile first; builds on the
   .pay-block / .step-num / .form-grid pieces of the tickets page and the
   poster theme (ink borders, offset shadows) from theme.css.
   =========================================================================== */
.vol-wrap { max-width: 860px; padding: 36px 0 72px; }
.vol-intro p { font-size: 1.05rem; line-height: 1.7; color: var(--t-ink); margin: 0 0 12px; }
.vol-intro .vol-privacy {
    font-size: .92rem; color: var(--t-muted); padding: 10px 14px; margin-bottom: 20px;
    background: var(--t-paper); border: 2px dashed var(--t-muted); border-radius: 12px;
}
.vol-hint { color: var(--t-muted); font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }
.vol-req { color: var(--t-orange); font-weight: 800; }
.vol-visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}

/* Cards for each step */
.vol-step {
    background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 18px;
    box-shadow: 5px 6px 0 var(--t-wine); padding: 18px 16px 20px; margin: 0 0 22px; min-width: 0;
}
@media (min-width: 640px) { .vol-step { padding: 24px 26px 26px; } }
.vol-step > legend {
    float: left; width: 100%; padding: 0; margin: 0 0 12px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.3rem; line-height: 1.15;
}
.vol-step > legend + * { clear: both; }
.vol-step .step-num { flex: none; width: 30px; height: 30px; font-family: 'Manrope', sans-serif; border: 2px solid var(--t-ink); }
.vol-step.has-error { border-color: var(--t-orange); }
.vol-step h2, .vol-step h3 { font-family: 'Anton', sans-serif; text-transform: uppercase; margin: 0 0 12px; }
.vol-step h3 { font-size: 1.2rem; margin-top: 22px; }

.vol-form .form-control { width: 100%; font-size: 1rem; }
.vol-form .form-row label { display: block; margin-bottom: 6px; }
.vol-form .error { margin: 6px 0 0; font-size: .9rem; }
.vol-form .form-row.has-error .form-control { border-color: var(--t-orange); }

/* Checkboxes with a label beside them */
.vol-check { display: flex; align-items: flex-start; gap: 12px; margin: 18px 0 0; }
.vol-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--t-orange); }
.vol-check label { font-weight: 700; line-height: 1.45; cursor: pointer; }
.vol-address {
    margin: 14px 0 0; padding: 14px; border-radius: 12px;
    background: var(--t-cream); border: 2px solid var(--t-ink);
}
.vol-subfield { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.vol-subfield > legend { font-weight: 800; padding: 0; margin-bottom: 8px; line-height: 1.45; }
.vol-subfield .vol-check { margin-top: 4px; }

/* Step 2 — category cards */
.vol-cats { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vol-cats { grid-template-columns: 1fr 1fr; } }
.vol-cat {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
    border: 2.5px solid var(--t-ink); border-radius: 14px; background: var(--t-paper);
    font-weight: 700; line-height: 1.35; min-height: 56px;
    transition: background .15s ease, box-shadow .15s ease;
}
.vol-cat input { width: 22px; height: 22px; flex: none; accent-color: var(--t-orange); }
.vol-cat:hover { background: #fdeccf; }
.vol-cat.is-checked, .vol-cat:has(input:checked) { background: #fdeccf; box-shadow: 3px 3px 0 var(--t-orange); }
.vol-cat:focus-within { outline: 3px solid var(--t-orange); outline-offset: 2px; }

/* Step 3a — role × time-slot grid: one card per role, slots as toggles */
.vol-grid { display: grid; gap: 14px; }
.vol-role { border: 2px solid var(--t-ink); border-radius: 14px; padding: 12px 12px 14px; margin: 0; min-width: 0; }
.vol-role > legend { font-weight: 800; padding: 0 6px; line-height: 1.35; }
.vol-role > legend small { display: block; font-weight: 500; color: var(--t-muted); font-size: .85rem; }
.vol-chips { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 6px; }
@media (min-width: 720px) { .vol-chips { grid-template-columns: repeat(5, 1fr); } }
.vol-chip { position: relative; display: block; cursor: pointer; }
.vol-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vol-chip span {
    display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%;
    padding: 8px 10px; border: 2px solid var(--t-ink); border-radius: 10px; background: var(--t-paper);
    font-weight: 700; font-size: .88rem; line-height: 1.25; text-align: center;
}
.vol-chip span small { font-weight: 500; color: var(--t-muted); font-size: .75rem; margin-top: 2px; }
.vol-chip input:checked + span { background: var(--t-orange); color: #fff; box-shadow: 2px 2px 0 var(--t-ink); }
.vol-chip input:checked + span small { color: #fff; }
.vol-chip input:checked + span::before { content: "✓ "; }
.vol-chip input:focus-visible + span { outline: 3px solid var(--t-ink); outline-offset: 2px; }
.vol-busy { display: none; font-style: normal; font-weight: 600; font-size: .72rem; margin-top: 2px; }
.vol-chip.is-busy { cursor: not-allowed; }
.vol-chip.is-busy span { opacity: .5; background: #f1ece4; border-style: dashed; }
.vol-chip.is-busy .vol-busy { display: block; }

/* Radio / checkbox option lists (equipment, donations, dishes) */
.vol-options { display: grid; gap: 8px; }
.vol-option {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer;
    border: 2px solid var(--t-ink); border-radius: 12px; background: var(--t-paper); min-height: 52px;
}
.vol-option input { width: 22px; height: 22px; flex: none; accent-color: var(--t-orange); }
.vol-option-text { flex: 1; line-height: 1.35; }
.vol-option-text small { display: block; color: var(--t-muted); font-size: .85rem; }
.vol-option:has(input:checked) { background: #fdeccf; box-shadow: 3px 3px 0 var(--t-orange); }
.vol-option:focus-within { outline: 3px solid var(--t-orange); outline-offset: 2px; }
.vol-option.is-taken { cursor: not-allowed; opacity: .65; background: #f1ece4; border-style: dashed; }
.vol-option.is-taken strong { text-decoration: line-through; }
.vol-taken {
    flex: none; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    color: #fff; background: var(--t-wine); border-radius: 100px; padding: 4px 10px;
}

/* "How many?" under a ticked dish or supplies item */
.vol-option-wrap { display: grid; gap: 6px; }
.vol-qty-row[hidden] { display: none; }
.vol-qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 0 4px 4px 48px; }
.vol-qty-row label { font-weight: 800; font-size: .92rem; }
.vol-qty-row .vol-qty { width: 110px; padding: 9px 12px; font-size: 1rem; }
.vol-qty-unit { color: var(--t-muted); font-weight: 700; }
.vol-qty-row .error { flex-basis: 100%; margin: 0; }
.vol-qty-row.has-error .vol-qty { border-color: var(--t-orange); }

/* Coverage: what is promised vs what is needed. The state is always written
   out next to the bar; the colour only repeats it. */
.vol-need { --vol-c: var(--t-muted); }
.vol-need.is-covered, .vol-cover.is-covered { --vol-c: #1f8a3b; }
.vol-need.is-partial, .vol-cover.is-partial { --vol-c: var(--t-gold); }
.vol-need.is-missing, .vol-cover.is-missing { --vol-c: var(--t-orange); }
.vol-need-track, .vol-cover {
    display: block; height: 8px; border-radius: 4px; overflow: hidden;
    background: #efe6d6; border: 1px solid var(--t-ink);
}
.vol-need-track i, .vol-cover i { display: block; height: 100%; background: var(--vol-c, var(--t-muted)); }
.vol-needs {
    background: var(--t-paper); border: 3px solid var(--t-ink); border-radius: 18px;
    box-shadow: 5px 6px 0 var(--t-gold); padding: 16px 16px 18px; margin: 0 0 22px;
}
.vol-needs h2 { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 1.3rem; margin: 0 0 12px; }
.vol-needs h3 {
    font-family: 'Manrope', sans-serif; font-weight: 800; font-size: .8rem; letter-spacing: .08em;
    text-transform: uppercase; color: var(--t-muted); margin: 16px 0 8px;
}
.vol-needs h2 + h3 { margin-top: 0; }
.vol-needs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .vol-needs-list { grid-template-columns: 1fr 1fr; gap: 14px 26px; } }
.vol-need-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: .95rem; margin-bottom: 5px; }
.vol-need-num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--t-ink); }
.vol-need-state { display: block; margin-top: 4px; font-size: .85rem; color: var(--t-muted); line-height: 1.4; }
.vol-need--inline { display: block; margin-top: 6px; max-width: 360px; }
.vol-need--inline .vol-need-state { font-size: .8rem; }
.vol-chip .vol-cover { margin-top: 6px; height: 6px; }
.vol-chip .vol-cover-text { display: block; font-weight: 600; font-size: .72rem; margin-top: 3px; color: var(--t-muted); }
.vol-chip input:checked + span .vol-cover-text { color: #fff; }
.vol-chip input:checked + span .vol-cover { border-color: #fff; }

/* Money gift: $10 / $20 / $50 / $100 / Other */
.vol-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.vol-amount { position: relative; cursor: pointer; }
.vol-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vol-amount span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 48px;
    padding: 8px 16px; border: 2.5px solid var(--t-ink); border-radius: 100px; background: var(--t-paper);
    font-weight: 800; font-size: 1.05rem;
}
.vol-amount input:checked + span { background: var(--t-orange); color: #fff; box-shadow: 3px 3px 0 var(--t-ink); }
.vol-amount input:focus-visible + span { outline: 3px solid var(--t-orange); outline-offset: 2px; }
.vol-money-other { padding-left: 0; }

.vol-gift {
    margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; line-height: 1.55;
    background: #fdf3d6; border: 2px solid var(--t-ink); border-left: 8px solid var(--t-gold);
}
.vol-gift p { margin: 0 0 12px; }
.vol-gift--paid { border-left-color: #1f8a3b; background: #eaf6ec; }

/* Notices */
.vol-warning {
    margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; line-height: 1.5;
    background: #fdf3d6; border: 2px solid var(--t-ink); border-left: 8px solid var(--t-gold);
}
.vol-note {
    margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; line-height: 1.55;
    background: var(--t-paper); border: 2px solid var(--t-ink); border-left: 8px solid var(--t-orange);
}
.vol-errors {
    margin: 0 0 22px; padding: 14px 18px; border-radius: 14px;
    background: #fdecea; border: 3px solid var(--t-wine);
}
.vol-errors:focus { outline: 3px solid var(--t-orange); outline-offset: 3px; }
.vol-errors h2 { font-family: 'Manrope', sans-serif; font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; text-transform: none; }
.vol-errors ul { margin: 0; padding-left: 1.2em; }
.vol-errors a { color: var(--t-wine); font-weight: 700; }

.vol-submit { margin-top: 4px; }
.vol-cancel { margin-top: 34px; padding-top: 22px; border-top: 2px dashed var(--t-muted); text-align: center; }
.vol-cancel p { color: var(--t-muted); margin: 0 0 12px; }

/* Thank-you page */
.vol-thanks .vol-extra { line-height: 1.7; margin-bottom: 8px; }
.vol-link { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.vol-link input { width: 100%; font-size: .9rem; }
@media (min-width: 640px) { .vol-link { flex-direction: row; } .vol-link .btn { flex: none; } }
.vol-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.vol-actions .btn { text-align: center; }
@media (max-width: 520px) { .vol-actions .btn { width: 100%; } }
.vol-summary { display: grid; grid-template-columns: 1fr; gap: 2px 18px; margin: 0; }
@media (min-width: 560px) { .vol-summary { grid-template-columns: minmax(150px, auto) 1fr; } }
.vol-summary dt { font-weight: 800; color: var(--t-ink); margin-top: 8px; }
.vol-summary dd { margin: 0; color: var(--t-muted); }
@media (min-width: 560px) { .vol-summary dt, .vol-summary dd { margin-top: 8px; } }

@media (prefers-reduced-motion: reduce) {
    .vol-cat, .vol-option, .vol-chip span { transition: none; }
}

/* ===========================================================================
   Artist registration (/performers/) — reuses the sign-up pieces above.
   =========================================================================== */
.perf-date { margin: 4px 0 14px; }
.perf-gap { margin-top: 18px; }
.perf-help { margin: 6px 0 0; font-size: .88rem; }
.perf-small { display: block; font-weight: 500; color: var(--t-muted); font-size: .9rem; }
.vol-summary dd.perf-pre { white-space: pre-line; overflow-wrap: anywhere; }
