/* ===============================
   RESET GERAL E IMAGEM DE FUNDO
   =============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body-image {
    background: url("../assets/background.png") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 0;
    min-height: 100vh;
}

/* ===============================
   NAVBAR
   =============================== */
#nav-bar {
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 30px;
    width: 100%;
    flex-wrap: wrap;
}

#logo-coperdia {
    width: 160px;
    max-width: 40vw;
}

/* ===============================
   TÍTULOS
   =============================== */
#titulos {
    padding: 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

#titulos p {
    margin: 0;
    font-size: 13px;
}
#titulos h4 {
    margin-bottom: 1px;
    font-weight: 600;
}

/* ===============================
   FORMULÁRIO
   =============================== */
.container {
    max-width: 700px;
    width: 95%;
}

.cadastro-pessoa,
.cadastro-solicitacao {
    padding: 40px;
    margin-bottom: 50px;
    background: #fff;
    border-radius: 15px;
}

.cadastro-pessoa legend,
.cadastro-solicitacao legend {
    font-weight: 600;
    font-size: 18px;
}

.titular-dados {
    margin-bottom: 40px;
}
.titular-dados p {
    font-size: 16px;
    font-weight: 600;
}
.titular-dados span {
    font-weight: 400;
}

.identificacao-procurador p,
.identificacao-titular p {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.campos-input {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    height: 50px;
    width: 100%;
}
.campos-input:focus {
    color: #1b3f26;
}

textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    font-family: Arial, sans-serif;
    color: #333;
}
textarea::placeholder {
    color: #bbb;
    font-style: italic;
}

/* File Upload */
.file-field {
    width: 100%;
}
.file-field .btn {
    background-color: #1b3f26 !important;
}
.file-drop-area {
    border: 1px dashed #666;
    padding: 20px;
    text-align: center;
    color: black;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 30px;
}
.file-drop-area:hover {
    background-color: #f8f8f8;
}
.file-drop-area input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    left: 0;
    top: 0;
}

.file-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 5px;
    font-size: 14px;
}
.file-item i {
    margin-right: 8px;
}
.file-item a {
    color: #bbb;
    flex-grow: 1;
    text-decoration: none;
}
.file-item .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.input-error {
    border: 1px solid red !important;
}
.input-success {
    border: 1px solid #60b565 !important;
}

.tipo-relacionamento,
.select-direitos {
    margin-bottom: 30px;
    width: 100%;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

[type="radio"]:checked + span::after,
[type="checkbox"]:checked + span::after {
    border: 2px solid #1b3f26 !important;
    background-color: #1b3f26 !important;
}
[type="radio"]:checked + span::before {
    border: 2px solid #1b3f26 !important;
}

.botao-enviar {
    background-color: #1b3f26 !important;
    width: 300px;
    height: 50px !important;
    margin-bottom: 30px;
    color: #fff;
}
.botao-enviar:hover {
    background-color: #2e6b3a !important;
    box-shadow: 0 4px 8px rgba(46, 107, 58, 0.5);
    transform: translateY(-2px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease,
        transform 0.3s ease;
}

.caixa-texto {
    margin-bottom: 30px;
}
.caixa-texto label {
    display: block;
    margin-bottom: 15px;
}
.direitos {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Submit */
.submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

fieldset {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

/* ===============================
   RESPONSIVIDADE
   =============================== */
@media screen and (max-width: 768px) {
    #nav-bar {
        flex-direction: column;
        justify-content: center;
        padding: 10px 15px;
    }

    .cadastro-pessoa,
    .cadastro-solicitacao {
        padding: 25px;
        margin-bottom: 30px;
    }

    .botao-enviar {
        width: 100% !important;
        font-size: 1rem;
    }

    .direitos {
        flex-direction: column;
        gap: 10px;
    }

    .file-field,
    .tipo-relacionamento,
    .select-direitos {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    #titulos {
        margin-bottom: 20px;
        text-align: center;
    }

    #titulos h4 {
        font-size: 1.4rem;
        font-weight: 700;
    }

    #titulos p {
        font-size: 1rem; 
        line-height: 1.3;
    }

    .cadastro-pessoa,
    .cadastro-solicitacao {
        padding: 15px;
    }

    .botao-enviar {
        width: 100% !important;
        height: 48px !important;
        font-size: 1rem;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}
