/* =====================================================
   RESET
===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;

    background:#f3f5f9;

    color:#333;

}

/* =====================================================
   CONTAINER
===================================================== */

.container{

    width:95%;

    max-width:1300px;

    margin:30px auto;

}

/* =====================================================
   CABEÇALHO
===================================================== */

.topo{

    background:#ffffff;

    border-radius:12px;

    padding:20px 30px;

    display:flex;

    align-items:center;

    gap:25px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    margin-bottom:25px;

}

.logo img{

    width:80px;

}

.titulo{

    flex:1;

}

.titulo h1{

    color:#0d6b43;

    font-size:28px;

    margin-bottom:8px;

}

.titulo p{

    color:#777;

    font-size:15px;

}

/* =====================================================
   CARD
===================================================== */

.card{

    background:#fff;

    border-radius:12px;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

    overflow:hidden;

}

.card-header{

    background:#0d6b43;

    color:#fff;

    padding:18px 25px;

}

.card-header h2{

    font-size:22px;

    font-weight:600;

}

.card-body{

    padding:30px;

}

/* =====================================================
   FORMULÁRIO
===================================================== */

.row{

    display:flex;

    gap:20px;

    margin-bottom:20px;

}

.form-group{

    flex:1;

    display:flex;

    flex-direction:column;

}

.w-100{

    width:100%;

}

label{

    font-weight:600;

    margin-bottom:8px;

    color:#444;

}

input[type=text],
input[type=date],
select{

    height:48px;

    border:1px solid #d5d9df;

    border-radius:8px;

    padding:0 15px;

    font-size:15px;

    transition:.3s;

    background:#fff;

}

input:focus{

    outline:none;

    border-color:#0d6b43;

    box-shadow:0 0 0 3px rgba(13,107,67,.15);

}

input[readonly]{

    background:#ececec;

    cursor:not-allowed;

}

/* =====================================================
   BLOCOS RADIO
===================================================== */

.bloco-radio{

    margin-top:30px;

}

.bloco-radio h3{

    margin-bottom:15px;

    color:#0d6b43;

    font-size:18px;

}

.radio-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

}

.radio-grid label{

    display:flex;

    align-items:center;

    gap:10px;

    padding:15px;

    border:1px solid #ddd;

    border-radius:8px;

    cursor:pointer;

    transition:.3s;

    background:#fafafa;

}

.radio-grid label:hover{

    border-color:#0d6b43;

    background:#eef8f2;

}

.radio-grid input{

    transform:scale(1.2);

}
/* =====================================================
   BOTÕES
===================================================== */

.acoes{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    margin-top:35px;

    flex-wrap:wrap;

}

.btn{

    border:none;

    border-radius:8px;

    padding:12px 28px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

    display:flex;

    align-items:center;

    gap:10px;

    color:#fff;

}

.btn i{

    font-size:15px;

}

.btn:hover{

    transform:translateY(-2px);

    box-shadow:0 8px 20px rgba(0,0,0,.15);

}

.btn:active{

    transform:translateY(0);

}

.btn:disabled{

    opacity:.55;

    cursor:not-allowed;

    transform:none;

    box-shadow:none;

}

/* Cores */

.btn-success{

    background:#198754;

}

.btn-success:hover{

    background:#157347;

}

.btn-secondary{

    background:#6c757d;

}

.btn-secondary:hover{

    background:#5c636a;

}

.btn-info{

    background:#0d6efd;

}

.btn-info:hover{

    background:#0b5ed7;

}

/* =====================================================
   MODAL
===================================================== */

.modal{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    padding:25px;

}

.modal.active{

    display:flex;

}

.modal-content{

    background:#fff;

    width:100%;

    max-width:1000px;

    max-height:90vh;

    border-radius:12px;

    overflow:hidden;

    box-shadow:0 20px 45px rgba(0,0,0,.30);

    animation:modalEntrada .25s ease;

    display:flex;

    flex-direction:column;

}

.modal-header{

    background:#0d6b43;

    color:#fff;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 25px;

}

.modal-header h2{

    font-size:22px;

    font-weight:600;

}

.close{

    background:none;

    border:none;

    color:#fff;

    font-size:30px;

    cursor:pointer;

}

.modal-body{

    padding:25px;

    overflow:auto;

    flex:1;

    background:#f9fafb;

}

.modal-footer{

    display:flex;

    justify-content:flex-end;

    gap:15px;

    padding:20px 25px;

    border-top:1px solid #ddd;

    background:#fff;

}

/* =====================================================
   PREVIEW
===================================================== */

#previewDocumento{

    background:#fff;

    min-height:600px;

    padding:40px;

    border:1px solid #ddd;

    border-radius:8px;

}

/* =====================================================
   OVERLAY
===================================================== */

.overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    z-index:9998;

}

.overlay.active{

    display:block;

}

/* =====================================================
   RODAPÉ
===================================================== */

.rodape{

    text-align:center;

    padding:20px;

    color:#666;

    font-size:14px;

    margin-top:30px;

}

/* =====================================================
   ANIMAÇÕES
===================================================== */

@keyframes modalEntrada{

    from{

        opacity:0;

        transform:translateY(-25px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =====================================================
   RESPONSIVIDADE
===================================================== */

@media(max-width:992px){

    .row{

        flex-direction:column;

    }

    .radio-grid{

        grid-template-columns:1fr;

    }

}

@media(max-width:768px){

    .container{

        width:95%;

        margin:15px auto;

    }

    .topo{

        flex-direction:column;

        text-align:center;

        padding:20px;

    }

    .logo img{

        width:70px;

    }

    .titulo h1{

        font-size:22px;

    }

    .titulo p{

        font-size:14px;

    }

    .card-body{

        padding:20px;

    }

    .acoes{

        flex-direction:column;

    }

    .btn{

        width:100%;

        justify-content:center;

    }

    .modal{

        padding:10px;

    }

    .modal-content{

        max-height:95vh;

    }

    .modal-header h2{

        font-size:18px;

    }

    .modal-footer{

        flex-direction:column;

    }

    .modal-footer .btn{

        width:100%;

    }

}

@media(max-width:480px){

    .card-header h2{

        font-size:18px;

    }

    .bloco-radio h3{

        font-size:16px;

    }

    input[type=text],
    input[type=date]{

        font-size:14px;

        height:45px;

    }

}