/* YES CMS 2.0.19.12 · volunteer application */
.volunteer-application-section {
    padding-top: clamp(2.5rem, 5vw, 4.75rem);
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
    background:
        radial-gradient(circle at 8% 8%, rgba(57, 49, 133, .10), transparent 28rem),
        linear-gradient(180deg, #f8f8fc 0%, #fff 100%);
}

.volunteer-form-shell {
    display: grid;
    grid-template-columns: minmax(240px, .78fr) minmax(0, 1.55fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: start;
}

.volunteer-form-intro,
.volunteer-form-card {
    border: 1px solid rgba(23, 27, 55, .09);
    border-radius: clamp(1.25rem, 2vw, 1.75rem);
}

.volunteer-form-intro {
    position: sticky;
    top: 7.5rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    color: #fff;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .18), transparent 12rem),
        #393185;
    overflow: hidden;
}

.volunteer-form-intro .section-kicker {
    color: rgba(255, 255, 255, .76);
}

.volunteer-form-icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .12);
    font-size: 1.45rem;
}

.volunteer-form-intro h2 {
    margin: .4rem 0 .8rem;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.volunteer-form-intro p {
    margin: 0;
    color: rgba(255, 255, 255, .84);
    line-height: 1.7;
}

.volunteer-form-intro ul {
    display: grid;
    gap: .8rem;
    margin: 1.5rem 0 0;
    padding: 1.35rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    list-style: none;
}

.volunteer-form-intro li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    color: rgba(255, 255, 255, .92);
}

.volunteer-form-intro li i {
    margin-top: .15rem;
    color: #fff;
}

.volunteer-form-card {
    min-width: 0;
    padding: clamp(1.25rem, 3.5vw, 2.35rem);
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 28, 56, .08);
}

.volunteer-form-heading {
    margin-bottom: 1.4rem;
}

.volunteer-form-heading h2 {
    margin: .35rem 0 .35rem;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.volunteer-form-heading p {
    margin: 0;
    color: var(--bs-secondary-color, #667085);
}

.volunteer-form-alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1.25rem;
}

.volunteer-application-form .form-label,
.volunteer-interest-fieldset legend {
    margin-bottom: .45rem;
    color: #25293b;
    font-size: .9rem;
    font-weight: 700;
}

.volunteer-application-form .form-label > span,
.volunteer-interest-fieldset legend > span {
    color: #b42318;
}

.volunteer-application-form .form-control,
.volunteer-application-form .form-select {
    min-height: 3.15rem;
    border-color: rgba(31, 36, 68, .16);
    border-radius: .85rem;
    background-color: #fff;
}

.volunteer-application-form textarea.form-control {
    min-height: auto;
}

.volunteer-application-form .form-control:focus,
.volunteer-application-form .form-select:focus {
    border-color: rgba(57, 49, 133, .55);
    box-shadow: 0 0 0 .22rem rgba(57, 49, 133, .12);
}

.volunteer-interest-fieldset {
    min-width: 0;
    margin: .15rem 0 0;
    padding: 0;
    border: 0;
}

.volunteer-interest-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

.volunteer-interest-option {
    position: relative;
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: .3rem .55rem;
    min-width: 0;
    min-height: 5.5rem;
    padding: .85rem;
    border: 1px solid rgba(31, 36, 68, .13);
    border-radius: .9rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.volunteer-interest-option:hover {
    border-color: rgba(57, 49, 133, .36);
    background: #faf9ff;
    transform: translateY(-1px);
}

.volunteer-interest-option input {
    grid-row: 1;
    width: 1.05rem;
    height: 1.05rem;
    margin: .1rem 0 0;
    accent-color: #393185;
}

.volunteer-interest-option i {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: #393185;
    font-size: 1.05rem;
}

.volunteer-interest-option span {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #2c3043;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.25;
}

.volunteer-interest-option:has(input:checked) {
    border-color: #393185;
    background: rgba(57, 49, 133, .07);
    box-shadow: inset 0 0 0 1px rgba(57, 49, 133, .14);
}

.volunteer-consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1rem;
    border-radius: .85rem;
    background: #f7f7fb;
    color: #4a4f65;
    font-size: .88rem;
    line-height: 1.55;
}

.volunteer-consent .form-check-input {
    flex: 0 0 auto;
    margin-top: .18rem;
}

.volunteer-consent a {
    font-weight: 700;
}

.volunteer-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: .25rem;
}

.volunteer-submit-row .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 3.1rem;
    padding-inline: 1.25rem;
}

.volunteer-submit-row small {
    flex: 1 1 16rem;
    color: var(--bs-secondary-color, #667085);
    line-height: 1.45;
}

@media (max-width: 991.98px) {
    .volunteer-form-shell {
        grid-template-columns: 1fr;
    }

    .volunteer-form-intro {
        position: static;
    }

    .volunteer-form-intro ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .volunteer-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .volunteer-application-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .volunteer-form-intro,
    .volunteer-form-card {
        border-radius: 1.15rem;
    }

    .volunteer-form-intro {
        padding: 1.25rem;
    }

    .volunteer-form-intro ul {
        grid-template-columns: 1fr;
    }

    .volunteer-form-card {
        padding: 1rem;
        box-shadow: none;
    }

    .volunteer-interest-grid {
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
    }

    .volunteer-interest-option {
        min-height: 5rem;
        padding: .7rem;
    }

    .volunteer-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .volunteer-submit-row .btn {
        width: 100%;
    }

    .volunteer-submit-row small {
        flex: none;
    }
}

@media (max-width: 379.98px) {
    .volunteer-interest-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .volunteer-interest-option {
        transition: none;
    }
}
