/* Modal de cadastro de voluntários */
.voluntario-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 61, 46, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.voluntario-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.voluntario-modal {
    background: var(--cinza-claro, #f5f5f0);
    border-radius: 16px;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(16px);
    transition: transform 0.25s;
}

.voluntario-modal-overlay.is-open .voluntario-modal {
    transform: translateY(0);
}

.voluntario-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem 1rem;
    background: linear-gradient(135deg, var(--verde-floresta, #0f3d2e), var(--verde-medio, #1b6f4f));
    color: var(--branco, #fff);
    flex-shrink: 0;
}

.voluntario-modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.voluntario-modal-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.voluntario-modal-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--branco, #fff);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.voluntario-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.voluntario-modal-body {
    padding: 1.5rem 1.75rem 1.75rem;
    overflow-y: auto;
}

.voluntarios-form {
    max-width: none;
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--verde-floresta, #0f3d2e);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d0c8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--branco, #fff);
    transition: border-color 0.2s;
}

.form-group input[type="file"] {
    padding: 0.5rem 0;
    border: none;
    background: transparent;
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 400;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-medio, #1b6f4f);
    box-shadow: 0 0 0 3px rgba(27, 111, 79, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-areas-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--verde-floresta, #0f3d2e);
}

.form-checkboxes {
    display: grid;
    gap: 0.6rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
}

.form-checkbox input {
    width: auto;
    margin-top: 0.25rem;
    accent-color: var(--verde-medio, #1b6f4f);
}

.form-lgpd {
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-submit {
    text-align: center;
    margin-top: 1.5rem;
}

.form-submit .btn {
    min-width: 200px;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    background: var(--terra, #8b6f47);
    color: var(--branco, #fff);
    transition: all 0.3s;
}

.form-submit .btn:hover:not(:disabled) {
    background: var(--terra-clara, #c4a57b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-submit .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    text-align: center;
    display: none;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background: #def7ec;
    color: #03543f;
}

.form-message.error {
    background: #fde8e8;
    color: #9b1c1c;
}

.field-error {
    color: #9b1c1c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.field-error.visible {
    display: block;
}

/* Botões que abrem o modal */
[data-open-voluntario-modal] {
    cursor: pointer;
    font-family: inherit;
}

.nav-link-btn {
    background: none;
    border: none;
    color: var(--branco, #fff);
    font-weight: 500;
    font-size: 1rem;
    padding: 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link-btn:hover {
    color: var(--terra-clara, #c4a57b);
}

.nav-link-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terra-clara, #c4a57b);
    transition: width 0.3s;
}

.nav-link-btn:hover::after {
    width: 100%;
}

.footer-voluntario-btn {
    background: none;
    border: none;
    color: var(--terra-clara, #c4a57b);
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
    margin-top: 0.75rem;
    transition: opacity 0.2s;
}

.footer-voluntario-btn:hover {
    opacity: 0.85;
}

.apoie-voluntario {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.apoie-voluntario p {
    margin-bottom: 1.25rem;
    opacity: 0.95;
}

.apoie-voluntario-btn {
    background: transparent;
    color: var(--branco, #fff);
    border: 2px solid var(--branco, #fff);
    border-radius: 30px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.apoie-voluntario-btn:hover {
    background: var(--branco, #fff);
    color: var(--verde-floresta, #0f3d2e);
    transform: translateY(-2px);
}

.btn-open-voluntario {
    background: var(--terra, #8b6f47);
    color: var(--branco, #fff);
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-open-voluntario:hover {
    background: var(--terra-clara, #c4a57b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.voluntario-modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .voluntario-modal-header {
        padding: 1.25rem 1.25rem 0.75rem;
    }

    .voluntario-modal-body {
        padding: 1.25rem;
    }
}
