/* ============================================================
   Greek Library of London LMS — Volunteer with us
   public/css/volunteer.css

   Loaded by layouts/public.php only when activePage is
   'volunteer' (the page and its thank-you screen). Every
   selector is `vol-` prefixed and reads the scoped --o-*
   tokens from opac.css, so it speaks the OPAC's card-on-canvas
   language: #f9f8f9 canvas, white cards, 14px corners, the
   #d90a2c accent.

   Mobile first; the two-column layouts open up at 860px.
   Every tap target is at least 44px tall.
   ============================================================ */

.opac-body .vol {
    max-width: 1180px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    color: var(--o-text);
}

.opac-body .vol p { line-height: 1.65; }

.opac-body .vol-muted { color: var(--o-muted); font-size: 0.95rem; }

/* ── Buttons ─────────────────────────────────────────────── */
.opac-body .vol-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.5rem;
    border-radius: var(--o-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.opac-body .vol-btn--primary {
    background: var(--o-accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(217, 10, 44, 0.22);
}
.opac-body .vol-btn--primary:hover { background: var(--o-accent-hover); color: #fff; }
.opac-body .vol-btn--primary:disabled { opacity: 0.7; cursor: progress; }

.opac-body .vol-btn--ghost {
    background: var(--o-surface);
    color: var(--o-text);
    border-color: var(--o-border);
}
.opac-body .vol-btn--ghost:hover { border-color: var(--o-text); color: var(--o-text); }

.opac-body .vol-btn--block { width: 100%; margin-top: 0.5rem; font-size: 1rem; min-height: 54px; }

/* ── Hero ────────────────────────────────────────────────── */
.opac-body .vol-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
    background: var(--o-surface);
    border: 1px solid var(--o-border);
    border-radius: 22px;
    box-shadow: var(--o-shadow-sm);
}

/* A soft wash of the brand red in the corner, and a navy one
   opposite: the two colours of the Greek Library's logo. */
.opac-body .vol-hero::before,
.opac-body .vol-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
}
.opac-body .vol-hero::before {
    width: 420px; height: 420px;
    right: -160px; top: -200px;
    background: radial-gradient(circle, rgba(217, 10, 44, 0.12), transparent 65%);
}
.opac-body .vol-hero::after {
    width: 360px; height: 360px;
    left: -180px; bottom: -220px;
    background: radial-gradient(circle, rgba(0, 55, 143, 0.08), transparent 65%);
}

.opac-body .vol-hero > * { position: relative; z-index: 1; }

.opac-body .vol-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: var(--o-radius-full);
    background: var(--o-accent-soft);
    color: var(--o-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.opac-body .vol-hero__title {
    margin: 1rem 0 0;
    font-size: clamp(1.75rem, 4.6vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 700;
    max-width: 18ch;
    text-wrap: balance;
}

.opac-body .vol-hero__lead {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: var(--o-text-soft);
    max-width: 58ch;
}

.opac-body .vol-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.opac-body .vol-hero__card {
    align-self: end;
    padding: 1.5rem;
    border-radius: var(--o-radius);
    background: var(--o-black);
    color: #f3f4f6;
}
.opac-body .vol-hero__card p { margin: 0.5rem 0 0; color: #d1d5db; font-size: 0.95rem; }

.opac-body .vol-hero__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--o-lime);
    color: var(--o-black);
}

.opac-body .vol-hero__card-title {
    margin: 0.9rem 0 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

.opac-body .vol-intro {
    margin: 2.25rem auto 0;
    max-width: 68ch;
    text-align: center;
    font-size: clamp(1.02rem, 1.8vw, 1.2rem);
    color: var(--o-text-soft);
    text-wrap: pretty;
}

/* ── Sections ────────────────────────────────────────────── */
.opac-body .vol-section { margin-top: 3rem; }

.opac-body .vol-section__title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 700;
}

/* ── Area cards ──────────────────────────────────────────── */
.opac-body .vol-areas {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.opac-body .vol-area {
    padding: 1.5rem;
    background: var(--o-surface);
    border: 1px solid var(--o-border);
    border-radius: var(--o-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.opac-body .vol-area:hover { border-color: #d6d9e3; box-shadow: var(--o-shadow-md); }

.opac-body .vol-area__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--o-accent-soft);
    color: var(--o-accent);
}

.opac-body .vol-area__title {
    margin: 1rem 0 0.6rem;
    font-size: 1.08rem;
    font-weight: 600;
}

.opac-body .vol-area__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}
.opac-body .vol-area__list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--o-text-soft);
}
.opac-body .vol-area__list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.6em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--o-accent);
}

