body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif !important;
}
.main-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, #4a90e2 0%, #6ad1c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.container {
    background: #fff;
    max-width: 500px;
    width: 100%;
    margin: 40px auto;
    padding: 32px 32px 24px 32px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    position: relative;
    z-index: 2;
    animation: fadeIn 0.7s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
h1 {
    text-align: center;
    color: #2d3e50;
    margin-bottom: 28px;
    font-size: 2rem;
    letter-spacing: 1px;
}
.form-group {
    margin-bottom: 18px;
}
label {
    display: block;
    margin-bottom: 6px;
    color: #4a90e2;
    font-weight: 600;
    font-size: 1rem;
}
input, select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #cfd8dc;
    border-radius: 6px;
    font-size: 1rem;
    background: #f7fafc;
    transition: border 0.2s;
    font-family: Arial, sans-serif;
}
input:focus, select:focus {
    border-color: #4a90e2;
    outline: none;
}
.form-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}
button {
    padding: 10px 28px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
    font-family: Arial, sans-serif;
}
button:hover {
    background: #357ab8;
}
#contrato {
    margin-bottom: 20px;
}

/* Contrato visual em folha A4 */
.a4-sheet {
    background: #fff;
    width: 210mm;
    min-height: 297mm;
    margin: 40px auto;
    padding: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    border-radius: 8px;
    position: relative;
    font-family: Arial, sans-serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contrato-visual {
    font-size: 15px;
    color: #222;
    background: #fff;
    border-radius: 8px;
    font-family: Arial, sans-serif !important;
}
.contrato-pagina-a4 {
    width: 180mm;
    min-height: 260mm;
    margin: 0 auto 20mm auto;
    padding: 20mm 15mm;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    color: #222;
    box-sizing: border-box;
    page-break-after: always;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    border: 1px solid #eee;
}
.logo-canto {
    display: block;
    margin-top: 20px;
    margin-bottom: 18px;
    margin-left: 20px;
    height: auto;
    width: 200px;
    opacity: 1;
}
.contrato-titulo-central {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 1.15rem;
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: normal;
    letter-spacing: 0.5px;
}
.contrato-titulo-central .contrato-numero {
    display: block;
    margin-top: 4px;
    font-size: 1.08rem;
    font-weight: normal;
}
.contrato-corpo {
    text-align: justify;
    margin-top: 0;
}
.contrato-corpo h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}
.quadro-produto {
    border: 2px solid #222;
    background: #f7f7f7;
    padding: 12px 18px;
    margin: 12px 0 18px 0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
}
.linha-assinatura {
    border-bottom: 1px solid #222;
    width: 300px;
    margin: 30px auto 10px auto;
    height: 2px;
}
.contrato-rodape {
    position: absolute;
    left: 10mm;
    bottom: 10mm;
    font-size: 10px;
    color: #555;
    text-align: left;
    z-index: 2;
    line-height: 1.3;
    width: auto;
    max-width: 80mm;
    font-family: Arial, sans-serif;
}
.contrato-rodape a {
    color: #4a90e2;
    text-decoration: none;
    font-size: 10px;
}
.contrato-corpo p {
    margin-bottom: 2.2em;
}
@media print {
    /* Ocultar elementos desnecessários */
    header, .container, #voltar, #imprimir, .form-actions, button, .btn, .site-footer {
        display: none !important;
    }
    
    /* Configurar body */
    body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Mostrar contrato */
    .a4-sheet {
        display: block !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 210mm !important;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        align-items: center !important;
    }
    
    /* Garantir que o container seja visível */
    #contrato-container {
        display: block !important;
    }
    
    /* Mostrar conteúdo do contrato */
    .contrato-visual {
        display: block !important;
    }
    
    /* Configurar páginas do contrato */
    .contrato-pagina-a4 {
        display: block !important;
        margin: 0 auto !important;
        padding: 20mm 15mm !important;
        width: 180mm !important;
        min-height: 240mm !important;
        background: #fff !important;
        border: none !important;
        box-shadow: none !important;
        page-break-after: always;
        font-size: 12pt !important;
        line-height: 1.4 !important;
        box-sizing: border-box !important;
    }
    
    /* Ajustar main-bg */
    .main-bg {
        background: #fff !important;
        display: block !important;
        align-items: normal !important;
        justify-content: normal !important;
        flex-direction: normal !important;
        min-height: auto !important;
    }
    
    /* Configurar logo */
    .logo-canto {
        display: block !important;
        width: 150px !important;
        height: auto !important;
        margin: 0 0 20px 0 !important;
    }
    
    /* Configurar texto */
    .contrato-corpo {
        text-align: justify !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }
    
    .contrato-corpo p {
        margin-bottom: 1em !important;
    }
    
    /* Configurar rodapé */
    .contrato-rodape {
        position: fixed !important;
        bottom: 10mm !important;
        left: 20mm !important;
        font-size: 8pt !important;
    }
}
/* Rodapé do site */
.site-footer {
    background: #2c3e50;
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info p {
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.5;
}

.footer-info strong {
    color: #6a55fa;
    font-weight: 600;
}



@page {
    size: A4 portrait;
    margin: 0;
}