.nettsite-volunteer-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(32, 28, 24, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 24px;
}

.nettsite-volunteer-modal-backdrop.is-open {
    display: flex;
}

body.nettsite-volunteer-no-scroll {
    overflow: hidden;
}

.nettsite-volunteer-modal {
    background: var(--wp--preset--color--accent-9, #fffdf8);
    border-radius: 4px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 44px 40px 36px;
    position: relative;
    font-family: var(--wp--preset--font-family--work-sans, sans-serif);
}

.nettsite-volunteer-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--wp--preset--color--accent-6, #6b5f4e);
    padding: 4px;
}

.nettsite-volunteer-modal__close:hover {
    color: var(--wp--preset--color--accent-5, #201c18);
}

.nettsite-volunteer-modal__eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent-3, #d89a5a);
}

.nettsite-volunteer-modal__title {
    font-family: var(--wp--preset--font-family--newsreader, serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--wp--preset--color--accent-5, #201c18);
    margin: 0 0 12px;
}

.nettsite-volunteer-modal__intro {
    font-size: 15px;
    line-height: 1.6;
    color: var(--wp--preset--color--accent-7, #4a3f32);
    margin: 0 0 28px;
}

.nettsite-volunteer-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wp--preset--color--accent-7, #4a3f32);
    margin: 0 0 10px;
}

.nettsite-volunteer-field-label__hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
}

.nettsite-volunteer-label {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--accent-7, #4a3f32);
}

.nettsite-volunteer-label input[type="text"],
.nettsite-volunteer-label input[type="email"],
.nettsite-volunteer-label input[type="tel"],
.nettsite-volunteer-label textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1.5px solid var(--wp--preset--color--accent-8, #ddd1b8);
    border-radius: 3px;
    background: var(--wp--preset--color--base, #f4eee1);
    font-family: var(--wp--preset--font-family--work-sans, sans-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--wp--preset--color--accent-5, #201c18);
    box-sizing: border-box;
}

.nettsite-volunteer-label textarea {
    resize: vertical;
}

.nettsite-volunteer-label input:focus,
.nettsite-volunteer-label textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent-1, #a8532e);
}

.nettsite-volunteer-label input.is-invalid {
    border-color: #a3312a;
}

.nettsite-volunteer-field-error {
    margin: -12px 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: #a3312a;
}

.nettsite-volunteer-interests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column;
    grid-template-rows: repeat(8, auto);
    column-gap: 24px;
    margin-bottom: 8px;
}

.nettsite-volunteer-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    color: var(--wp--preset--color--accent-7, #4a3f32);
    padding: 8px 0;
    cursor: pointer;
}

.nettsite-volunteer-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--wp--preset--color--accent-1, #a8532e);
}

.nettsite-volunteer-other {
    grid-column: 1 / -1;
    grid-row: 9;
    margin-top: 6px;
}

.nettsite-volunteer-honeypot {
    display: none;
}

.nettsite-volunteer-submit {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 15px 30px;
    border: none;
    border-radius: 3px;
    background: var(--wp--preset--color--accent-1, #a8532e);
    color: var(--wp--preset--color--accent-9, #fffdf8);
    font-family: var(--wp--preset--font-family--work-sans, sans-serif);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.nettsite-volunteer-submit:hover:not(:disabled) {
    background: var(--wp--preset--color--accent-5, #201c18);
}

.nettsite-volunteer-submit:disabled {
    opacity: 0.65;
    cursor: default;
}

.nettsite-volunteer-msg {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.nettsite-volunteer-msg:empty {
    display: none;
}

.nettsite-volunteer-msg--error {
    background: #f6e6e4;
    color: #a3312a;
}

.nettsite-volunteer-msg--success {
    background: var(--wp--preset--color--accent-4, #eae0c9);
    color: var(--wp--preset--color--accent-2, #3f5443);
}

/* Sole visible content once the fields are hidden after a successful submit */
.nettsite-volunteer-msg.is-final {
    margin-top: 0;
    padding: 32px 28px;
    font-size: 17px;
    line-height: 1.6;
    text-align: center;
    border-radius: 4px;
}

/* Dedicated-page variant: card treatment matching the site's content panels */
.nettsite-volunteer-form[data-variant="page"] {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 34px;
    background: var(--wp--preset--color--accent-4, #eae0c9);
    border-radius: 4px;
}

/* Stack to one column on narrow viewports (mobile, and the modal itself) */
@media (max-width: 560px) {
    .nettsite-volunteer-interests {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
    }

    .nettsite-volunteer-other {
        grid-row: auto;
    }
}
