body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f6f8;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

h3 {
    margin-top: 0;
    color: #2c3e50;
}

.form-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.form-success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.my_fieldset_class {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
    background-color: #fafafa;
}

.my_fieldset_class[disabled] {
    background-color: #e9ecef;
    color: #6c757d;
}

.leg1 h4, .leg2 h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
}

.radio-inline label {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 8px;
    cursor: pointer;
}

.radio-inline label[disabled] {
    color: #999;
    cursor: not-allowed;
}

input[type="number"], input[type="file"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

input[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Стили для невалидных полей */
.invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

/* Стили для сообщений об ошибках */
.error-message {
    font-size: 13px;
    margin-top: 5px;
}

#loadingSpinner {
    font-size: 18px;
    animation: spin 1s linear infinite;
    display: none;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}