.opac-body .vol-area__body { margin: 0; font-size: 0.95rem; color: var(--o-text-soft); }

.opac-body .vol-area--other {
    background: transparent;
    border-style: dashed;
    border-width: 1.5px;
}
.opac-body .vol-area--other .vol-area__icon { background: rgba(170, 193, 10, 0.18); color: #5f6c05; }

/* ── Time band ───────────────────────────────────────────── */
.opac-body .vol-time {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    padding: 2rem 1.25rem;
    border-radius: 22px;
    background: var(--o-accent-soft);
}
.opac-body .vol-time__text p { margin: 0 0 0.75rem; color: var(--o-text-soft); max-width: 60ch; }

.opac-body .vol-time__pills {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
    align-content: center;
}
.opac-body .vol-time__pills li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    padding: 0 1.1rem;
    background: var(--o-surface);
    border-radius: var(--o-radius-full);
    font-weight: 500;
    box-shadow: var(--o-shadow-sm);
}
.opac-body .vol-time__pills svg { color: var(--o-accent); flex-shrink: 0; }

/* ── Apply: aside + form ─────────────────────────────────── */
.opac-body .vol-apply {
    margin-top: 3rem;
    display: grid;
    gap: 1.5rem;
    scroll-margin-top: 90px;
}

.opac-body .vol-apply__aside p { margin: 0 0 1rem; color: var(--o-text-soft); }

.opac-body .vol-checklist {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}
.opac-body .vol-checklist li { display: flex; gap: 0.65rem; align-items: flex-start; line-height: 1.5; }
.opac-body .vol-checklist__tick {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--o-accent);
    color: #fff;
}

.opac-body .vol-note {
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--o-navy);
    background: var(--o-surface);
    border-radius: 0 var(--o-radius-sm) var(--o-radius-sm) 0;
    font-size: 0.92rem;
}

.opac-body .vol-form {
    padding: 1.25rem;
    background: var(--o-surface);
    border: 1px solid var(--o-border);
    border-radius: 20px;
    box-shadow: var(--o-shadow-md);
}

.opac-body .vol-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px; height: 1px;
    overflow: hidden;
}

.opac-body .vol-alert {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--o-radius-sm);
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #7f1d1d;
}
.opac-body .vol-alert:focus { outline: 2px solid var(--o-accent); outline-offset: 2px; }
.opac-body .vol-alert__icon { color: var(--o-accent); flex-shrink: 0; margin-top: 2px; }
.opac-body .vol-alert__title { margin: 0 0 0.35rem; font-weight: 600; }
.opac-body .vol-alert ul { margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }
.opac-body .vol-alert a { color: #7f1d1d; text-decoration: underline; }

/* ── Steps ───────────────────────────────────────────────── */
.opac-body .vol-step {
    margin: 0;
    padding: 0 0 1.5rem;
    border: 0;
    border-bottom: 1px solid var(--o-border-soft);
    min-width: 0;
}
.opac-body .vol-step + .vol-step { padding-top: 1.5rem; }
.opac-body .vol-step:last-of-type { border-bottom: 0; }

.opac-body .vol-step__legend {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    margin-bottom: 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.opac-body .vol-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--o-black);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Fields ──────────────────────────────────────────────── */
.opac-body .vol-field { margin-bottom: 1.25rem; }
.opac-body .vol-field:last-child { margin-bottom: 0; }
.opac-body .vol-field:focus { outline: none; }

.opac-body .vol-grid-2 { display: grid; gap: 0 1rem; }

.opac-body .vol-label {
    display: block;
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--o-text);
}
.opac-body .vol-req { color: var(--o-accent); }
.opac-body .vol-opt { font-weight: 400; color: var(--o-muted); font-size: 0.88rem; }
.opac-body .vol-hint { margin: -0.15rem 0 0.7rem; font-size: 0.88rem; color: var(--o-muted); line-height: 1.5; }

