/* Public volunteer apply page */

.page-volunteer .site-header {
    background: color-mix(in srgb, var(--green-900) 88%, transparent);
}

.vol-hero {
    position: relative;
    min-height: min(88vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-height) + 2.5rem) 0 3.25rem;
    color: var(--cream);
    overflow: hidden;
    isolation: isolate;
}

.vol-hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.vol-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.1s ease, transform 8s ease;
}

.vol-hero__img.is-active {
    opacity: 1;
    transform: scale(1);
}

.vol-hero__img:nth-child(1) {
    object-position: center 45%;
}

.vol-hero__img:nth-child(2) {
    object-position: center 35%;
}

.vol-hero__img:nth-child(3) {
    object-position: center 40%;
}

.vol-hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            105deg,
            rgba(10, 31, 21, 0.88) 0%,
            rgba(10, 31, 21, 0.62) 42%,
            rgba(10, 31, 21, 0.28) 68%,
            rgba(10, 31, 21, 0.18) 100%
        ),
        linear-gradient(to top, rgba(10, 31, 21, 0.55), transparent 45%);
    pointer-events: none;
}

.vol-hero__content {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.vol-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--yellow-400);
    margin-bottom: 0.75rem;
}

.vol-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5vw, 3.35rem);
    font-weight: 750;
    line-height: 1.1;
    margin-bottom: 0.85rem;
    text-wrap: balance;
}

.vol-hero__lead {
    font-size: 1.125rem;
    line-height: 1.55;
    color: color-mix(in srgb, var(--cream) 88%, transparent);
    margin-bottom: 1.5rem;
}

.vol-hero__cta {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
    .vol-hero {
        min-height: min(78vh, 640px);
        align-items: flex-end;
    }

    .vol-hero__veil {
        background:
            linear-gradient(to top, rgba(10, 31, 21, 0.92) 0%, rgba(10, 31, 21, 0.55) 48%, rgba(10, 31, 21, 0.25) 100%);
    }

    .vol-hero__img:nth-child(1) {
        object-position: center 42%;
    }

    .vol-hero__img:nth-child(2),
    .vol-hero__img:nth-child(3) {
        object-position: center 35%;
    }
}

.vol-apply {
    padding: 3rem 0 5rem;
}

.vol-apply__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .vol-apply__grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 3rem;
    }
}

.vol-apply__copy h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--green-900);
    margin-bottom: 0.75rem;
}

.vol-apply__copy p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.vol-apply__list {
    margin-left: 1.15rem;
    color: var(--text);
}

.vol-apply__list li {
    margin-bottom: 0.4rem;
}

.vol-form {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.vol-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: 0;
    margin: 0;
    padding: 0;
}

.vol-form__field > span,
.vol-form__field > legend {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-900);
}

.vol-form input[type="text"],
.vol-form input[type="email"],
.vol-form input[type="tel"],
.vol-form textarea {
    font: inherit;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    background: var(--cream);
    color: var(--text);
}

.vol-form input:focus,
.vol-form textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--green-700) 45%, transparent);
    outline-offset: 1px;
}

.vol-form__checks {
    display: grid;
    gap: 0.45rem;
}

.vol-form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
}

.vol-form__privacy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vol-form__submit {
    align-self: flex-start;
}

.vol-form__status {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 600;
}

.vol-form__status.is-ok {
    background: var(--green-100);
    color: var(--green-900);
    border: 1px solid color-mix(in srgb, var(--green-700) 35%, var(--green-100));
    border-left: 4px solid var(--yellow-500);
    box-shadow: var(--shadow-sm);
}

.vol-form__status.is-error {
    background: #fde8e6;
    color: #8a1f14;
    border: 1px solid #f0b4ad;
    border-left: 4px solid #e2554f;
}

.vol-form__status.is-pending {
    background: var(--cream);
    color: var(--text-muted);
    border: 1px solid var(--cream-dark);
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .vol-hero__img {
        transition: opacity 0.3s ease;
        transform: none;
    }

    .vol-hero__img.is-active {
        transform: none;
    }
}
