.form-container {
    margin: 20px auto;
    padding: 20px;
    background-color: #383838;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ccc;
}

.form-error.general-error {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid red;
    background-color: #ffe6e6;
    border-radius: 5px;
}

.container-update {
    width: 100%;
    max-width: 550px;
    margin: 20px auto;
    padding: 20px;
    background-color: #383838;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #ccc;
    box-sizing: border-box;
}

.form-container {
    max-width: 700px;
    margin: 50px auto;
    overflow: hidden;
}

.form-row {
    display: flex;
    gap: 40px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 24px;
    }

    .form-column {
        width: 100%;
    }
}

.form-column {
    flex: 1;
}

.form-column-right {
    width: 280px;
    flex: 1;
}

.form-box {
    border: 1px solid #585858;
    border-radius: 10px;
    padding: 15px 20px;
}

.form-box legend {
    font-weight: bold;
    font-size: 1.1em;
    padding: 0 5px;
    color: #ffc107;
}

.form-grid {
    display: flex;
    gap: 20px;
}

.contract-preview-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 30px;
    align-items: start;
}

.contract-preview-form .form-group {
    margin-bottom: 0;
}

.contract-preview-form .form-group--full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .contract-preview-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-column-left {
    width: 300px;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.form-group label, .form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #ccc;
    text-align: left;
    font-size: 14px;
}

.form-group select, .form-group input, .form-group textarea, select, input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #585858;
    border-radius: 5px;
    background-color: #292929;
    color: #fff;
}

.form-group select:focus, .form-group input:focus, .form-group textarea:focus, select:focus, input:focus {
    border-color: #fff;
    outline: none;
}

.form-error {
    color: red;
    font-size: 0.9em;
    margin-bottom: 15px;
    font-weight: bold;
}

.form-warning {
    background-color: #292929;
    border: 1px solid #585858;
    color: #fff;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.form-title {
    font-size: 24px;
    color: #c89c00;
    margin-bottom: 20px;
    text-align: center;
}

.form-legend {
    font-size: 18px;
    color: #c89c00;
    font-weight: bold;
    margin-bottom: 10px;
}

.contract-form fieldset {
    border: 1px solid #585858;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.button-container {
    margin-top: 20px;
    text-align: center;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px #292929 inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-help {
    margin-top: 6px;
    line-height: 1.45;
}

.spacer-12 {
    height: 15px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

ul.errorlist {
    color: #ff0800;
    font-weight: 500;
    margin-top: 4px;
}

.styled-form {
    max-width: 500px;
    margin: 0 auto;
}

.styled-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: bold;
    color: #fff;
}

.styled-form input[type="text"], .styled-form input[type="number"], .styled-form select, .styled-form textarea {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #585858;
    background-color: #292929;
    color: #fff;
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.divider {
    margin: 20px 0;
    border: none;
    height: 1px;
    background-color: transparent;
    border-top: 1px solid #444;
}

.inline-form {
    display: inline;
}