.opac-body .vol-input {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0.7rem 0.95rem;
    font: inherit;
    font-size: 16px; /* stops iOS zooming into the field */
    color: var(--o-text);
    background: #fcfcfd;
    border: 1.5px solid var(--o-border);
    border-radius: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.opac-body .vol-input:hover { border-color: #cfd3de; }
.opac-body .vol-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--o-accent);
    box-shadow: 0 0 0 4px rgba(217, 10, 44, 0.12);
}
.opac-body .vol-input[aria-invalid="true"] { border-color: var(--o-accent); background: #fffafa; }

.opac-body .vol-textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

.opac-body .vol-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    cursor: pointer;
}

.opac-body .vol-field__error {
    display: flex;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #b91c1c;
}
.opac-body .vol-field__error[hidden] { display: none; }

.opac-body .vol-reveal[hidden] { display: none; }

/* ── Choice tiles (checkboxes + radios) ──────────────────── */
.opac-body .vol-choices { display: grid; gap: 0.55rem; }

.opac-body .vol-choice { position: relative; display: block; cursor: pointer; }
.opac-body .vol-choice--wide { grid-column: 1 / -1; }

/* The native control stays in the page for keyboards, screen
   readers and form validation; only its paint is replaced. */
.opac-body .vol-choice__input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    margin: 0;
}

.opac-body .vol-choice__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 52px;
    height: 100%;
    padding: 0.7rem 0.95rem;
    border: 1.5px solid var(--o-border);
    border-radius: 12px;
    background: #fcfcfd;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.opac-body .vol-choice:hover .vol-choice__body { border-color: #cfd3de; }

.opac-body .vol-choice__mark {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border: 1.5px solid #c3c7d2;
    background: #fff;
    color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.opac-body .vol-choice__mark--box   { border-radius: 6px; }
.opac-body .vol-choice__mark--radio { border-radius: 50%; }

.opac-body .vol-choice__input:checked + .vol-choice__body {
    border-color: var(--o-accent);
    background: rgba(217, 10, 44, 0.05);
}
.opac-body .vol-choice__input:checked + .vol-choice__body .vol-choice__mark--box {
    background: var(--o-accent);
    border-color: var(--o-accent);
    color: #fff;
}
.opac-body .vol-choice__input:checked + .vol-choice__body .vol-choice__mark--radio {
    border-color: var(--o-accent);
    box-shadow: inset 0 0 0 5px var(--o-accent);
}
.opac-body .vol-choice__input:focus-visible + .vol-choice__body {
    outline: 2px solid var(--o-accent);
    outline-offset: 2px;
}

.opac-body [aria-invalid="true"] > .vol-choices .vol-choice__body { border-color: #f3b4bf; }

/* ── DBS panel ───────────────────────────────────────────── */
.opac-body .vol-dbs {
    padding: 1.1rem;
    border-radius: var(--o-radius);
    background: rgba(0, 55, 143, 0.05);
    border: 1px solid rgba(0, 55, 143, 0.15);
    animation: vol-in 0.22s ease-out;
}
.opac-body .vol-dbs__head { display: flex; gap: 0.75rem; align-items: flex-start; }
.opac-body .vol-dbs__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--o-navy);
    color: #fff;
}
.opac-body .vol-dbs .vol-choice__body { background: #fff; }

@keyframes vol-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ── CV drop zone ────────────────────────────────────────── */
.opac-body .vol-drop {
    position: relative;
    display: block;
    border: 1.5px dashed #c3c7d2;
    border-radius: var(--o-radius);
    background: #fcfcfd;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}
.opac-body .vol-drop:hover,
.opac-body .vol-drop--over { border-color: var(--o-accent); background: rgba(217, 10, 44, 0.04); }
.opac-body .vol-drop:focus-within { outline: 2px solid var(--o-accent); outline-offset: 2px; }

/* The real input covers the whole zone, so a click or a dropped
   file lands on it directly. */
.opac-body .vol-drop__input {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.opac-body .vol-drop__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.4rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}
.opac-body .vol-drop__empty strong { color: var(--o-accent); font-weight: 600; }
.opac-body .vol-drop__empty .vol-hint { margin: 0; }

.opac-body .vol-drop__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--o-accent-soft);
    color: var(--o-accent);
    flex-shrink: 0;
}

