.crcg-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.crcg-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

.crcg-container form fieldset {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.crcg-container label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
}

.crcg-container input,
.crcg-container select,
.crcg-container textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

#generate_contract {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    font-size: 16px;
    background-color: #0057b8;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#generate_contract:hover {
    background-color: #003e86;
}

#contract_output {
    background: #fff;
    padding: 20px;
    border: 1px dashed #333;
    margin-top: 30px;
    font-size: 14px;
    line-height: 1.6;
}

@media print {
    body * {
        visibility: hidden;
    }
    #contract_output, #contract_output * {
        visibility: visible;
    }
    #contract_output {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        padding: 40px;
    }

    #generate_contract, form {
        display: none !important;
    }
}
