/* ================================================= */
/* BASE                                             */
/* ================================================= */

body {
    background: #ef6c2f;
    font-family: Arial, sans-serif;
}

.page-wrapper {
    background: #fff;
    border-radius: 40px;
    margin: 20px auto;
    max-width: 1800px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(31, 94, 168, 0.3);
}

/* FUNDO DECORATIVO (IMAGEM + GIRADA) */
.page-wrapper::before {
    content: "";
    position: absolute;
    background-image: url("IMG/WhatsApp\ Image\ 2025-10-22\ at\ 14.25.15\ \(1\).jpeg"); /* ajuste o caminho */
    background-repeat: no-repeat;
    background-size: contain;

    width: 500px;
    height: 500px;

    bottom: -100px;
    left: -120px;

    transform: rotate(-179.75deg);
    opacity: 0.25;

    z-index: 0;
}

.page-wrapper > * {
    position: relative;
    z-index: 1;
}

/* ================================================= */
/* TOPO                                             */
/* ================================================= */

.top-header {
    padding: 30px 0;
}

.top-header h1 {
    color: #1f5ea8;
    font-weight: bold;
    font-size: 4.4rem
}

.top-header h2 {
    color: #9e9e9e;
    font-size: 2.1rem;
}

/* LOGOS */
.logo-fundacao {
    width: 149px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-samu {
    width: 156px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* ================================================= */
/* CAIXAS                                           */
/* ================================================= */

.box-section {
    border: 2px solid #6b84c5;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.box-title {
    color: #1f5ea8;
    font-weight: bold;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================= */
/* INPUTS                                           */
/* ================================================= */

.form-control {
    border: 1.5px solid #6b84c5;
    border-radius: 8px;
}

/* ================================================= */
/* BOTÃO                                            */
/* ================================================= */

.btn-enviar {
    background: #ef6c2f;
    color: #fff;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(236, 104, 41, 0.3);
}

.btn-enviar:hover {
    background: #d85f29;
}

.box-botão {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* ================================================= */
/* ÁREA DE UPLOAD                                   */
/* ================================================= */

.upload-area {
    border: 2px dashed #6b84c5;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    background-color: #f8faff;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #1f5ea8;
    font-weight: 600;
    cursor: pointer;
}

.upload-label i {
    font-size: 2rem;
}

.upload-area:hover {
    background-color: #eef3ff;
}

/* ================================================= */
/* RADIO E CHECKBOX                                 */
/* ================================================= */

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1f5ea8;
}

label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.box-section label {
    user-select: none;
}

/* ================================================= */
/* FINALIDADE – HORIZONTAL (DESKTOP) / VERTICAL (MOB)*/
/* ================================================= */

.finalidade-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px 24px;
}

@media (max-width: 576px) {
    .finalidade-grid {
        grid-template-columns: 1fr;
    }
}

.finalidade-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* ================================================= */
/* LINHAS DIVISÓRIAS                                 */
/* ================================================= */

.linha-divisoria {
    width: 100%;
    height: 1px;
    background-color: #1f5ea8;
    margin: 20px 0;
    opacity: 0.8;
}

.linha-com-texto {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: #1f5ea8;
    font-weight: 600;
}

.linha-com-texto::before,
.linha-com-texto::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #1f5ea8;
    opacity: 0.6;
}

/* ================================================= */
/* FOOTER INSTITUCIONAL                              */
/* ================================================= */

.footer-institucional {
    background-color: #f4f6fa;
    border-top: 2px solid #6b84c5;
    padding: 40px 0 20px;
    color: #1f5ea8;
    font-size: 0.95rem;
}

.footer-institucional h5 {
    font-weight: bold;
    margin-bottom: 12px;
    color: #1f5ea8;
}

.footer-institucional a {
    color: #1f5ea8;
    text-decoration: none;
    font-weight: 500;
}

.footer-institucional a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #d0d7eb;
    text-align: center;
    font-size: 0.85rem;
    color: #6b84c5;
}

/* MOBILE */
@media (max-width: 576px) {
    .footer-institucional {
        text-align: center;
    }
}

.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* ============================= */
/* CAMPOS OBRIGATÓRIOS – ERRO    */
/* ============================= */

.campo-erro {
    border: 2px solid #dc3545 !important; /* vermelho */
    background-color: #fdecea;
}

.mensagem-erro {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Radio e checkbox em erro */
.grupo-erro {
    padding: 10px;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    background-color: #fdecea;
}
#listaAnexos {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    flex-direction: column; /* Força um abaixo do outro */
    gap: 8px;
}

.list-group-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-color: #ef6c2f;
}

.badge-tamanho {
    background-color: #ef6c2f;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 20px;
}

.badge-customizado {
    background-color: #ef6c2f !important; /* Cor laranja do SAMU */
    color: #ffffff !important;           /* Cor do texto branca */
}
/* ============================= */
/* ASTERISCO CAMPO OBRIGATÓRIO  */
/* ============================= */

.obrigatorio::after {
    content: " *";
    color: #dc3545; /* vermelho bootstrap */
    font-weight: bold;
}

::placeholder {
    color: #9aa5ce;
    opacity: 1;
}

/* ============================= */
/* MODAL INFORMATIVO             */
/* ============================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-box h2 {
    color: #1f5ea8;
    margin-bottom: 15px;
}

.modal-box ul {
    padding-left: 20px;
}


/* ================================================= */
/* RESPONSIVO                                       */
/* ================================================= */

@media (max-width: 768px) {
    .logo-fundacao {
        width: 120px;
    }

    .logo-samu {
        width: 120px;
    }

    .page-wrapper::before {
        width: 320px;
        height: 320px;
        opacity: 0.18;
    }
}

@media (max-width: 480px) {
    .logo-fundacao {
        width: 100px;
    }

    .logo-samu {
        width: 95px;
    }

    .page-wrapper::before {
        display: none;
    }
}
@media (max-width: 768px) {
    .top-header {
        padding: 40px 0;
    }

    .top-header h1 {
        font-size: 1.8rem;
    }

    .top-header h2 {
        font-size: 1.1rem;
    }
}
@media (max-width: 576px) {
    .box-section .box-title {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .box-section .box-title button {
        width: 100%;
    }
}