.opac-body .vol-drop__picked {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}
.opac-body .vol-drop__picked[hidden],
.opac-body .vol-drop__empty[hidden] { display: none; }

.opac-body .vol-drop__name {
    flex: 1;
    min-width: 0;
    font-size: 0.93rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Above the covering input, so it can be clicked. */
.opac-body .vol-drop__remove {
    position: relative;
    z-index: 2;
    min-height: 40px;
    padding: 0 0.9rem;
    border: 1px solid var(--o-border);
    border-radius: var(--o-radius-full);
    background: #fff;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}
.opac-body .vol-drop__remove:hover { border-color: var(--o-accent); color: var(--o-accent); }

/* ── Consent ─────────────────────────────────────────────── */
.opac-body .vol-consent {
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: var(--o-bg);
    font-size: 0.92rem;
    line-height: 1.55;
    cursor: pointer;
}
.opac-body .vol-consent .vol-choice__mark { margin-top: 1px; }
.opac-body .vol-consent a { color: var(--o-accent); text-decoration: underline; }
.opac-body .vol-consent .vol-choice__input:checked ~ .vol-choice__mark {
    background: var(--o-accent);
    border-color: var(--o-accent);
    color: #fff;
}
.opac-body .vol-consent .vol-choice__input:focus-visible ~ .vol-choice__mark {
    outline: 2px solid var(--o-accent);
    outline-offset: 2px;
}


/* ── Thank-you page ──────────────────────────────────────── */
.opac-body .vol-thanks {
    max-width: 620px;
    margin: 1.5rem auto 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--o-surface);
    border: 1px solid var(--o-border);
    border-radius: 22px;
    box-shadow: var(--o-shadow-md);
}
.opac-body .vol-thanks__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--o-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(217, 10, 44, 0.25);
}
.opac-body .vol-thanks__title {
    margin: 1.25rem 0 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: -0.02em;
    font-weight: 700;
}
.opac-body .vol-thanks__body { margin: 0 auto 0.5rem; max-width: 46ch; color: var(--o-text-soft); }
.opac-body .vol-thanks .vol-btn { margin-top: 1.5rem; }

/* ── Larger screens ──────────────────────────────────────── */
@media (min-width: 600px) {
    .opac-body .vol { padding: 2rem 1.5rem 5rem; }
    .opac-body .vol-hero { padding: 2.75rem 2.25rem; }
    .opac-body .vol-areas { grid-template-columns: repeat(2, 1fr); }
    .opac-body .vol-grid-2 { grid-template-columns: 1fr 1fr; }
    .opac-body .vol-choices--2 { grid-template-columns: 1fr 1fr; }
    .opac-body .vol-form { padding: 2rem; }
    .opac-body .vol-time { padding: 2.5rem 2.25rem; }
}

@media (min-width: 860px) {
    .opac-body .vol-hero {
        grid-template-columns: 1.6fr 1fr;
        align-items: end;
        padding: 3.5rem 3rem;
        gap: 2.5rem;
    }
    .opac-body .vol-areas { grid-template-columns: repeat(3, 1fr); }
    .opac-body .vol-time { grid-template-columns: 1.4fr 1fr; align-items: center; padding: 2.75rem 3rem; }
    .opac-body .vol-apply { grid-template-columns: 1fr 1.7fr; gap: 3rem; align-items: start; }
    .opac-body .vol-apply__aside { position: sticky; top: 100px; }
    .opac-body .vol-form { padding: 2.25rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .opac-body .vol * { transition: none !important; animation: none !important; }
    html:focus-within { scroll-behavior: auto; }
}

/* ── Staff preview notice ────────────────────────────────── */
/* Shown only to signed-in staff while the programme is switched
   off, so a preview on the live site is never mistaken for launch. */
.opac-body .vol-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-bottom: 1.25rem;
    padding: 0.8rem 1.1rem;
    border-radius: var(--o-radius);
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.5;
}
.opac-body .vol-preview > span:nth-child(2) { flex: 1; min-width: 220px; }
.opac-body .vol-preview__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
}
.opac-body .vol-preview a { color: #78350f; font-weight: 600; text-decoration: underline; }
