/* Volunteer page — loaded only on page-templates/template-volunteer.php. Everything is scoped to .vol-* */

/* ---- Hero ---- */
.vol-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); font-size: var(--text-sm); color: rgba(255,255,255,0.75); margin-bottom: var(--space-6); position: relative; }
.vol-crumbs a { color: rgba(255,255,255,0.75); }
.vol-crumbs a:hover { color: var(--color-white); }
.vol-crumbs [aria-current] { color: var(--color-white); font-weight: 600; }
.vol-hero__sub { max-width: 640px; }
.vol-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); margin-top: var(--space-8); position: relative; }

/* WhatsApp button next to the site's standard .btn--primary; WhatsApp's own deeper brand green keeps white text legible */
.vol-btn-wa { background-color: #128C7E; color: var(--color-white); border: 2px solid #128C7E; }
.vol-btn-wa:hover { background-color: #075E54; border-color: #075E54; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vol-btn-wa:focus-visible { outline: 3px solid var(--color-white); outline-offset: 2px; }

/* Deeper saffron than the site default so white text passes contrast (form submit and thank-you buttons) */
.vol-btn { background-color: #B45309; color: var(--color-white); border: 2px solid #B45309; justify-content: center; }
.vol-btn:hover { background-color: var(--color-maroon); border-color: var(--color-maroon); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vol-btn:focus-visible, .vol-chip input:focus-visible + span, .vol-type__opt input:focus-visible + .vol-type__box, .vol-commit__opt input:focus-visible + .vol-commit__box, .vol-check input:focus-visible {
    outline: 3px solid var(--color-blue-deep); outline-offset: 2px;
}

/* ---- Shared bits ---- */
/* The theme forces Lora 18px (!important) on every p/li inside #main-content. This page's UI copy is
   Inter at the approved sizes, so these rules match that specificity and are scoped to .vol-* blocks. */
#main-content .vol-ways p, #main-content .vol-signup p, #main-content .vol-signup li { font-family: var(--font-body) !important; line-height: 1.5 !important; }
#main-content .vol-ways__intro p:last-child, #main-content .vol-success__lead { font-size: 17px !important; }
#main-content .vol-way p, #main-content .vol-form__lead, #main-content .vol-success__ref, #main-content .vol-steps li { font-size: 15px !important; }
#main-content .vol-steps p, #main-content .vol-aside__help p, #main-content .vol-aside__donate p, #main-content .vol-form__alert, #main-content .vol-error, #main-content .vol-callout, #main-content .vol-success__more { font-size: 14px !important; }
#main-content .vol-hint, #main-content .vol-form__fine { font-size: 13px !important; }
#main-content .vol-eyebrow { font-size: 12px !important; }
.vol-eyebrow { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-maroon); margin-bottom: var(--space-3); }
.vol-ico { width: 48px; height: 48px; border-radius: 50%; background: #FDF3E2; color: #B45309; display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---- Ways to serve ---- */
.vol-ways { background: var(--color-white); }
.vol-ways__intro { text-align: center; margin: 0 auto var(--space-10); }
.vol-ways__intro h2 { font-family: var(--font-heading); font-size: var(--text-4xl); color: var(--color-blue-deep); margin-bottom: var(--space-3); }
.vol-ways__intro p:last-child { font-size: var(--text-lg); color: #5B6470; }
.vol-ways__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.vol-way { background: var(--color-off-white); border: 1px solid #EEE7DC; border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; }
.vol-way .vol-ico { width: 52px; height: 52px; margin: 0 auto; }
.vol-way h3 { font-size: var(--text-lg); font-weight: 600; color: var(--color-blue-deep); margin: var(--space-4) 0 var(--space-2); }
.vol-way p { font-size: 15px; color: #5B6470; line-height: 1.55; }

/* ---- Sign-up layout ---- */
.vol-signup { padding: var(--space-16) 0 96px; background: var(--color-off-white); }
.vol-layout { display: flex; align-items: flex-start; gap: var(--space-10); }
.vol-layout[hidden] { display: none; }
.vol-aside { flex: 0 0 340px; display: flex; flex-direction: column; gap: var(--space-6); }
.vol-aside__card { background: var(--color-white); border: 1px solid #EEE7DC; border-radius: var(--radius-lg); padding: var(--space-6); }
.vol-aside h2 { font-family: var(--font-heading); font-size: 19px; color: var(--color-blue-deep); margin-bottom: var(--space-5); }
.vol-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.vol-steps li { display: flex; gap: var(--space-3); }
.vol-steps__n { width: 32px; height: 32px; border-radius: 50%; background: #FDF3E2; color: var(--color-maroon); font-weight: 700; font-size: var(--text-sm); display: flex; align-items: center; justify-content: center; flex: none; }
.vol-steps strong { font-size: 15px; }
.vol-steps p { font-size: var(--text-sm); color: #5B6470; margin-top: 2px; }
.vol-aside__help { background: var(--color-blue-deep); color: var(--color-white); border-radius: var(--radius-lg); padding: var(--space-6); }
.vol-aside__help h2 { color: var(--color-white); margin-bottom: var(--space-2); }
.vol-aside__help p { font-size: var(--text-sm); color: rgba(255,255,255,0.85); margin-bottom: var(--space-4); }
.vol-aside__row { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
/* Phone, email and hours share one face, size, weight and colour */
#main-content .vol-aside__row, #main-content .vol-aside__row span, #main-content .vol-aside__row a { font-family: var(--font-body) !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.5 !important; color: rgba(255,255,255,0.9) !important; }
.vol-aside__row:last-child { margin-bottom: 0; }
.vol-aside__row svg { flex: none; color: var(--color-gold); }
.vol-aside__row a { color: inherit; }
.vol-aside__row a:hover { text-decoration: underline; }
.vol-aside__donate { background: linear-gradient(135deg, var(--color-blue-deep), #0d2140); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; color: var(--color-white); }
.vol-aside__donate-ico { font-size: 36px; line-height: 1; margin-bottom: var(--space-3); }
.vol-aside__donate h2 { color: var(--color-gold); margin-bottom: var(--space-3); }
.vol-aside__donate p { color: rgba(255,255,255,0.85); margin-bottom: var(--space-5); }
.vol-aside__mail a { word-break: break-all; }

/* ---- Form card ---- */
.vol-form { flex: 1; min-width: 0; background: var(--color-white); border: 1px solid #EEE7DC; border-radius: var(--radius-xl); padding: var(--space-10); box-shadow: var(--shadow-card); }
.vol-form h2 { font-family: var(--font-heading); font-size: 28px; color: var(--color-blue-deep); margin-bottom: 6px; }
.vol-form__lead { font-size: 15px; color: #5B6470; }
.vol-form__alert { margin: var(--space-5) 0 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: #FEE2E2; color: #991B1B; font-size: var(--text-sm); }
.vol-form__alert[hidden] { display: none; }
.vol-form__fine { text-align: center; font-size: 13px; color: #5B6470; margin-top: var(--space-4); }
.vol-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vol-form fieldset { border: 0; margin-inline: 0; padding: 0; min-width: 0; }
.vol-form legend { padding: 0; }
.vol-form .form-label { margin-bottom: var(--space-2); }
.vol-form .form-label.required::after { content: ' *'; color: var(--color-error); }
.vol-field { margin-bottom: var(--space-5); }
.vol-field[hidden], [data-vol-if][hidden] { display: none; }
.vol-opt { font-weight: 400; color: #5B6470; font-size: 13px; margin-left: 6px; }
.vol-hint { font-size: 13px; color: #5B6470; margin-top: var(--space-2); }
.vol-hint--pull { margin-top: calc(-1 * var(--space-3)); margin-bottom: var(--space-5); }
.vol-error { font-size: var(--text-sm); color: var(--color-error); margin-top: var(--space-2); }
.vol-error:empty { display: none; }
.vol-star { color: var(--color-error); }
.vol-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--space-5); }
.vol-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-5); }
.vol-form .form-input, .vol-form .form-select, .vol-form .form-textarea { border-color: var(--color-gray-300); }
.vol-form [aria-invalid="true"] { border-color: var(--color-error); }
.vol-form .form-input::placeholder, .vol-form .form-textarea::placeholder { color: var(--color-gray-500); }
.vol-select { position: relative; }
.vol-select .form-select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.vol-select svg { position: absolute; right: 16px; top: 16px; width: 16px; height: 16px; pointer-events: none; color: #5B6470; }

/* ---- Sections ---- */
.vol-sec { border-top: 1px solid #EEE7DC; padding-top: 36px; margin-top: 36px; }
.vol-sec__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); }
.vol-sec__n { width: 36px; height: 36px; border-radius: 50%; background: var(--color-blue-deep); color: var(--color-white); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.vol-sec__head h3 { font-family: var(--font-heading); font-size: var(--text-xl); color: var(--color-blue-deep); font-weight: 700; letter-spacing: 0.02em; }

/* ---- Individual / Group cards ---- */
.vol-type { margin-top: var(--space-7, 28px); }
.vol-type__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.vol-type__opt, .vol-commit__opt, .vol-chip { position: relative; display: block; cursor: pointer; }
.vol-type__opt input, .vol-commit__opt input, .vol-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.vol-type__box { display: flex; align-items: center; gap: var(--space-4); padding: 18px 20px; border: 2px solid var(--color-gray-200); border-radius: var(--radius-lg); background: var(--color-white); transition: border-color var(--transition-fast), background var(--transition-fast); height: 100%; }
.vol-type__text { flex: 1; display: block; }
.vol-type__text strong { display: block; font-size: var(--text-base); }
.vol-type__text small { display: block; font-size: 13px; color: #5B6470; }
.vol-type__opt:hover .vol-type__box, .vol-commit__opt:hover .vol-commit__box { border-color: var(--color-saffron); }
.vol-type__opt input:checked + .vol-type__box { border-color: var(--color-saffron); background: #FFF7ED; box-shadow: 0 0 0 3px rgba(217,119,6,0.12); }
.vol-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9CA3AF; background: var(--color-white); flex: none; display: flex; align-items: center; justify-content: center; }
input:checked + .vol-commit__box .vol-radio, input:checked + .vol-type__box .vol-radio { border-color: #B45309; }
input:checked + .vol-type__box .vol-radio::after, input:checked + .vol-commit__box .vol-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #B45309; }

/* ---- Commitment cards ---- */
.vol-commit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.vol-commit__box { display: flex; align-items: flex-start; gap: var(--space-3); padding: 14px 16px; border: 1.5px solid var(--color-gray-300); border-radius: var(--radius-md); background: var(--color-white); height: 100%; transition: border-color var(--transition-fast), background var(--transition-fast); }
.vol-commit__box strong { display: block; font-size: 15px; }
.vol-commit__box small { display: block; font-size: 13px; color: #5B6470; }
.vol-commit__opt input:checked + .vol-commit__box { border-color: var(--color-saffron); background: #FFF7ED; }

/* ---- Pills ---- */
.vol-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vol-chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--color-gray-300); border-radius: var(--radius-full); background: var(--color-white); font-size: var(--text-sm); font-weight: 500; color: var(--color-gray-700); transition: border-color var(--transition-fast), background var(--transition-fast); }
.vol-chip:hover span { border-color: var(--color-saffron); }
.vol-chip input:checked + span { background: #FFF7ED; border-color: var(--color-saffron); color: #7C2D12; font-weight: 600; }
.vol-chip input:checked + span::before { content: "\2713"; font-weight: 700; color: #B45309; }

/* ---- Checkboxes and consents ---- */
.vol-check { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 15px; color: var(--color-gray-700); cursor: pointer; line-height: 1.5; }
.vol-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #B45309; flex: none; }
.vol-check--sm { font-size: var(--text-sm); margin-top: 10px; }
.vol-consents { display: flex; flex-direction: column; gap: 4px; margin: 28px 0; }
.vol-consents .vol-field { margin-bottom: var(--space-3); }
.vol-callout { display: flex; gap: var(--space-3); padding: 14px 16px; border-radius: 12px; background: #EEF3F9; color: var(--color-blue-deep); font-size: var(--text-sm); line-height: 1.5; }
.vol-callout svg { flex: none; margin-top: 1px; }
.vol-callout a { color: inherit; text-decoration: underline; }
#vol-submit[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* ---- Thank-you panel ---- */
.vol-success { max-width: 880px; margin: 0 auto; background: var(--color-white); border: 1px solid #EEE7DC; border-radius: var(--radius-xl); padding: 48px; box-shadow: var(--shadow-card); text-align: center; }
.vol-success[hidden] { display: none; }
.vol-success:focus { outline: none; }
.vol-success { scroll-margin-top: 120px; }
.vol-success__tick { width: 72px; height: 72px; border-radius: 50%; background: #E8F5EC; color: #15803D; display: inline-flex; align-items: center; justify-content: center; margin-bottom: var(--space-6); }
.vol-success h2 { font-family: var(--font-heading); font-size: var(--text-4xl); color: var(--color-blue-deep); margin-bottom: var(--space-3); }
.vol-success__lead { font-size: 17px; color: var(--color-gray-700); max-width: 560px; margin: 0 auto var(--space-6); }
.vol-success__ref { display: inline-flex; align-items: center; gap: 10px; background: #FFF7ED; border: 1px solid #F5D9B0; border-radius: var(--radius-full); padding: 8px 20px; font-size: 15px; color: #7C2D12; margin-bottom: var(--space-8); }
.vol-success__ref strong { letter-spacing: 0.04em; }
.vol-success__summary { text-align: left; background: var(--color-off-white); border: 1px solid #EEE7DC; border-radius: var(--radius-lg); padding: 24px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 0 0 var(--space-8); }
.vol-success__summary:empty { display: none; }
.vol-success__summary dt { font-size: 13px; font-weight: 600; color: #5B6470; margin-bottom: 2px; }
.vol-success__summary dd { margin: 0; font-size: 15px; word-break: break-word; }
.vol-success__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.vol-success__more { margin-top: var(--space-6); font-size: var(--text-sm); color: #5B6470; }
.vol-success__more a { color: var(--color-maroon); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .vol-aside { flex-basis: 300px; }
    .vol-form { padding: var(--space-8); }
}

@media (max-width: 860px) {
    .vol-ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vol-layout { flex-direction: column; align-items: stretch; gap: var(--space-6); }
    /* Dissolve the sidebar so its two cards can sit before and after the form */
    .vol-aside { display: contents; }
    .vol-aside__card { order: 1; }
    .vol-form { order: 2; }
    .vol-aside__help { order: 3; }
    .vol-aside__donate { order: 4; }
}

@media (max-width: 640px) {
    .vol-signup { padding: var(--space-8) 0 56px; }
    .vol-ways__intro h2 { font-size: var(--text-3xl); }
    .vol-ways__grid { grid-template-columns: 1fr; gap: var(--space-3); }
    .vol-way { padding: var(--space-5) var(--space-4); border-radius: 14px; }
    .vol-way .vol-ico { width: 44px; height: 44px; }
    .vol-way h3 { margin: var(--space-3) 0 2px; font-size: 16px; }
    #main-content .vol-way p { font-size: var(--text-sm) !important; }
    .vol-hero__cta { flex-direction: column; align-items: center; gap: var(--space-3); }
    .vol-form { padding: var(--space-6) var(--space-5); border-radius: 20px; }
    .vol-form h2 { font-size: var(--text-2xl); }
    .vol-sec { padding-top: 28px; margin-top: 28px; }
    .vol-sec__n { width: 34px; height: 34px; }
    .vol-sec__head h3 { font-size: 18px; line-height: 1.25; }
    .vol-type__grid, .vol-commit, .vol-grid-2, .vol-grid-3, .vol-success__summary { grid-template-columns: 1fr; }
    .vol-type__box { padding: 16px; gap: var(--space-3); }
    .vol-chip span { padding: 0 16px; }
    .vol-success { padding: var(--space-8) var(--space-5); }
    .vol-success h2 { font-size: var(--text-3xl); }
    .vol-success__cta .btn { width: 100%; }
}

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